Skip to content
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

Merged
merged 10 commits into from
Aug 5, 2024
Merged

Subscription Update Quotas #1988

merged 10 commits into from
Aug 5, 2024

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented Aug 1, 2024

  • 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
@ikreymer ikreymer requested a review from tw4l August 1, 2024 23:03
@@ -195,6 +196,22 @@ export class OrgSettingsBilling extends TailwindElement {
`;
}

private getPlanName(planId: string) {
Copy link
Member Author

@ikreymer ikreymer Aug 2, 2024

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?

Copy link
Member

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.

Copy link
Member

@tw4l tw4l left a 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.

Copy link
Member

@tw4l tw4l left a 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

@ikreymer ikreymer merged commit 1c153df into main Aug 5, 2024
5 of 6 checks passed
@ikreymer ikreymer deleted the subs-quotas-update branch August 5, 2024 22:59
@ikreymer
Copy link
Member Author

ikreymer commented Aug 5, 2024

Tests updated to include quota change in update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants