1124 Commits

Author SHA1 Message Date
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
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