Skip to content

Conversation

@deansheather
Copy link
Member

Necessary for the frontend to be able to paginate easily. Cursor pagination is good for fetching all events, but doesn't play very well when a pagination component gets involved.

Adds support for ?offset=x to the existing endpoint. The cursor-based pagination (?after_id=x) is still supported. The two pagination modes are mutually exclusive, and are documented as such. If both are supplied, the request will be rejected.

Also adds a total property to the response that contains the full count of items matching the filter. We already have indices in place so I don't think this will impact performance (or we can revisit it before GA).

@deansheather deansheather enabled auto-merge (squash) October 21, 2025 11:39
@deansheather deansheather merged commit ea261a1 into main Oct 21, 2025
28 of 30 checks passed
@deansheather deansheather deleted the dean/aibridge-offset-pagination branch October 21, 2025 11:50
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants