Paginate studies history page to fix 500 error#1859
Open
becky-gilbert wants to merge 6 commits intodevelopfrom
Open
Paginate studies history page to fix 500 error#1859becky-gilbert wants to merge 6 commits intodevelopfrom
becky-gilbert wants to merge 6 commits intodevelopfrom
Conversation
… within studies on study history page - keeps all query params and adds response_page_{study_pk} var with page number request
…per study (1); add query parameters for navigating across study pages and response pages
…n the response_page request is 1 (the default) - helps keep the url shorter
…e is more than 1 page
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Fixes #1801
This PR adds pagination to the family-facing studies history page (My Past Studies), in order to fix 500 response timeout errors when there are lots of previous studies/responses.
Pagination of responses within studies:
Pagination of studies:
When there are fewer than 10 studies, there is no study pagination:
When there are fewer than 10 responses for a study, there is no response pagination: