Skip to content

Conversation

@jakehwll
Copy link
Contributor

Thanks to the great work in #20393, we’ve successfully introduced offset-based pagination for this endpoint. However, the frontend expects a count field in the response rather than total. This PR updates the response payload to rename the returned key to count for consistency with frontend expectations and existing API patterns.

This is necessary to unblock the work in #20331


type AIBridgeListInterceptionsResponse struct {
Total int64 `json:"total"`
Count int64 `json:"count"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll need to be changed in test files too. I suggest undoing your changes and then doing an automated rename refactor operation in vscode (which should change it everywhere). Then re-run make gen

@jakehwll jakehwll merged commit d455f6e into main Oct 23, 2025
30 checks passed
@jakehwll jakehwll deleted the jakehwll/aibridge-interceptions-count branch October 23, 2025 02:19
@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 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