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

History list pagination currently is just checking to see if the list gotten has a length of 50 or not #491

Open
MichaelZhao21 opened this issue Jun 13, 2022 · 0 comments
Labels
Arc: Backend Backend development Arc: Frontend Frontend development Priority: Medium Medium priority items (everything else is low) Status: Needs Triage Issue needs to be assigned Type: New Feature New feature or request

Comments

@MichaelZhao21
Copy link
Member

Is your feature request related to a problem? Please describe.

/client/src/components/edit/history/history-list.js component

Currently, if the length is 50, then that means that we have gotten the max # of edits to show on the current page and there are more pages of edits to show. This means that if there are a multiple of 50 pages, then it would always show the "load more" button and wouldn't do anything after reaching the end. This is honestly a very JANK way of resolving pagination; the actual way to do this is when fetching for data, send a boolean attribute informing the frontend whether or not there are more pages in the history.

Describe the solution you'd like

We should return a boolean value from the backend when requesting history pagination.

Describe alternatives you've considered

Or we could just not do it as we have over 2k history entries and counting.

Additional context

Honestly, this should never be a problem as there are THOUSANDS of edits, butttttttttt you know it's good to have a backup

@MichaelZhao21 MichaelZhao21 added Type: New Feature New feature or request Status: Needs Triage Issue needs to be assigned Arc: Frontend Frontend development Arc: Backend Backend development Priority: Medium Medium priority items (everything else is low) labels Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arc: Backend Backend development Arc: Frontend Frontend development Priority: Medium Medium priority items (everything else is low) Status: Needs Triage Issue needs to be assigned Type: New Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant