Gero Posmyk-Leinemann
a29b8acc1e
[dashboard] Show Team Subscription UI for owners without seat as well
2022-09-21 09:11:22 +02:00
Gero Posmyk-Leinemann
13d9fa92da
[server] Usage-Based: Don't block slot operations on old Team Subscriptions
...
Instead, we just block signin up for new Team Subscriptions
2022-09-21 09:11:22 +02:00
Alex Tugarev
f28e996054
[server][github] fix file provider for self-managed GHE
2022-09-20 16:30:21 +02:00
Sven Efftinge
f00bf263ee
[server] remove use of isBillingModeEnabled
2022-09-20 15:06:21 +02:00
Siddhant Khare
1c770507e2
fix: improve GoLang config inferrer
...
Run go command at current (root)
Signed-off-by: Siddhant Khare <siddhant@gitpod.io>
2022-09-19 15:39:20 +02:00
Sven Efftinge
00246c6fe9
[ubp] ensure right billingStrategy
2022-09-19 15:12:20 +02:00
Alex Tugarev
124a2e61f1
[server] fix GitHub Education API call
2022-09-19 15:07:20 +02:00
Alex Tugarev
cc105361e2
[gitlab] bump gitlab API library
...
this also adds test for changed API and a test to verify that `Projects.all` is paginated as expected.
2022-09-19 09:32:20 +02:00
Thomas Schubart
1eb228e937
[server] Enable connection limiting for free tier
2022-09-18 15:58:19 +02:00
Jan Keromnes
3ac0c02e2d
[server] Every time we stop a workspace instance, log the reason why
2022-09-16 08:06:17 +02:00
Milan Pavlik
61d6bee831
[server] Stop calling BillingService.SetBilledUsage
2022-09-16 00:59:16 +02:00
Sven Efftinge
2701ec7bdc
[usage] added costcenter nextBillingTime
2022-09-15 19:18:16 +02:00
Alex Tugarev
eb8e1d7167
Update notifications on updates to subscription
2022-09-15 16:25:16 +02:00
Gero Posmyk-Leinemann
a7fd1becd6
[server] Delete Workspaces & Workspace Instances after configured period
2022-09-15 15:27:16 +02:00
Sven Efftinge
c9aa5276c2
[usage] use credit balance for limit check
2022-09-15 13:57:16 +02:00
Andrew Farries
5350b91e58
Remove ensureStripeApiIsAllowed calls
...
Also the `guardTeamOperation` call as both are not needed given the
`guardCostCenterAccess` call below.
2022-09-14 08:58:15 +02:00
Andrew Farries
743dcf7690
Add getUsageLimitFor and setUsageLimitFor
...
Add two new methods to the server API for getting and setting usage
limits. Both new functions take an attributionId and work for both users
and teams.
For backwards compatibility, leave the `getUsageLimitForTeam` and
`setUsageLimitForTeam` methods as they are still used by the dashboard,
but change them to be implemented in terms of the more general `get/set`
methods.
2022-09-14 08:58:15 +02:00
Jan Keromnes
23f216b831
[server] Remove deprecated sendFeedback method
2022-09-13 17:16:14 +02:00
Jan Keromnes
16cab0fa6b
[server] Fix a few method check names
2022-09-13 17:16:14 +02:00
Milan Pavlik
759e588e45
[stripe] Use AttributionID metadat when querying for customers
2022-09-13 17:14:14 +02:00
Milan Pavlik
1ba4edc7fc
[prebuild] Log 'not using incremental prebuild' as debug
2022-09-13 14:50:14 +02:00
Sven Efftinge
e3ed2c638d
[usage-api] Use better typescript generator
2022-09-13 14:34:14 +02:00
Andrew Farries
b634fb3836
Add subscribeToStripe server method
...
Generalize the `subscribeTeamToStripe` method so that it works for user
attribution ids too.
Implement the `subscribeTeamToStripe` method in terms of the new general
method.
2022-09-13 08:43:14 +02:00
Andrew Farries
5f24cb2fd3
Check correct method name in subscribeTeamToStripe
2022-09-13 08:43:14 +02:00
Jan Keromnes
7a23e97cf6
[server][dashboard][protocol] Remove deprecated Project DB config feature
2022-09-13 07:50:14 +02:00
Andrew Farries
12bb47c380
Update getStripePortalUrlForTeam
...
Implement the method in terms of the more general `getStripePortalUrl`.
2022-09-12 16:59:13 +02:00
Andrew Farries
9be2634132
Add getStripePortalUrl method to server
2022-09-12 16:59:13 +02:00
Andrew Farries
015987aa42
Add findStripeSubscriptionId method to server
...
Add a general method for finding the stripe subscription id for a given
attribution id. Implement the existing `findStripeSubscriptionIdForTeam`
method in terms of the new method.
2022-09-12 14:30:14 +02:00
Sven Efftinge
74bc751ec7
[cost center] Add save API
2022-09-09 11:25:24 +02:00
Gero Posmyk-Leinemann
130b1d8946
[server] Implement adminGetBillingMode
2022-09-09 09:53:24 +02:00
Thomas Schubart
1b64527d76
[server] Ensure PVC workspace class does not change
2022-09-08 22:49:23 +02:00
Jean Pierre
eb9aaa995e
Store editSessions
2022-09-08 18:47:23 +02:00
Milan Pavlik
b9a45c03d6
Revert "[stripe] Use AttributionID metadat when querying for customers"
...
This reverts commit 05141becb5f677263f8ad4553c88076f19db2a4c.
2022-09-08 12:14:23 +02:00
Milan Pavlik
05141becb5
[stripe] Use AttributionID metadat when querying for customers
2022-09-08 11:18:23 +02:00
Gero Posmyk-Leinemann
2814f385bc
[server] Don't count "Professional Open Source" as personal subscription
2022-09-08 10:15:23 +02:00
Andrew Farries
7df06a862a
Add createOrUpdateStripeCustomerForUser method
...
Directly analogous to createOrUpdateStripeCustomerForTeam, the only
difference is the metadata on the resulting Stripe customer.
2022-09-08 09:59:23 +02:00
Andrew Farries
81e189b19e
Add findCustomerByQuery method
...
Implement `findCustomerByTeamId` and `findCustomerByUserId` in terms of
this more general method.
2022-09-08 09:59:23 +02:00
mustard
106e317c7a
[server] add getTeams scope for supervisor
2022-09-08 09:45:23 +02:00
Milan Pavlik
fb2840a413
[stripe] Create customers with attributionId
2022-09-08 09:28:23 +02:00
Sven Efftinge
5e72785abc
[usage] remove ListBilledUsage API
2022-09-08 08:54:23 +02:00
Sven Efftinge
249a563c48
[dashboard] Use new usage API for team-usage
2022-09-07 19:00:22 +02:00
Alex Tugarev
ca7602f0cb
Reword "Spending Limit" to "Usage Limit"
2022-09-06 11:43:21 +02:00
Sven Efftinge
e01c880447
Added API call to fetch usage data
2022-09-06 09:58:21 +02:00
Gero Posmyk-Leinemann
8991e4a500
[server] Guard against bogus RPC method names
2022-09-06 08:58:21 +02:00
Sven Efftinge
51c0c6b849
[server] 'abort' prebuilds
...
use the new StopWorkspacePolicy introduced with #12284 to avoid
spending resources on backing up discarded prebuilds.
2022-09-06 07:41:21 +02:00
Jean Pierre
f693d41810
Add /oauth/inspect endpoint
2022-09-05 19:27:20 +02:00
Jan Keromnes
9726e86b26
[server] Poll Stripe after creating a new customer
2022-09-01 10:46:16 +02:00
Jan Keromnes
b94612d434
[server][dashboard] Allow new Stripe customers to select their preferred billing currency
2022-09-01 10:46:16 +02:00
Jan Keromnes
b48b8ffbe1
[server] Deprecate 'userGetsMoreResources' in usage-based billing
2022-09-01 10:44:16 +02:00
Jan Keromnes
5e5ed07fbb
[server] Implement EntitlementServiceUBP.hasPaidSubscription
2022-09-01 10:44:16 +02:00