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

HC-314: Added flag paginate to specify pagination #31

Open
wants to merge 1 commit into
base: develop-es1
Choose a base branch
from

Conversation

NamrataM
Copy link
Member

Update the Mozart API endpoint /job/list to expose pagination. Introduced a new boolean parameter paginate. By default pagination is False to ensure backwards compatibility.
If paginate is set to True results should be limited by page size and offset.
If paginate is False or is not specified, the function will scan, collect and return all records for the query.

@NamrataM NamrataM self-assigned this Jan 25, 2021
Copy link
Contributor

@DustinKLo DustinKLo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
because HySDS v3 is legacy we'll keep backwards compatibility but v4 will disable the "fetch all" capabilities in get_job_list

...also because hysds_commons.request_utils was removed in v4 so we don't get things like get_scrolled_json_response for free anymore

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.

3 participants