Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add counts to search results response #661

Open
1 of 3 tasks
ermish opened this issue Dec 23, 2024 · 0 comments
Open
1 of 3 tasks

Feat: Add counts to search results response #661

ermish opened this issue Dec 23, 2024 · 0 comments
Assignees
Labels
backend enhancement New feature or request

Comments

@ermish
Copy link
Collaborator

ermish commented Dec 23, 2024

Summary

When searching for data, you filter down to a smaller set of results and then paginate, like 20 out of 5000. For the client side to know how many pages are remaining and the total number of results in the search, we should send the client this number.

We can send the resultsCount with the response and the client will be able to choose how they paginate.
For example if there's 100 results, the client can then paginate with pages of 25 and know there are 4 pages or they can show pages with 50 results and know there are two pages. However, right now, there's no way for the client to know what is remaining if there is a limit used.

Requirements

  • Add resultsCount to the response for facilitySearch
  • Add resultsCount to the response for healthcareProfessionalSearch
  • Add resultsCount to the response for SubmissionSearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants