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 cursor-based pagination for environment listings #453

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

peytondmurray
Copy link
Contributor

Companion to conda-incubator/conda-store#881.

Description

This PR allows the frontend to use the v2 endpoint for the /environment/ endpoint. The main change here is from page-based pagination to cursor-based pagination. The endpoint now returns a base64-encoded cursor. If the user wants to fetch the next page of results, they just pass the cursor as a query parameter, e.g. /api/v2/endpoint/?cursor=<cursor string>. The response from the server will contain the cursor for the next page.

Pull request checklist

  • Did you test this change locally?
  • Did you update the documentation (if required)?
  • Did you add/update relevant tests for this change (if required)?

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.

1 participant