You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Haha you are right that it isn't documented but I tried it and it seems to be working. I was originally going to recommend checking if it is null and then pinging /smart_collections.json as a backup, but then I just tried /collections.json (which imo makes sense as a route) and it returned a result. The docs should probably be updated to include this route since it seems to be a part of the API, but idk where to report that
In the case where you have a store that only contains smart collections the lighthouse-ci-action will try to run tests on
/collections/null?_fd=0&pb=0
sincenull
is the response that it gets fromcollection_response="$(api_request "$host/admin/api/2021-04/custom_collections.json?published_status=published&limit=1")"
The request should probably instead be made to the
/collections.json
API routeThe text was updated successfully, but these errors were encountered: