-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Subscription Update Quotas #1988
Conversation
ikreymer
commented
Aug 1, 2024
•
edited
Loading
edited
- Follow-up to Adds Subscription API #1914, allows SubscriptionUpdate event to also update quotas.
- Passes current usage info + current billing page URL to portalUrl request for external app to be able to respond with best portalUrl
- get_origin() moved to utils to be available more generally.
- Updates billing tab to show current plans, switches order of quotas to list execution time, storage first
- supports updating quotas in SubscriptionUpdate event - sends current storage (bytesStored) and usage (monthlyExecMinutes) in portal URL request
move get_origin() to utils for more general use
@@ -195,6 +196,22 @@ export class OrgSettingsBilling extends TailwindElement { | |||
`; | |||
} | |||
|
|||
private getPlanName(planId: string) { |
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.
Is this worth doing for localization, or just use capitalize() for now for maximum flexibility?
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.
I think this is worth doing, nice to have the hook when/if we implement localization later.
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.
Overall looks good, could use a test specifically for updating the quotas to ensure that they're set as expected.
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.
Approving to not block merging after tests added
Tests updated to include quota change in |