556 Commits

Author SHA1 Message Date
Alex Tugarev
60ac0e4400
[server] fix reusing soft-deleted identities (#17081) 2023-03-30 11:46:40 +02:00
Milan Pavlik
3682053520
[ws-man-bridge] Hard delete workspace clusters on deregistration (#17063)
* [ws-man-bridge] Set deleted to false, when creating new d_b_workspace_cluster

* hard delete
2023-03-28 17:57:26 +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
Gero Posmyk-Leinemann
62a359fb95
[webapp] Drop "admin" role for "admin-user" (#16948)
* [db] Align IDs of "admin-user" (follow up for #15974)

* [db] Drop "admin" role for "admin-user"
2023-03-23 08:55:15 +01:00
Alex Tugarev
60413beaf2
[orgs] Add index for slug (#16920)
Part of #16856
2023-03-20 15:26:12 +01:00
Milan Pavlik
6207bc3410
Remove applicationCluster from tables.ts (#16876)
* Remove application cluster references

* fix
2023-03-16 15:23:08 +01:00
Milan Pavlik
954682ea1d
[db] Drop applicationCluster column from d_b_workspace_cluster (#16839) 2023-03-15 10:19:08 +01:00
Milan Pavlik
0e2ec6cd24
Remove usage of applicationCluster column from WorkspaceCluster (#16824)
* Remove usage of applicationCluster column from WorkspaceCluster

* fix

* Fix

* fix

* Fix

* fix

* Fix

* fix

* Fix

* Fix

* fix
2023-03-14 13:13:07 +01:00
Milan Pavlik
2220a2435b
[migrations] Make workspace cluster name the PK, drop composite PK on (name, appCluster) (#16769)
* [migrations] Make workspace cluster name the PK, drop composite PK on (name, appCluster)

* fix

* fix

* fix
2023-03-13 10:57:48 +01:00
Milan Pavlik
805beca614
[ws-man-bridge] Correct name for Workspace Instance Controller var (#16795)
* [ws-man-bridge] Correct name for Workspac Instance Controller var

* fix

* Fix
2023-03-10 10:37:45 +01:00
Milan Pavlik
5317b53ef8
[db-sync] Remove comment references (#16602) 2023-03-01 11:06:58 +01:00
Gero Posmyk-Leinemann
9fdc564bee
[db] Improve findSessionsInPeriod perf by giving more data to hit indexes (#16564) 2023-02-24 16:32:54 +01:00
Gero Posmyk-Leinemann
d097db122a
[db] Add index workspace.ind_ownerId_type_creationTime (#16562) 2023-02-24 16:15:54 +01:00
Alex Tugarev
eb6ca45136 [gitpod-db] Fix AuthProviderEntryDBImpl.findByUserId 2023-02-15 11:54:20 +01:00
Brad Harris
dd9cc35f33 Adding a findById() to AuthProviderEntryDB 2023-02-14 17:20:19 +01:00
Brad Harris
d60d04c05f filter out org auth providers from user providers 2023-02-14 17:20:19 +01:00
Sven Efftinge
ebcf270b63 [migrations] added logs and air 2023-02-14 10:36:19 +01:00
Milan Pavlik
db05a7f5be [server] Typed workspace region 2023-02-10 15:26:15 +01:00
Sven Efftinge
f4f343f07c [db] optimize workspace update 2023-02-10 14:19:15 +01:00
Sven Efftinge
2d3b91db39 [gitpod-db] reduce migration batch size 2023-02-10 10:26:14 +01:00
Sven Efftinge
df16e84434 [db/long migration] organizationId on workspace 2023-02-10 09:35:15 +01:00
Sven Efftinge
7de05704b2 [server] set organizationid on workspace creation 2023-02-09 15:55:14 +01:00
Sven Efftinge
a0ec2078ea [db] workspaces get organizationid 2023-02-09 10:40:14 +01:00
Sven Efftinge
74aa6db6e4 [ws-manager-api] Add region for cluster selection 2023-02-08 10:51:46 +01:00
Milan Pavlik
1dc48fbc23 [teams] Remove slug usage 2023-02-07 07:51:44 +01:00
Sven Efftinge
5082112863 [gitpod-db] Add region for cluster selection 2023-02-06 15:49:44 +01:00
Gero Posmyk-Leinemann
86ddf03542 [db] migration: add user.organizationId + index 2023-02-06 15:10:44 +01:00
Brad Harris
252d76b131 fixing test 2023-02-02 16:01:41 +01:00
Brad Harris
a376bcd445 enabling tests again 2023-02-02 16:01:41 +01:00
Brad Harris
f152269173 temporarily commenting out new organizationId test 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
Alex Tugarev
335c259004 [db-migrations] patch OAuthRevision migration
... and let it not unblock subsequent migrations on d_b_auth_provider_entry table.
2023-01-31 18:38:38 +01:00
Sven Efftinge
b67ae8179e [dashboard] user visible rename team->organization 2023-01-31 10:14:38 +01:00
Sven Efftinge
73f2a268ea synchronize migration 2023-01-30 11:17:37 +01:00
Andrew Farries
4b9a5fd5b1 Use a valid UUID for the admin user 2023-01-23 14:48:30 +01:00
Gero Posmyk-Leinemann
f0917a3721 [db] Create builtin-installation-admin-user 2023-01-20 11:27:27 +01:00
Brad Harris
7208a1413e adding a sort by name 2023-01-19 09:17:27 +01:00
Milan Pavlik
abff6189f2 [db] Add organisationId to d_b_oidc_client_config + indices 2023-01-18 11:56:26 +01:00
Sven Efftinge
53333d2ec9 [server] create a freemium team when no team exist 2023-01-18 11:11: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
3af4edc46c [server] migrate individual usage to teams 2023-01-13 09:11:52 +01:00
Gero Posmyk-Leinemann
51cd88a1f3 [db] Sync on connection initialization 2023-01-11 19:11:51 +01:00
Brad Harris
a33857ed6d adding test for findTeams by slug 2022-12-20 15:39:29 -03:00
Brad Harris
be6ea7bc1a adding team.slug to findTeams query 2022-12-20 15:39:29 -03:00
Gero Posmyk-Leinemann
8a03b3a156 [installer, gitpod-db] Introduce database.ssl.ca 2022-12-15 12:29:24 -03:00
Alex Tugarev
974cbcc531 [gitpod-db] Fix AuthCodeRepositoryDB.getByIdentifier 2022-12-15 05:43:24 -03:00
Alex Tugarev
e35b4690a1 [gitpod-db] add failing test for AuthCodeRepositoryDB.getByIdentifier 2022-12-15 05:43:24 -03:00
Milan Pavlik
620b0fa288 [oidc] Setup db 2022-12-13 11:14:23 -03:00