Skip to content

Conversation

@alexluong
Copy link
Collaborator

Uses pagination pkgs in #647 to implement List Tenant API. Supports detecting end of pagination and avoid returning cursor that leads to nowhere.

@vercel
Copy link

vercel bot commented Jan 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
outpost-docs Ready Ready Preview, Comment Jan 19, 2026 4:58pm
outpost-website Ready Ready Preview, Comment Jan 19, 2026 4:58pm

Request Review

Base automatically changed from pagination to main January 19, 2026 16:51
alexluong and others added 4 commits January 19, 2026 23:53
Adds paginationtest.Suite for ListTenant to verify proper cursor-based
pagination behavior. These tests currently fail because the existing
implementation doesn't use the n+1 pattern to detect hasMore.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Use pagination.Run for proper hasMore detection via n+1 pattern.
Last page now has no Next cursor, first page has no Prev cursor.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add TestListTenantPagination_WithDeploymentID variant
- Rename RedisStack tests to _Compat_ suffix
- Dragonfly is now the primary test target

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove TestListTenantPagination (covered by paginationtest.Suite)
- Remove outdated offset-based delete edge case test
- Rename TestListTenantBasic → TestListTenantEnrichment
- Rename TestListTenantPaginationEdgeCases → TestListTenantKeysetPagination
- Remove redundant ordering subtests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@alexluong alexluong merged commit 9a4dcb1 into main Jan 19, 2026
1 check passed
@alexluong alexluong deleted the tenant-pagination branch January 19, 2026 16:54
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