169 Commits

Author SHA1 Message Date
Sven Efftinge
44e92bfd2b
Show migration message after migration (#17672) 2023-05-24 02:08:57 +08:00
Sven Efftinge
28e3649850
Org slugs are kept in sync with name (#17596) 2023-05-12 20:42:57 +08:00
Brad Harris
2eaf257d89
removing setup intent related code (#17539) 2023-05-10 01:41:54 +08:00
Alex Tugarev
af796f2825
[server] Compute state of Dedicated Onboarding (#17466) 2023-05-03 14:27:41 +08:00
Sven Efftinge
d18edfe28c
[orgs-only] Show Information before migration. (#17319) 2023-04-25 15:39:45 +08:00
Milan Pavlik
eb2ceadb76
[server/dash] Remove license RPCs/view WEB-214 (#17342)
* [server/dash] Remove license RPCs/view

* remove licence refs

* Fix

* fix
2023-04-24 22:29:45 +08:00
Alex Tugarev
b7872c1372
Remove deprecated and unused getPortAuthenticationToken method (#17321) 2023-04-24 16:02:45 +08:00
Brad Harris
0f88afefb8
adding backend support for payment intents (#17309)
* adding support for payment intents

* support payment intents in server

* handling new arg

* adjust hold to be 1.00

* removing old comment
2023-04-22 03:05:42 +08:00
Gero Posmyk-Leinemann
ae37d8c1ab
Remove api.isStudent and all connected code/DB (#17275)
* [server, dashboard] Remove isStudent

* [server] Remove hasEducationalInstitutionSuffix and swot-js

* [db] Clean EduEmailDomainDB model

* [db] Drop d_b_edu_email_domain

* [yarn] Remove swot-js from yarn.lock

* [db] Remove d_b_edu_email_domain from tables.ts

* Fix
2023-04-19 15:58:51 +08:00
Gero Posmyk-Leinemann
7635623980
Purge all Chargebee-related API methods (#17262)
* [server] Remove unused Chargebee-related payment APIs

* [server] Handle all permission cases for operations on attributionIds

* [server] Leftover import

* fix build
2023-04-18 19:54:50 +08:00
Milan Pavlik
973c455964
[server] Remove TermsProvider - unused - WEB-167 (#17252)
* [server] Remove TermsProvider - unused

* fix

* fix

* fix
2023-04-18 17:48:50 +08:00
Sven Efftinge
c44aa18c28
[workspace list] filter by org (#17228) 2023-04-17 17:48:49 +08:00
Sven Efftinge
b12678bde1
remove generic notifications (#17217) 2023-04-14 13:57:53 +02:00
Jan Keromnes
f7101c5aed
Implement user account verification with LinkedIn during onboarding (#17074)
* Implement user account verification with LinkedIn during onboarding

* updating connect with linked-in banner

* removing unused imports

* Store token, fix binding

* Refactor LinkedInToken to LinkedInProfile

* Actually write the LinkedIn secret to the server config

* Fetch LinkedIn user profile and email address

* Add creationTime column to d_b_linked_in_profile

* Add more debug logging

* Fix LinkedIn API calls, mount LinkedInProfileDB

* Also bind LinkedInProfileDB

* Add LinkedIn scope r_liteprofile

* Enhance LinkedIn profile retrieval, store the profile, ensure uniqueness

* Align with UX spec and complete onboarding flow

* Prevent the LinkedIn button from auto-submitting the onboarding form

* Address nits (LinkedInService to /src and minor spacing)

---------

Co-authored-by: Brad Harris <bmharris@gmail.com>
2023-04-12 16:39:52 +02:00
Sven Efftinge
d91fbff30d
[Create WS] Various fixes (#17135)
* [server] normalize contextURL

* [create workspace] only create one workspace

- respect referrer context
- useWorkspaceContext returns null instead of being disabled
when contextUrl is undefined

* [dashboard] immediately show running workspaces
2023-04-11 10:07:50 +02:00
Huiwen
0bc795bd28
Allow to disable workspace sharing in team settings (#17042)
* server impl

* dashboard

* dashboard improve

* 1

* add permission check

* update error message

* improve mutation

* 💄

* * remote `deleted` field in respond
* dashboard use new data from server

* update db select

* address UI feedback

* disable query when no org loaded yet

* rename team to org

* allow to stop sharring always

* fix

* Fix

* Fix

* Fix

* Fix

---------

Co-authored-by: Anton Kosyakov <anton@gitpod.io>
Co-authored-by: Brad Harris <bmharris@gmail.com>
Co-authored-by: Milan Pavlik <pavlik.mil@gmail.com>
2023-03-27 23:10:25 +02:00
Alex Tugarev
275e782341
[Orgs] Persist slug (#16923)
* [orgs] Persist `slug`

* [Orgs] Make `slug` changeable on Settings page

* update to use input/button components and mutation

* [papi] Re-add Team.slug

---------

Co-authored-by: Brad Harris <bmharris@gmail.com>
2023-03-24 10:51:16 +01:00
Sven Efftinge
581408def5
[dashboard] make new workspace aware of project (#16742) 2023-03-09 11:30:45 +01:00
Gero Posmyk-Leinemann
9382e36bcd
[server] Implement cancelTeamSubscription (#16663) 2023-03-06 09:28:03 +01:00
Brad Harris
7e15f6d793
Report ErrorBoundary from Dashboard (#16647)
* adding a reportErrorBoundary method

* temp test of error boundary

* adding a fallback for error.mesage

* remove test code

* removing unintentional change

* Dropping url from metric label, feedback changes
2023-03-06 09:02:03 +01:00
Christian Weichel
da4cafd5e5
Gitpod OIDC Identity Provider (#16482)
* Prototype IDP provider

* [gp cli] Add IDP commands

* [public-api] Remove zitadel based IDP implementation

* [gitpod-cli] Add IDP support for Vault

* [idp] Remove per-org IDP

* [idp] Add key cache and random key IDs

* [idp] Defer GetIDToken authorisation to server

* [idp] Add Redis public key cache

* [gitpod-cli] Hide IDP commands

* [idp] Add key ID to JWT

* [idp] Add unit tests

* [idp] Adress review comments

* [public-api-server] Use logging middleware globally

* [public-api-server] Simplify service registration

* [idp] Add Redis outage resilience
2023-03-03 17:11:01 +01:00
Pudong
5ee2a66b13
[dashboard, server] Add global custom timeout preference (#16503)
* [dashboard] add custom global timeout user preference

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* [server] allow user custom global timeout

* [server] add `supportConfigureWorkspaceTimeout` and `updateWorkspaceTimeoutSetting` api

* [dashboard] use new api to configure workspace timeout setting

* [dashboard, server] use maySetTimeout

---------

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2023-03-03 09:30:00 +01:00
Gero Posmyk-Leinemann
9d2d729b37
[server] Implement tsAddMembersToOrg (#16638) 2023-03-02 17:44:00 +01:00
Alex Tugarev
aa49b87cca
[dashboard] Add "Switch to pay-as-you-go" page (#16488)
* [server] add tsCancel to support Switch-to-PAYG

* [server] relax Stripe-check for switchToPAYG

* [server] fix faulty guard in deleteUser

* [dashboard] add "Switch to pay-as-you-go" Page
2023-02-24 16:27:54 +01:00
Gero Posmyk-Leinemann
b21e2f276a [server] Create nudges for all Chargebee Personal/Team Subscription/Team Subscription 2 owners 2023-02-22 11:02:52 +01:00
Gero Posmyk-Leinemann
632f872b3c [server, dashboard] Extend getNotifications to: AppNotification 2023-02-22 11:02:52 +01:00
Anton Kosyakov
532513a848 fix #12208: gp env to respect workspace env vars 2023-02-20 18:36:50 +01:00
Huiwen
0810836f85 [server,dashboard] add endpoints to get ide credentials 2023-02-15 08:44:19 +01:00
Sven Efftinge
0c0178b610 [server] pass organizationId to create ws 2023-02-14 12:07:19 +01:00
Milan Pavlik
db05a7f5be [server] Typed workspace region 2023-02-10 15:26:15 +01:00
Filip Troníček
880f186042 gp timeout set and gp timeout show to echo back the server-interpreted display duration
This means that 1439m doesn't become "1439 minutes", but rather "29 hours and 59 minutes"
2023-02-10 11:38:15 +01:00
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