-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Usage-based] Untie paid Stripe subscriptions from calendar months #14705
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
Conversation
started the job as gitpod-build-jx-adjust-monthly-cycles.1 because the annotations in the pull request description changed |
32c6638
to
3224ece
Compare
6a1dcff
to
e8f8dd6
Compare
e8f8dd6
to
d6cec8e
Compare
d6cec8e
to
c936b09
Compare
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.
LGTM.
/hold for Qs
How will you update the existing Stripe CostCenter records?
Also, the ResetJob doesn't touch any Stripe CostCenters, so the value in https://github.com/gitpod-io/gitpod/pull/14705/files#diff-3d0d7f3b128d2677bfd96f23f31f3f8935756b31537aad113d58eb08ac654cb1R190 will be out of date after the first subscription to stripe.
That's the beauty of it -- we don't 😇
Thus, the UI will always show the right dates, no matter if old or new Stripe CostCenter. 🪄
Aha, interesting, I assumed that it would create a new Stripe CostCenter. If not, this sounds like a good follow-up issue. 💡 |
… cycle anchor date - let it go from date to date instead
…anage the billing
c936b09
to
e253c20
Compare
Artemis 1 is go for launch! 🚀 🌖 /unhold |
This was by design at that time, because the Stripe Invoice webhook is what triggers a spending limit reset and the CostCenter was meant to remain the same. Nothing stops us from creating a new CostCenter, but it should happen in response to the Stripe invoice, rather than when the billing period "ends" in our system. |
Description
billingCycleStart
andnextBillingTime
on all Cost CentersRelated Issue(s)
Fixes #14700
How to test
a. It should not show "(first day of month)" or "(last day of month)" as was the case before
a. Hint: You can hover over the billing cycle dates to see the exact millisecond (both boundaries should be on the same second, one month apart)
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh