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

(SUP-3968) Support paginated api responses #65

Merged
merged 5 commits into from
Feb 9, 2023

Conversation

m0dular
Copy link
Contributor

@m0dular m0dular commented Feb 8, 2023

Prior to this commit, paginated responses from the API were not accounted for. This created an issue when list operations returned more than the default limit of 20 objects, resulting in some of the resources not being part of the state returned by the get() method.

This commit changes the influx_get() method to handle paginated responses by recursively processing the next objects until they are exhausted.

@m0dular m0dular requested a review from a team as a code owner February 8, 2023 19:09
@m0dular m0dular added the bug Something isn't working label Feb 8, 2023
@m0dular m0dular mentioned this pull request Feb 8, 2023
@MartyEwings MartyEwings merged commit 5c58054 into puppetlabs:main Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants