hypothesis / lms

LTI app for integrating with learning management systems
BSD 2-Clause "Simplified" License
46 stars 14 forks source link

Support arrays in apiCall's query params #6451

Closed acelaya closed 1 month ago

acelaya commented 1 month ago

The new dashboard filters endpoints have some query params which are arrays used to filter their own results.

The format we agreed on using is one in which the same query param appears for every value it needs. So if the param is foo, and the array of values is ['1', '2', '3'], it will be represented in the query string as foo=1&foo=2&foo=3.

This PR enhances apiCall and useAPIFetch so that this is supported.