Skip to content

Requests to the facets APIs do not take into account the resource type of the current page #2437

@giohappy

Description

@giohappy

The filters query the facet API to obtain labels and counts for facets. The count is based on passed filters.
When the page is a resource type page (e.g. "Datasets"), the requests do not take into account the resource type when querying the facets API, and so the returned values refer to all resources.

Filters must filter by resource type, as the client already does when querying the resources API from the pags.

This is the Datasets page showing the request to retrieve the Categories facets:
Image

And this is the same but with the Datasets filter set from the "All resources" page:
Image

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions