870 Commits

Author SHA1 Message Date
Alex Tugarev
d3147bcb55 regenerate usage-api 2022-08-23 12:08:39 +02:00
Gero Posmyk-Leinemann
18b1a50a07 [server, dashboard] Review comments
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2022-08-19 13:19:35 +02:00
Laurie T. Malau
502a9d59cf Show workspace and user details 2022-08-19 13:19:35 +02:00
Gero Posmyk-Leinemann
d8c91b9d9c [server] Never block getStripePublishableKey/getStripeSetupIntentClientSecret based on BillingMode 2022-08-18 09:48:34 +02:00
Pavel Tumik @ GitPod
74eb57b950 [server] fix workspace PVC always restored from prebuild even if backup already exists 2022-08-18 09:12:34 +02:00
Pavel Tumik @ GitPod
6687af602c [server] ensure that user that has PVC enabled will not force prebuilds to use them on projects that don't have PVC turned on 2022-08-17 20:02:34 +02:00
Alex Tugarev
5f131386b2 [server] trim rawEvents to avoid DB pollution
fixes #11578
2022-08-17 17:54:34 +02:00
Gero Posmyk-Leinemann
2d2c70f62c [server] BillingMode: Use findCustomerByTeamId 2022-08-17 14:56:34 +02:00
Gero Posmyk-Leinemann
acc216d915 [server] Treat "no CostCenter found" the same as "spending limit reached" 2022-08-17 14:56:34 +02:00
Gero Posmyk-Leinemann
a988c44f04 [server] BillingMode: Only paid UBP team seats are "greedy" 2022-08-17 14:56:34 +02:00
Gero Posmyk-Leinemann
72c123189d [dashboard, server] WorkspaceClass: make usable based on BillingMode 2022-08-17 14:56:34 +02:00
Gero Posmyk-Leinemann
3ca568c93f [server] Add test case for cancelled old TeamSubscription 2022-08-17 14:56:34 +02:00
Gero Posmyk-Leinemann
875a8c5f53 [server] Improved BillingMode tests 2022-08-17 14:56:34 +02:00
Gero Posmyk-Leinemann
78a0bf50a3 [server] Review comments: EntitlementServiceChargebee 2022-08-17 10:31:33 +02:00
Thomas Schubart
95df8c497a [billing] Check if connections should be limited 2022-08-17 10:31:33 +02:00
Jean Pierre
3014435230 Match google-protobuf version across components 2022-08-17 08:14:33 +02:00
Gero Posmyk-Leinemann
ddd81defdc [server] Mark instances whose image build failed as "stopped" 2022-08-16 14:20:33 +02:00
Pavel Tumik
3759f87c00 Update components/server/src/workspace/workspace-starter.ts
Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2022-08-16 07:56:32 +02:00
Pavel Tumik @ GitPod
e67124fc80 [server] fix using snapshotBucketId when it is undefined or empty 2022-08-16 07:56:32 +02:00
Jan Keromnes
8e40aa2243 [server] Don't redirect to sorry on unrecognized login errors 2022-08-15 08:26:31 +02:00
Sven Efftinge
a00f21067c [server] maintain workspace instance state
get closer to workspace instance state reflects actual state in cluster.
2022-08-12 09:15:29 +02:00
Kyle Brennan
1eb8ee081e [server] set volumeSnapshotId once within createSpec
Related to #11823
2022-08-12 08:48:29 +02:00
Thomas Schubart
8b931f4c8f [server] Simplify class selection 2022-08-11 13:49:28 +02:00
Thomas Schubart
2cda7a910f [server] Test workspace class substitution 2022-08-11 13:49:28 +02:00
Thomas Schubart
7448d8d642 [server] Test workspace class selection 2022-08-11 13:49:28 +02:00
Thomas Schubart
3df4ff7cf6 [server] Make class selection testable 2022-08-11 13:49:28 +02:00
Thomas Schubart
ce3173eaa0 [server] Handle prebuild workspace classes 2022-08-11 13:49:28 +02:00
Laurie T. Malau
0e3702e073 Implement setBilledSession 2022-08-11 09:15:55 +02:00
Alex Tugarev
b4a9939063 Fix issues with entitlement service 2022-08-10 16:53:56 +02:00
Gero Posmyk-Leinemann
3d71d19a73 [server] Integrate BillingService 2022-08-10 16:53:56 +02:00
Gero Posmyk-Leinemann
317b1dab9f [server] Introduce BillingService.checkSpendingLimitReached 2022-08-10 16:53:56 +02:00
Gero Posmyk-Leinemann
9f5b63116b [server] Introduce EntitlementServiceUBP 2022-08-10 16:53:56 +02:00
Jan Keromnes
04fcfcbfec [server] Always allow checking whether a team has a Stripe subscription (even if usage-based is not enabled for that team) 2022-08-10 15:33:57 +02:00
Jan Keromnes
8e227e13ef [server] Always allow Chargebee portal API calls, even for usage-based users 2022-08-09 04:21:53 -03:00
Gero Posmyk-Leinemann
8dbe85ce9d [server] Enforce that Chargebee/Stripe API is only usable with the respective BillingMode 2022-08-09 04:21:53 -03:00
Gero Posmyk-Leinemann
a4d4d596b6 [server] Fix and improve BillingMode and test 2022-08-09 04:21:53 -03:00
Gero Posmyk-Leinemann
82ec999bec [server] Guard calculation of BillingMode by new FF "isBillingModeEnabled" 2022-08-09 04:21:53 -03:00
Thomas Schubart
074eced893 [server] Ensure workspace class gets persisted 2022-08-09 02:41:53 -03:00
Pavel Tumik
4aa6ddff34 fix log to output all info properly 2022-08-08 02:39:52 -03:00
Thomas Schubart
be2cdada11 [server] Enable targeting of teams with feature flag 2022-08-05 15:07:49 -03:00
Alex Tugarev
bf7f1c0ed5 Spending Limit Reached modal 🛹 2022-08-05 12:09:49 -03:00
Thomas Schubart
e437e18680 [ws-daemon/manager] Use feature flag 2022-08-05 11:42:49 -03:00
Gero Posmyk-Leinemann
95dc348f5d [server] Introduce getBillingModeForUser/-Team 2022-08-05 09:33:49 -03:00
Jan Keromnes
1e909bab0e [server][dashboard] When starting a workspace but usage attribution is unclear, prompt for explicit user choice 2022-08-05 08:12:49 -03:00
Gero Posmyk-Leinemann
d9defb213f [server] Follow-up: Code cleanup 2022-08-05 07:03:49 -03:00
Gero Posmyk-Leinemann
8bb7372d08 [server] Separate EntitlementServiceLicense from EntitlementServiceChargebee 2022-08-05 07:03:49 -03:00
Gero Posmyk-Leinemann
11b89162ac [server] Add missing
@injectable()
2022-08-05 05:53:49 -03:00
Gero Posmyk-Leinemann
5c1074bbfc [server] Introduce BillingMode incl. tests 2022-08-04 12:11:48 -03:00
Gero Posmyk-Leinemann
133cc05103 [server] Make ConfigCatClientFactory injectable 2022-08-04 12:11:48 -03:00
Gero Posmyk-Leinemann
005d49cbf5 [server] Install dev dependency "deep-equal-in-any-order" 2022-08-04 12:11:48 -03:00