Ecotrust / wc-data-registry

Data Registry for the West Coast Governors Alliance
Other
10 stars 8 forks source link

If number of items in a Solr facet is zero, do not display the facet in the UI #124

Open tchaddad opened 9 years ago

tchaddad commented 9 years ago

This is especially relevant when we filter results by source, then by category. For example:

This is not ideal. Only facets with contents that are relevant (non-zero) should be visible for filtering.

tchaddad commented 9 years ago

I should add that hiding of "zero" facets appears to be working as expected if the user starts filtering by Issue or Category. However the behavior is different if the user begins to filter by first choosing a Source. If the user starts with Source, the zero facet items are not removed from the UI.

This elevates this issue to bug status.