Problem Description:
When executing a search against the ds/lux/search.mjs endpoint, if the page number exceeds number of pages for the search, the totalItems returned is 0. However, the totalItems should represent the estimated total number of documents which match the search, regardless of page number.
Expected Behavior/Solution:totalItems returns the estimated number of documents matching the search, even if the page number exceeds the total pages.
Requirements:
Needed for promotion:
- [ ] Wireframe/Mockup - Mike- [ ] Committee discussions - Sarah- [ ] Feasibility/Team discussion - Sarah- [ ] Backend requirements - TBD- [ ] Frontend requirements- TBD- [ ] Questions- List of questions for discussions. Answers should be documented within the issue.
UAT/LUX Examples:
Example endpoints from LUX to use for development and testing, if applicable.
Dependencies/Blocks:
- Blocked By: Issues that are blocking the completion of the current issue.- Blocking: Issues being blocked by the completion of the current issue.
Related Github Issues:
- Issues that contain similar work but are not blocking or being blocked by the current issue.
Related links:
- These links can consist of resources, bugherds, etc.
Wireframe/Mockup:Place wireframe/mockup for the proposed solution at end of ticket.
Problem Description: When executing a search against the
ds/lux/search.mjs
endpoint, if the page number exceeds number of pages for the search, thetotalItems
returned is 0. However, thetotalItems
should represent the estimated total number of documents which match the search, regardless of page number.Expected Behavior/Solution:
totalItems
returns the estimated number of documents matching the search, even if the page number exceeds the total pages.Requirements:
Needed for promotion:
- [ ] Wireframe/Mockup - Mike- [ ] Committee discussions - Sarah- [ ] Feasibility/Team discussion - Sarah- [ ] Backend requirements - TBD- [ ] Frontend requirements- TBD- [ ] Questions- List of questions for discussions. Answers should be documented within the issue.UAT/LUX Examples:
Dependencies/Blocks:
- Blocked By: Issues that are blocking the completion of the current issue.- Blocking: Issues being blocked by the completion of the current issue.Related Github Issues:
- Issues that contain similar work but are not blocking or being blocked by the current issue.Related links:
- These links can consist of resources, bugherds, etc.Wireframe/Mockup:
Place wireframe/mockup for the proposed solution at end of ticket.