1187 Commits

Author SHA1 Message Date
Gero Posmyk-Leinemann
7bc8bf954b [server] Don't raise alerts on unspecific errors 2022-09-01 08:28:16 +02:00
Sven Efftinge
9dfafc0966 [admin] Allow manual user verification
fixes #12540
2022-08-31 19:12:17 +02:00
Alex Tugarev
a8d0889405 Add pagination to list usage 2022-08-31 15:14:16 +02:00
Alex Tugarev
a2fa9dcfa3 Clean up webhook events
by running a periodic garbage collector. This is a pattern we use for other resources.

fixes #12430
2022-08-31 15:08:16 +02:00
Manuel Alejandro de Brito Fontes
f0199414da [server] Add name of blocked account when trying to run prebuilds 2022-08-31 09:19:15 +02:00
Gero Posmyk-Leinemann
14b38e581d [server] Improve logging/tracing on failed instance start 2022-08-30 12:32:14 +02:00
mustard
95fa4439e5 [gp-cli] provide workspace class info in top command 2022-08-30 10:25:14 +02:00
Anton Kosyakov
008ea3fadc [jb] prepare to split backend and plugin images 2022-08-30 09:36:14 +02:00
Gero Posmyk-Leinemann
fd7720d5ba [server] Only alert on explicit system failures 2022-08-29 21:17:14 +02:00
Thomas Schubart
8fa7544bba Ensure workspace class is selected if no user choice has been made 2022-08-29 11:41:13 +02:00
Gero Posmyk-Leinemann
a2b7412db4 [server] Fix usage of AccountStatementProvider by making it cache per userId 2022-08-29 11:00:14 +02:00
Gero Posmyk-Leinemann
7f537e2537 [server] Partial revert of b4a9939063fad70d25474e5a76f0b5923e27e43e 2022-08-29 11:00:14 +02:00
Sven Efftinge
79b75ab4d5 Add phone verification 2022-08-29 09:36:13 +02:00
Sven Efftinge
dda2ebd82d [server] track more startWorkspace failures
fixes #12332
2022-08-26 15:06:11 +02:00
Alex Tugarev
030c183993 Use upcoming invoice 2022-08-25 16:07:10 +02:00
Gero Posmyk-Leinemann
803b52a388 [server] Remove outdated feature flag deprecateOldImageLogsMechanism 2022-08-25 14:18:10 +02:00
mustard
cbe7c8c573 [gitpod-protocol] add missing method in golang 2022-08-25 12:36:41 +02:00
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