project-lux / lux-marklogic

Code, issues, and resources related to LUX MarkLogic
Other
3 stars 2 forks source link

Order both Campus Division and Collection Facet results on Objects by number of results descending #57

Closed clarkepeterf closed 3 months ago

clarkepeterf commented 4 months ago

Problem Description:

This comes from https://github.com/project-lux/lux-frontend/issues/49

The Campus Division (responsibleUnits) and Collection (responsibleCollections) facets currently return in a random sort order. Sort them by count descending (most results at the top, least at the bottom)

Expected Behavior/Solution: The Campus Division (responsibleUnits) and Collection (responsibleCollections) facets currently return in a random sort order. Sort them by count descending (most results at the top, least at the bottom)

Requirements: No frontend or middle tier changes needed. Once fixed in ML, it will show up correctly on the frontend.

The Campus Division (responsibleUnits) and Collection (responsibleCollections) facets currently return in a random sort order. Sort them by count descending (most results at the top, least at the bottom)

Needed for promotion:

- [ ] Wireframe/Mockup - Mike - [ ] Committee discussions - Sarah - [ ] Feasibility/Team discussion - Sarah - [ ] Backend requirements - TBD - [ ] Frontend requirements- TBD

UAT/LUX Examples:

Both Campus Division and Collections facets should be sorted by number of results at this link https://lux-front-tst.collections.yale.edu/view/results/objects/?q=%7B%22AND%22%3A%5B%7B%22text%22%3A%22blue%22%2C%22_lang%22%3A%22en%22%7D%2C%7B%22text%22%3A%22train%22%2C%22_lang%22%3A%22en%22%7D%5D%7D&sq=blue+train

Dependencies/Blocks:

Related Github Issues:

Related links:

Links:

https://www.bugherd.com/projects/284041/tasks/1772 https://lux-front-tst.collections.yale.edu/view/results/objects/?q=%7B%22text%22%3A%22yosemite%22%2C%22_lang%22%3A%22en%22%7D&sq=yosemite

Wireframe/Mockup:

roamye commented 3 months ago

Per UAT this is approved.

roamye commented 3 months ago

Looks good in prod, closing