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

[DA-4204] Adding Pagination to workbench/audit/workspace/snapshots API #3853

Open
wants to merge 4 commits into
base: devel
Choose a base branch
from

Conversation

vmoniqb
Copy link
Collaborator

@vmoniqb vmoniqb commented Apr 5, 2024

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 and workbench/audit/workspace/snapshots?last_snapshot_id=<ID> so that both can be used to fetch all workspaces.

Tests

  • unit tests

@vmoniqb vmoniqb changed the title Adding Pagination to workbench/audit/workspace/snapshots API [DA-4204] Adding Pagination to workbench/audit/workspace/snapshots API Apr 8, 2024
@vmoniqb vmoniqb added Do not merge on hold merge is on hold, talk to author labels Apr 8, 2024
@kenny-skaggs kenny-skaggs self-requested a review April 9, 2024 16:12
@@ -22,7 +22,7 @@


DEFAULT_MAX_RESULTS = 100
MAX_MAX_RESULTS = 10000
MAX_MAX_RESULTS = 6000
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Do not merge on hold merge is on hold, talk to author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants