1187 Commits

Author SHA1 Message Date
Milan Pavlik
25aee63603 [server] Report Stripe client metrics 2022-10-06 16:25:22 +02:00
Sven Efftinge
7c5131c8af [server] attribute workspaces to their projects 2022-10-06 15:10:22 +02:00
Thomas Schubart
f9089ab3e7 [server] Fix network connections not limited 2022-10-05 15:02:21 +02:00
Laurie T. Malau
8a78d1f51d [usage] Only show team owners 2022-10-05 12:19:21 +02:00
Pavel Tumik @ GitPod
b40cc92c62 allow to enable PVC feature flag for user via ConfigCat 2022-10-04 21:25:20 +02:00
Andrew Farries
63c4fec94e Remove all references to layoutData 2022-10-04 08:15:20 +02:00
Milan Pavlik
9bcc741a4a [server] Observe request duration even for failures, report statusCode 2022-10-04 08:04:19 +02:00
Laurie T. Malau
51adca1ada [usage] More useful notification 2022-09-30 13:12:30 +02:00
Pudong Zheng
cbe68e1afa [server] bind ide-service in singleton scope 2022-09-30 08:34:30 +02:00
Sven Efftinge
67b9710e8a [server] bind GRPC clients in singleton scope 2022-09-30 08:26:30 +02:00
Alex Tugarev
aeb4485961 [server] properly parse ports of clone URLs
Otherwise this breaks the lookup of services mapped by host (including the port.)

This is the quite apparent aftermath of enabling ports in SCM locations.
2022-09-29 10:46:29 +02:00
Andrew Farries
4d694d0561 Check enablePayment before Stripe operations
Ensure that payment is enabled before attempting Stripe operations.
2022-09-28 13:31:28 +02:00
Jan Keromnes
17d7063b42 [server] Fix return URL of Stripe Customer Portal for teams 2022-09-28 09:15:28 +02:00
Pudong Zheng
c4c6554dd3 add nice grpc metrice handler 2022-09-27 16:12:28 +02:00
Pudong Zheng
481267b24f [server] decouple get ide config logic from server 2022-09-27 16:12:28 +02:00
Jan Keromnes
0d7fc719a2 [server] Use different Stripe Price IDs when subscribing individuals vs teams 2022-09-27 15:23:27 +02:00
Jan Keromnes
34a7512402 [server] Refactor StripeService.getPortalUrl to take an attributionId instead of a userId or teamId 2022-09-27 10:41:27 +02:00
Alex Tugarev
d9ed05e97c [server][prebuild] assert no prebuild is running for same commit
this to ensure that two competing prebuild request aren't scheduled at next to each other.
2022-09-27 10:04:27 +02:00
Milan Pavlik
e29d5ac7e0 [server] Remove handling of Probe Workspaces 2022-09-27 08:38:27 +02:00
Alex Tugarev
dbb182a577 [server] mark prebuild as failed when image build fails 2022-09-26 16:21:27 +02:00
Jan Keromnes
13d0c0900c [server] Add new individual Stripe Price IDs to Gitpod's configuration 2022-09-26 16:19:27 +02:00
Milan Pavlik
409ce6bb5d [server] Remove Workspace health monitoring endpoint 2022-09-26 15:22:26 +02:00
Gero Posmyk-Leinemann
3ed14657c2 [server] Forward billingTier to ConfigCat 2022-09-26 15:04:27 +02:00
Gero Posmyk-Leinemann
57a61f4213 [server] Introduce EntitlementService.getBillingTier 2022-09-26 15:04:27 +02:00
Sven Efftinge
782a052847 [server] fix setting of billingStrategy 2022-09-26 14:42:27 +02:00
Alex Tugarev
9f8bf5f4a1 [server][github] record "pull" webhook events 2022-09-26 14:17:26 +02:00
Jan Keromnes
a99b0c3a74 [server] Refactor StripeService.createCustomer to only use attributionIds 2022-09-23 15:53:24 +02:00
Jan Keromnes
145cfa5164 [server] Refactor StripeService.findCustomer and .findUncancelledSubscription to only use attributionIds 2022-09-23 15:53:24 +02:00
Jan Keromnes
064755b7c4 [server][dashboard] Refactor createOrUpdateStripeCustomerFor{User,Team} to createStripeCustomer 2022-09-23 15:53:24 +02:00
Jan Keromnes
826571f49d [server] Enable automatic tax on new Stripe subscriptions for customers in supported regions 2022-09-23 15:53:24 +02:00
Jan Keromnes
ef0495c15a [server] Refactor StripeService to pass around IDs instead of (possibly outdated) objects 2022-09-23 15:53:24 +02:00
Jan Keromnes
2d388389dc [server] Refactor StripeService.findCustomerByQuery to .findCustomerByAttributionId 2022-09-23 15:53:24 +02:00
Jan Keromnes
f4164d8caf [server] Set Stripe customer country when attaching a payment method 2022-09-23 15:53:24 +02:00
Sven Efftinge
1516e4c4df [server] restrict allowed phone numbers 2022-09-23 15:27:23 +02:00
Milan Pavlik
689b7f8bab [server] Fix metrics registration 2022-09-23 11:37:23 +02:00
Milan Pavlik
72ff2937ef [server] Always GC snapshots for workspaces 2022-09-23 11:18:23 +02:00
Sven Efftinge
5670a5500e [usage] show sum of usage not balance
fixes #13067
2022-09-23 10:03:24 +02:00
Milan Pavlik
6c40c53a7c [server] Delete prebuild records when purging workspaces 2022-09-23 09:26:23 +02:00
Andrew Farries
317d157bc1 Remove findStripeSubscriptionIdForTeam method 2022-09-23 09:18:24 +02:00
Andrew Farries
a4cb27d61e Remove get/setUsageLimitForTeam methods 2022-09-23 09:18:24 +02:00
Andrew Farries
c846cc8480 Remove getStripePortalUrlForTeam method 2022-09-23 09:18:24 +02:00
Andrew Farries
a1e9700142 Remove subscribeTeamToStripe method 2022-09-23 09:18:24 +02:00
Sven Efftinge
1b995ef47f [usage] introduce getBalance API 2022-09-23 07:34:23 +02:00
Gero Posmyk-Leinemann
9993ba6959 [server] Respect projects.settings.usePersistentVolumeClaim during prebuild workspace creation 2022-09-22 16:22:23 +02:00
Gero Posmyk-Leinemann
f2656e83c3 [server] Fix propragation of "workspace-permanent feature flags" 2022-09-22 16:22:23 +02:00
Andrew Farries
ef218db676 Add liveness probe endpoint to server
The probe fails iff the nodejs event loop lag (as reported by a
prometheus metric) exceeds the value set in server config.
2022-09-22 16:10:23 +02:00
Andrew Farries
a7e5177c19 Add server config for maxiumumEventLoopLag 2022-09-22 16:10:23 +02:00
Jan Keromnes
b589ff97ac [server] If getting usage-based notifications fails, log a warning instead of propagating the error to the dashboard 2022-09-22 07:59:22 +02:00
Manuel Alejandro de Brito Fontes
05828a2ee0 Enable configuration of core dumps in .gitpod.yml files 2022-09-21 16:43:22 +02:00
Gero Posmyk-Leinemann
21e18cd2e0 [server] Show "Team Plans" to users who are about to uprgade to usage-based 2022-09-21 09:11:22 +02:00