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

Multiple Pagination Accumulators #156

Open
aspilchen opened this issue Jun 28, 2024 · 0 comments · May be fixed by #157
Open

Multiple Pagination Accumulators #156

aspilchen opened this issue Jun 28, 2024 · 0 comments · May be fixed by #157
Assignees
Labels
enhancement New feature or request

Comments

@aspilchen
Copy link
Contributor

Describe the problem underlying the enhancement request

Some plugin methods such as @aws-lite/s3 ListObjectVersions have multiple fields that can be paginated, requiring the paginator to support multiple accumulators.

Describe the solution you'd like (if any)

I do not have a concrete solution for this problem.

Describe alternative solutions you've considered

The current paginator looks for a single field (the accumulator) in each page, and collects that data from every page before returning it to the user. This will exclude everything that is not the accumulator.

Returning an async iterator to the user, that allows the user to iterate through pages. Allows them to collect the specific data they require from each page, and allows the user to stop paginating early if no more data is needed.

Additional context or notes

No response

@aspilchen aspilchen added the enhancement New feature or request label Jun 28, 2024
@aspilchen aspilchen self-assigned this Jun 29, 2024
@aspilchen aspilchen linked a pull request Jun 29, 2024 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

1 participant