4dn-dcic / utils

various util modules shared amongst several projects in our organization
MIT License
4 stars 1 forks source link

Add search facet cnt #212

Closed aschroed closed 2 years ago

aschroed commented 2 years ago

Small change to allow you to grab the facet values and counts from any arbitrary search. The original get_item_facet_values function returned the facet values and document counts for the specified item_type passed to the function.
I added a new function get_search_facet_values that does all the same logic using the result of any search and changed the get_item_facet_values function to build a search string that is passed to the new function.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 2922008826


Totals Coverage Status
Change from base Build 2887415013: 0.01%
Covered Lines: 5298
Relevant Lines: 7501

💛 - Coveralls
netsettler commented 2 years ago

You need a version bump for this change. And a changelog entry.