Skip to content

fix: tenant pagination#648

Merged
alexluong merged 4 commits into
mainfrom
tenant-pagination
Jan 19, 2026
Merged

fix: tenant pagination#648
alexluong merged 4 commits into
mainfrom
tenant-pagination

Conversation

@alexluong

Copy link
Copy Markdown
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

vercel Bot commented Jan 19, 2026

Copy link
Copy Markdown

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

@vercel vercel Bot temporarily deployed to Preview – outpost-website January 19, 2026 13:39 Inactive
@vercel vercel Bot temporarily deployed to Preview – outpost-docs January 19, 2026 13:40 Inactive
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
@vercel vercel Bot temporarily deployed to Preview – outpost-website January 19, 2026 16:57 Inactive
@vercel vercel Bot temporarily deployed to Preview – outpost-docs January 19, 2026 16:58 Inactive
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.

2 participants