Skip to content

feat(PR-40): auto-page list requests #100

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

Merged
merged 1 commit into from
Oct 10, 2023
Merged

feat(PR-40): auto-page list requests #100

merged 1 commit into from
Oct 10, 2023

Conversation

mathio
Copy link
Contributor

@mathio mathio commented Oct 5, 2023

When calling workspaces.list, forms.list, themes.list or responses.list you can supply page: "auto" and the library will fetch all items across all pages for you automatically.

It will fetch with maximum available pageSize (200 or 1000 for responses.list) to minimize number of requests.

Resolves #46

@mathio mathio changed the title feat(NOJIRA-123): auto-page list requests feat(PR-40): auto-page list requests Oct 9, 2023
@mathio mathio force-pushed the auto-page branch 2 times, most recently from 7c81231 to e7ef4a7 Compare October 9, 2023 14:32
When calling `workspaces.list`, `forms.list`, `themes.list` or
`responses.list` you can supply `page: "auto"` and the library will
fetch all items across all pages for you automatically.

It will fetch with maximum available `pageSize` to minimize number of
requests.
@mathio mathio marked this pull request as ready for review October 9, 2023 15:25
@mathio mathio requested a review from a team October 9, 2023 15:25
@mathio mathio merged commit a826100 into main Oct 10, 2023
@typeform-ops-gha
Copy link

🎉 This PR is included in version 1.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mathio mathio deleted the auto-page branch October 10, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A convenience function to auto-page
4 participants