Repository navigation
feat: add total param to remaining listX endpoints - #13991
Conversation
Adds total param (bool, default true) to 24 list endpoints missing it, for consistency with the existing 53 that already have it. When total=false the response total is 0 and the count query is skipped on database endpoints. Items are always returned regardless. 5 endpoints skipped: usage/events, usage/gauges, account/mfa/factors, users/:userId/mfa/factors, projects/:projectId/stages — none return a total field. E2E tests added for all 24 endpoints testing both true and false values.
🟢 Tier S · Ready to merge
Adds an optional Latest changes: The newest commit only corrects the indentation of the closing brace in the account session-list totals test, without changing behavior.
Note @jaysomani does not have write access to this repository, so Hansi does not approve automatically. A maintainer can review and approve. 📂 Walkthrough · 32
Reviewed the commits since |
|
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Adds total param (bool, default true) to 24 list endpoints missing it, for consistency with the existing 53 that already have it.
When total=false the response total is 0 and the count query is skipped on database endpoints. Items are always returned regardless.
5 endpoints skipped: usage/events, usage/gauges, account/mfa/factors, users/:userId/mfa/factors, projects/:projectId/stages — none return a total field.
E2E tests added for all 24 endpoints testing both true and false values.
What does this PR do?
(Provide a description of what this PR does and why it's needed.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist