RealDevSquad / RealDevSquad/website-backend
Adding pagination logic for fetching users in GET /users/search/
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
Issue Description
In the https://dashboard.realdevsquad.com/users/discord/ all the users are loaded at once and there is no pagination logic
Expected Behavior
Only some users should be fetched depending on how many users can be loaded before scrolled.
Current Behavior
All the users are being fetched at once as soon as the page is loaded
Screenshots
NA
Reproducibility
- This issue is reproducible
- This issue is not reproducible
Steps to Reproduce
- Go to https://dashboard.realdevsquad.com/users/discord/
Severity/Priority
- Critical
- High
- Medium
- Low
Additional Information
Checklist
- I have read and followed the project's code of conduct.
- I have searched for similar issues before creating this one.
- I have provided all the necessary information to understand and reproduce the issue.
- I am willing to contribute to the resolution of this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace the GET /users/search/ handler used by /users/discord/; the issue names no source file or test. First inspect how the endpoint currently fetches users and how the page requests them. Done means users are fetched in bounded batches rather than all at initial page load, according to the scroll position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- api, backend, performance
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100