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

add SimpleOffsetPaginator #48

Merged
merged 2 commits into from
Jun 17, 2024
Merged

add SimpleOffsetPaginator #48

merged 2 commits into from
Jun 17, 2024

Conversation

SebRollen
Copy link
Contributor

Hey there,

I'm interacting with an API that has a slightly different pagination scheme than any of the provided options and thought I would upstream my patch in case it's useful for anyone else.

The paginator is very simple, meant to be used with an API endpoint that returns a JSON array as the top-level object rather than a JSON object with pagination fields. Instead of inspecting fields/headers to determine whether to fetch a new page, we instead compare against the number of returned records.

Definitely open to feedback on the name of the pagination scheme!

@SebRollen
Copy link
Contributor Author

SebRollen commented May 25, 2024

Fixes #41

@jlloyd-widen
Copy link
Contributor

Looks pretty straightforward. Would you mind adding this to the documentation?

@SebRollen
Copy link
Contributor Author

Looks pretty straightforward. Would you mind adding this to the documentation?

Sure thing, added some details to the README. Looks like my linter removed some trailing whitespace which makes the diff larger. Let me know if you don't want that in the PR and I can redo without the lint fixes

@jlloyd-widen jlloyd-widen merged commit 0bb645c into Widen:main Jun 17, 2024
@Jef-VL-Datashift
Copy link

My tap is continually extracting the same data. I am using this paginator, has anyone encountered this issue?

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