Skip to content

Conversation

@alexluong
Copy link
Collaborator

No description provided.

@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:57pm
outpost-website Ready Ready Preview, Comment Jan 19, 2026 4:57pm

Request Review

@alexluong alexluong mentioned this pull request Jan 19, 2026
Base automatically changed from cursor to main January 19, 2026 16:45
alexluong and others added 12 commits January 19, 2026 23:50
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Extract tests from drivertest.go into focused files:
- operations.go: CRUD tests (insert, list, retrieve)
- pagination.go: cursor-based pagination tests using paginationtest.Suite
- misc.go: isolation, edge cases, and cursor validation tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace separate test functions with a single testCRUD that:
- Seeds data once, then tests insert verification, list filters, and retrieve
- Groups related assertions together (insert→list→retrieve flow)
- Renames "Operations" to "CRUD" for clarity

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Verifies that racing N goroutines inserting the same DeliveryEvent
results in exactly 1 record, ensuring idempotency under concurrent load.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove ErrInvalidCursor from internal/logstore/driver
- Remove convertCursorError helper from all logstore implementations
- Return cursor.ErrInvalidCursor directly from Decode callbacks
- Update drivertest to check for cursor.ErrInvalidCursor

The cursor package already defines ErrInvalidCursor and ErrVersionMismatch,
so the driver package doesn't need its own duplicate error type.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Previously, invalid cursor errors would return 500 Internal Server Error.
Now properly returns 400 Bad Request for cursor.ErrInvalidCursor and
cursor.ErrVersionMismatch, consistent with tenant_handlers.go behavior.

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