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

Fix listing pagination off-by-one bug (and add tests to confirm) #147

Merged

Conversation

anders-schneider
Copy link

Addresses #56 and #141

  • This change addresses the issue in full

Description

This change corrects the off-by-one error in totalPages in the pagination metadata, and adds tests that confirm that the fix gives the intended result.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Can This Be Tested/Reviewed?

$ cd backend/core
$ yarn test:e2e:local

@anders-schneider
Copy link
Author

Thanks!

@anders-schneider anders-schneider merged commit 063cb58 into main Jul 8, 2021
@anders-schneider anders-schneider deleted the aeschneider-fix-listing-pagination-off-by-one branch July 8, 2021 14:44
@willrlin willrlin linked an issue Jul 8, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Off-by-one error in listings pagination
2 participants