188 Commits

Author SHA1 Message Date
Filip Troníček
d5b7d3ada9 Minor improvements to the workspace timeout validation
1. Only allow decimal values in timeouts
    This allowed users to have durations in other number systems like hexadecimal. For example `0xfd` was a valid timeout.
2. Remove "d" (day) as a unit
    Because this unit is both rejected by the backend and timeouts cannot be longer than 24 hours, it does not make sense to allow it.

Co-authored-by: Lou Bichard <contact@louisjohnbichard.co.uk>
2023-02-10 11:38:15 +01:00
Filip Troníček
527f1eb1fd Add a 24-hour timeout limit to workspace timeouts 2023-02-10 11:38:15 +01:00
Filip Troníček
626b0e1386 Add humanReadableDuration as return value from setWorkspaceTimeout 2023-02-10 11:38:15 +01:00
Sven Efftinge
74aa6db6e4 [ws-manager-api] Add region for cluster selection 2023-02-08 10:51:46 +01:00
Brad Harris
64d46a9aac Adding Git Integrations to Team Settings 2023-02-07 11:31:45 +01:00
Brad Harris
3077ef5b43 creating distinct fns for org provider calls 2023-02-02 16:01:41 +01:00
Brad Harris
d24ae32b27 Removing ownerId from method params 2023-02-02 16:01:41 +01:00
Brad Harris
7b8b3e09ea adding flag check on methods 2023-02-02 16:01:41 +01:00
Brad Harris
fff28968f1 Adds org id to auth providers & new api methods 2023-02-02 16:01:41 +01:00
Sven Efftinge
03a5fb6ac7 [billing] provide human readable price info 2023-01-23 11:55:30 +01:00
Sven Efftinge
95996df038 [server, cli] Allow flexible workspace timeouts 2023-01-18 16:14:26 +01:00
Sven Efftinge
9b1917b68d [server] mandatory team name on update 2023-01-16 18:41:24 +01:00
Sven Efftinge
837844d7f8 [server] Added updateTeam call
see #5067
2023-01-16 18:41:24 +01:00
Sven Efftinge
0605514421 [server] Allow options on ws start
introduces IDE and workspace class arguments on WS Start
2022-12-16 08:42:25 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Milan Pavlik
b79af4c184 [server] Move admin endpoints on GitpodServer to AdminServer 2022-12-06 12:08:16 -03:00
Sven Efftinge
e044c1d49f [admin] allow usage adjustments 2022-11-22 06:31:51 -03:00
Sven Efftinge
17424c972b [gitpod-protocol] remove dependency to usage-api 2022-11-16 17:32:46 +02:00
Jan Keromnes
0d740fc3ea [server][dashboard] Fetch and use the actual cost center billing cycle dates in usage-based Billing pages 2022-11-11 13:32:41 +02:00
Milan Pavlik
600e155ae6 [server] Remove userId from removeTeam() rpc 2022-11-09 17:15:39 +02:00
Sven Efftinge
81177d2eac Incremental workspaces 2022-11-08 09:33:37 +01:00
Milan Pavlik
87485bf48c [server] Add getTeam 2022-11-02 09:34:06 +01:00
Gero Posmyk-Leinemann
07bf05a90b [server] Use CostCenter to determine BillingAccount options 2022-10-21 11:31:36 +02:00
Jan Keromnes
53c1a1f5c5 [server] Make 'subscribeToStripe' return the new usage limit 2022-10-13 11:45:28 +02:00
Jan Keromnes
30a58cddd0 [server][dashboard] Always explicitly set a usage limit when upgrading to Stripe 2022-10-13 11:45:28 +02:00
Andrew Farries
63c4fec94e Remove all references to layoutData 2022-10-04 08:15:20 +02:00
Jan Keromnes
a99b0c3a74 [server] Refactor StripeService.createCustomer 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
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
Alex Tugarev
eb8e1d7167 Update notifications on updates to subscription 2022-09-15 16:25:16 +02:00
Jan Keromnes
3182ee45f9 [dashboard][protocol] Remove unused params from CreateProjectParams 2022-09-15 11:35:16 +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
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
Jan Keromnes
7a23e97cf6 [server][dashboard][protocol] Remove deprecated Project DB config feature 2022-09-13 07:50:14 +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
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
Sven Efftinge
5e72785abc [usage] remove ListBilledUsage API 2022-09-08 08:54:23 +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
Jan Keromnes
b94612d434 [server][dashboard] Allow new Stripe customers to select their preferred billing currency 2022-09-01 10:46:16 +02:00
Alex Tugarev
a8d0889405 Add pagination to list usage 2022-08-31 15:14:16 +02:00
Sven Efftinge
79b75ab4d5 Add phone verification 2022-08-29 09:36:13 +02:00
Gero Posmyk-Leinemann
95dc348f5d [server] Introduce getBillingModeForUser/-Team 2022-08-05 09:33:49 -03:00
Laurie T. Malau
04f122ca8a add sorting 2022-08-01 08:00:45 -03:00
Thomas Schubart
d0c35234d4 [server] Add endpoint for retrieving workspace classes 2022-07-25 12:39:20 -03:00