-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Include free plans for api use notifications #4204
fix: Include free plans for api use notifications #4204
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Ignored Deployments
|
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4204 +/- ##
=======================================
Coverage 96.51% 96.51%
=======================================
Files 1177 1177
Lines 38230 38290 +60
=======================================
+ Hits 36896 36956 +60
Misses 1334 1334 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with a minor grammatical fix.
assert email.body == ( | ||
"Hi there,\n\nThe API usage for Test Org has breached " | ||
"100% within the current subscription period. Please " | ||
"upgrade your organisations account to ensure " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"upgrade your organisations account to ensure " | |
"upgrade your organisation's account to ensure " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok no problem. I've fixed the other invocations as well in the other tests.
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
Includes free plans in the API use notifications with a rolling 30 day window as their effective start date. It also included some extra code to ensure that they're not including in automatic payment adjustments since free plans don't have credit cards.
How did you test this code?
Two existing tests and a new one just for free plans.