-
Notifications
You must be signed in to change notification settings - Fork 17
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
[DA-4204] Adding Pagination to workbench/audit/workspace/snapshots API #3853
base: devel
Are you sure you want to change the base?
Conversation
rdr_service/api/base_api.py
Outdated
@@ -22,7 +22,7 @@ | |||
|
|||
|
|||
DEFAULT_MAX_RESULTS = 100 | |||
MAX_MAX_RESULTS = 10000 | |||
MAX_MAX_RESULTS = 6000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update affects the Paricipant Summary API too. Is that intended, or should the code be updated to only set this as the max for the research workbench API's?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was intended, but after discussion in Slack, I will override the value instead to avoid any errors for awardees currently calling the PaarticipantSummary API with _count > 6000
Resolves DA-4204
Description of changes/additions
RH requested the ability to call the
workbench/audit/workspace/snapshots
API and return all workspaces. Previously, these calls have been failing due to the number of records in the response.This PR adds pagination to the API through both
workbench/audit/workspace/snapshots
andworkbench/audit/workspace/snapshots?last_snapshot_id=<ID>
so that both can be used to fetch all workspaces.Tests