fix(deployment): enforce max page size on GET /v1/deployments#3244
fix(deployment): enforce max page size on GET /v1/deployments#3244Archdiner wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe PR enforces a maximum page size of 100 on the ChangesDeployment List Page Size Enforcement
Estimated Code Review Effort🎯 1 (Trivial) | ⏱️ ~3 minutes Assessment against linked issues
Suggested labels
Suggested reviewers
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2a20abc to
dafa871
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3244 +/- ##
==========================================
- Coverage 69.60% 68.20% -1.40%
==========================================
Files 1087 998 -89
Lines 26669 24363 -2306
Branches 6415 5958 -457
==========================================
- Hits 18562 16617 -1945
+ Misses 7110 6781 -329
+ Partials 997 965 -32
*This pull request uses carry forward flags. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@Archdiner please fix the tests and ci |
|
@baktun14 hey sorry about that, just pushed fixes. Thanks! |
|
@Archdiner you need to sign your commits |
…size Reflects the new limit schema (default/max 100) on GET /v1/deployments. Co-authored-by: Cursor <cursoragent@cursor.com>
07b3c8a to
a971a95
Compare
Why
Fixes #2586
The
GET /v1/deploymentslist endpoint had a default limit of 1000 but no upper bound enforced. This PR brings the endpoint in line with other list endpoints by enforcing a maximum page size of 100.What
deploymentListMaxLimitaboveListDeploymentsQuerySchemainapps/api/src/deployment/http-schemas/deployment.schema.tsto prevent ReferenceErrors..max(deploymentListMaxLimit)constraint to thelimitquery parameter schema.Summary by CodeRabbit
limitparameter (capped at 100).limitto align with the same cap, improving consistency and helping prevent excessively large responses.