Repository navigation
fix: track monthly usage for unlimited quotas - #2894
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
There was a problem hiding this comment.
Pull request overview
This PR changes monthly quota tracking so organisations with unlimited (null) quotas still accumulate monthly usage stats while continuing to allow requests.
Changes:
- Removes the early return before monthly stat writes for
nullquotas. - Keeps
quota === 0as a hard block before incrementing. - Returns after incrementing for unlimited quotas, before over-quota notification logic.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| }); | ||
|
|
||
| // For unlimited quotas, we still allow the request to send so we can collect the monthly stat. | ||
| if (opts.quota === null) { |
No description provided.