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

feat: list-bucket API supports pagination when filtering by org #22674

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

danxmoran
Copy link
Contributor

Closes #21392

There was already some low-level logic in place to handle bucket pagination, but it was bypassed any time an OrgID filter was specified (because filtering by org ID uses a special secondary index). This PR adds the missing support for after and descending to the filter-by-org-ID branch of logic.

Without introducing a new index (or two), I had to resort to scanning the org-focused index to implement support for these two parameters. We can revisit if this turns out to be a perf problem.

Copy link
Contributor

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

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

:shipit:

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.

Add pagination support to /buckets API
2 participants