To reproduce:
- Load the data set search page
- Click on a filter with a target gene such as
XPA
- Observe the available score sets are less than the advertised number.
This occurs because the filters are not constructed without knowledge of the score sets/experiments to which a user has the appropriate viewership permissions. These data sets are filtered appropriately so the user may not see them, but this represents a confusing user experience on the search page.
We should construct this filter list from a list of data sets the user has permission for so the count of each filter is appropriate. Note that we should be wary of potential performance issues with such a query.