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.
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 asfoo=1&foo=2&foo=3
.This PR enhances
apiCall
anduseAPIFetch
so that this is supported.