706 Commits

Author SHA1 Message Date
Anton Kosyakov
e2068d6b6b
ts scrubbing initial (#17915) 2023-06-29 14:43:47 +08:00
Sven Efftinge
248a00eaa8
[server] clean up org-only migration code (#17939) 2023-06-22 15:03:12 +08:00
Milan Pavlik
0777246800
Remove getContentBlob Upload/Download URL (#17983)
* Remove getContentBlob Upload/Download URL

* fix
2023-06-21 16:18:11 +08:00
Milan Pavlik
cf84bf01a7
[server] Remove hasPermission rpc (#17981) 2023-06-20 21:24:11 +08:00
Gero Posmyk-Leinemann
54307a551e
[server] Remove dead permissions code (#17918) 2023-06-19 17:45:10 +08:00
Gero Posmyk-Leinemann
1f42bd03d9
Allow user env vars for GitLab subgroups (#17831)
* [server] Move from owner/repo to potentially longer env var patterns

* review suggestions

* fix and double-wildcard

* Adjust TestsEnvVarService for double wild card
2023-06-15 22:52:06 +08:00
Sven Efftinge
097d178910
[server] remove user relation from gitpod_token (#17923) 2023-06-14 03:53:04 +08:00
Alex Tugarev
4fd4f66667
Remove unused workspace port auth (#17870)
* remove unused worspace port auth

* fix
2023-06-13 14:27:03 +08:00
Brad Harris
27f539cbad
track a verificaitonId during phone verification (#17898)
* track a verificaitonId during phone verification

* use snake case property names for tracking

* validate verificationId is uuid

* move validation into service

* typo in error msg
2023-06-12 22:42:02 +08:00
Wouter Verlaek
a18361e5a0
Return and show error when stopping workspace in maintenance mode (#17880)
* Show error when stopping workspace in maintenance mode

* Fix import

* Feedback

* Fix return

* Fix mutate error catch, use try/catch for stopWs
2023-06-12 21:55:03 +08:00
Alex Tugarev
c44e74cd7a
User.getPrimaryEmail to return email of SSO identity – WEB-437 (#17897)
* User.getPrimaryEmail to return email of SSO identity

* fixing issue with email not being editable

---------

Co-authored-by: Brad Harris <bmharris@gmail.com>
2023-06-10 02:04:00 +08:00
Gero Posmyk-Leinemann
f0f3dfe7bb
[server] Removed deprecated api.getEnvVars (#17832) 2023-06-07 19:01:58 +08:00
Alex Tugarev
f7fd787088
Read email from SSO profile – WEB-437 (#17819)
* [protocol] remove unnecessary User.censor

* Read email from SSO profile

* [gitpod-db] Add Identity.lastSigninTime

* revert useOIDCClientsQuery changes

* make use of lastSigninTime on Account page

* [server] update lastSigninTime on signin

* fixup tests

* fixup update of lastSigninTime
2023-06-06 16:50:57 +08:00
Alex Tugarev
9f6b6c0943
Validate cloneUrl agains accessible repositories – WEB-402 (#17809)
* [orgs] Disallow creating Projects under User

* [Projects] Validate cloneUrl against accessible repositories

* fixup condition in createProject
2023-06-05 20:49:56 +08:00
Alex Tugarev
6436f44274
[gitpod-db] remove deprected/unused tokens column – WEB-400 (#17813)
* [gitpod-db] remove deprected/unused `tokens` column

* fix db model
2023-06-02 19:08:07 +08:00
Milan Pavlik
a05ea2c9eb
[server] Remove self-hosted installation admin telemetry endpoint (#17787)
* [server] Remove self-hosted installation admin telemetry endpoint

* Fix

* fix

* fix

* fix

* Fix

* fix
2023-06-02 16:15:07 +08:00
Sven Efftinge
734e144bf5
[server] expose API for blocked email domains (#17754) 2023-05-26 04:12:59 +08:00
Alex Tugarev
c8c4c3bda9
Root out obsolete self-hosted setup (#17729) 2023-05-25 15:44:59 +08:00
Sven Efftinge
44e92bfd2b
Show migration message after migration (#17672) 2023-05-24 02:08:57 +08:00
Sven Efftinge
dd7f5f70ba
[dedicated] explicit single-org config (#17547) 2023-05-22 20:08:56 +08:00
Pudong
176393a0c8
Add support to forward https protocol port (#17644)
* add support to forward https protocol port

* Update components/ws-proxy/pkg/proxy/routes.go

Co-authored-by: Kyle Brennan <kyle@gitpod.io>

---------

Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2023-05-19 15:22:53 +08:00
Sven Efftinge
7b75c00dd3
[dashboard] fix reload (#17575) 2023-05-15 16:53:00 +08:00
Sven Efftinge
28e3649850
Org slugs are kept in sync with name (#17596) 2023-05-12 20:42:57 +08:00
Sven Efftinge
9f58bcd2bc
[dashboard] no editing email for org users (#17594) 2023-05-12 20:15:57 +08:00
Sven Efftinge
b7d01a7e25
Disallow deletion of teams (#17538) 2023-05-10 22:25:55 +08:00
Brad Harris
2eaf257d89
removing setup intent related code (#17539) 2023-05-10 01:41:54 +08:00
Sven Efftinge
c632b7e0fe
[dashboard] don't ask again on ws creation (#17297) 2023-05-03 17:33:41 +08:00
Alex Tugarev
af796f2825
[server] Compute state of Dedicated Onboarding (#17466) 2023-05-03 14:27:41 +08:00
Milan Pavlik
6f6b0a8d7c
[server] Fix parsing of go duration (#17458) 2023-05-02 21:08:40 +08:00
Sven Efftinge
050c83110b
[dashboard] handle organizationOwned users (#17444) 2023-05-02 02:17:39 +08:00
Huiwen
93f39f317f
Revert "[dashboard] send heartbeat telemetry (#17358)" (#17426)
This reverts commit c520c72398235104a2a870014d20e476ac211890.
2023-04-28 15:39:38 +08:00
Alex Tugarev
341491a1da
Removing ONBOARDING_IN_PROGRESS condition (#17417)
because it blocks all API calls needed during the onboarding.
2023-04-28 03:07:35 +08:00
Anton Kosyakov
8f1640ed0b
[supervisor-frontend] fix metrics reporting (#17361)
* [supervisor-frontend] fix metrics reporting

when workspace URL contains search, hash or path

* ensure that GitpodHostUrl always trim search, hash, path

+ remove unused arg type and function
2023-04-28 02:55:36 +08:00
Huiwen
c520c72398
[dashboard] send heartbeat telemetry (#17358)
* [dashboard] send heartbeat telemetry

* 💄

* Reset after telemetry sent

* Update components/gitpod-protocol/src/frontend-dashboard-service.ts

Co-authored-by: Milan Pavlik <milan@gitpod.io>

* Fix and send final telemetry

* fix build

---------

Co-authored-by: Milan Pavlik <milan@gitpod.io>
2023-04-26 20:03:37 +08:00
Jan Keromnes
d40efae2df
Stop asking for company website during user onboarding (#17390) 2023-04-26 17:48:34 +08:00
Mirco Kater
6c73ccaf4a
New roles (#17059)
* draft

* Update permission.ts

changed admin-role into admin-permissions

* Update gitpod-server-impl.ts

changed admin-role into admin-permissions

* [server] Grant "admin" and "admin-permissions" for first user

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2023-04-25 23:05:46 +08:00
Gero Posmyk-Leinemann
179e55b98a
[preview] Configure with-dedicated-emulation (#17337)
* [preview] Disable stripe secrets on GITPOD_WITH_DEDICATED_EMU

* [preview] Disable linkedin secrets on GITPOD_WITH_DEDICATED_EMU

* [dashboard, db] Don't show onboarding dialogues for "admin-user"

* [preview] Configure stripe/linkedin in the same code block
2023-04-25 16:04:46 +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
Sven Efftinge
3a3d99edd3
[admin] show workspace instances (#17322) 2023-04-24 21:23: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
Sven Efftinge
ecfbfd3580
[server] use options from last instances on start (#17298) 2023-04-22 00:41:42 +08:00
Alex Tugarev
ee82d153e3
Enable Dedicated Onboarding Flow – WEB-193 (#17303)
* uncommitted yarn.lock

* [protocol] adding ONBOARDING_IN_PROGRESS

* [gitpod-db] add `someOrgWithSSO` to team db

* [server] add ONBOARDING_IN_PROGRESS hook

* [dashboard] catch ONBOARDING_IN_PROGRESS error

* [configcat] adding `custom.gitpod_host` attribute to select preview envs
2023-04-21 21:08:42 +08:00
Gero Posmyk-Leinemann
70bfc4d99f
Purge gitpod-protocol from all Chargebee related artifacts (#17291)
* [server, dashboard] Purge NOT_ENOUGH_CREDIT (chargebee)

* [server] Remove CreditAlert notifications

* [protocol] Remove dead code related to Chargebee

* [protocol] Remove superfluous error codes
2023-04-19 23:58:51 +08:00
Filip Troníček
f85d4e4458
experimental IDEs feature flag (#17240)
* `experimental` IDEs feature flag

* [debug, do not merge]: test with experimental VS Code
2023-04-19 20:52:51 +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
Milan Pavlik
311568460c
[server] Remove license db model - WEB-171 (#17264)
* [server] Remove license db model

* fix
2023-04-18 22:23:50 +08:00
Gero Posmyk-Leinemann
05e18a58ea
Remove BillingMode.Chargebee (#17269)
* [dashboard] Remove usage of BillingMode.canSetWorkspaceClass/.showTeamSubscriptionUI

* [server] Cleanup remaining BillingMode.Chargebee usages

* [server] Remove BillingMode.Chargebee
2023-04-18 20:13:50 +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