feat(quotas): add per-child user-path templates - #670
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Warning Review limit reached
Next review available in: 28 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (42)
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 |
903a874 to
87e969c
Compare
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Confidence Score: 5/5Safe to merge based on the exercised child-partition, descendant-sharing, and reset behavior. The highest-impact correctness paths were executed against the real budget and rate-limit services: sibling isolation, descendant partition sharing, request and token accounting, template resets, and global resets. The affected package suites passed as well. Files Needing Attention: No files require changes. The exercised implementation paths were internal/budget/service.go, internal/ratelimit/service.go, internal/ratelimit/limiter.go, and internal/core/user_path.go.
What T-Rex did
Reviews (1): Last reviewed commit: 903a874 | Re-trigger Greptile |
Summary
per_childbudget and rate-limit templates for dynamic user pathsBehavior
A template on
/usersdoes not apply to/usersitself. It creates independent limits for/users/alice,/users/bob, and other direct children. Descendants such as/users/alice/projects/democonsume Alice’s partition.Global dashboard rows describe the template without inventing aggregate usage. Child-specific counters remain available through
/v1/usageunder the effective child path.Validation
go test ./...golangci-lint run ./...npm test -- --run— 478 passingnpm run check— 0 errors and 0 warningsnpm run build