615 Commits

Author SHA1 Message Date
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
cda8b7bd02
[dev-image] Set DB_HOST to 127.0.0.1 by default (#16797) 2023-03-13 09:46: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
7d8180aae9
[db] Setup go db tracing (#16706)
* [installer] Do not pull blobserve implementation into installer

* fix

* Fix

* [db] Setup go db tracing

* fix

* Fix

* fix

* Fix
2023-03-10 09:23:46 +01:00
Milan Pavlik
13b3b013b6
[logging] Enable storing/extracing of logger from context (#16658)
* [logging] Enable storing/extracing of logger from context

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix
2023-03-09 10:27:45 +01:00
Milan Pavlik
e4e05143e2
[baseserver] Initialize tracer with server (#16586)
* [baseserver] Initialize tracer with server

* fix

* Fix

* fix
2023-03-03 14:57:01 +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
Aleksandar
ef78100610
Fix dbtest gha run (#16506) 2023-02-24 16:30: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
Milan Pavlik
1d4cab9c8b [gorm] Ignore NotFound errors when logging 2023-02-08 14:54:46 +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
Gero Posmyk-Leinemann
ab6895e4b7 [db] Make 'leeway run components/gitpod-db:init-testdb' the new default for starting test dbs 2023-01-23 16:51:30 +01:00
Andrew Farries
4b9a5fd5b1 Use a valid UUID for the admin user 2023-01-23 14:48:30 +01:00
Milan Pavlik
e5c8da1491 [oidc] Implement Get OIDC Client Config API 2023-01-20 15:53:28 +01:00
Moritz Eysholdt
d467d37575 Fix Go DB test in GHA 2023-01-20 15:49:28 +01:00
Milan Pavlik
72a31730f7 [oidc] Delete OIDC Client Config API 2023-01-20 15:00:28 +01:00
Moritz Eysholdt
a8b928030c Add MySQL service 2023-01-20 14:44:28 +01:00
Gero Posmyk-Leinemann
f0917a3721 [db] Create builtin-installation-admin-user 2023-01-20 11:27:27 +01:00
Milan Pavlik
7012fe2ce3 [oidc] List client configs API implementation 2023-01-19 14:30:27 +01:00
Brad Harris
7208a1413e adding a sort by name 2023-01-19 09:17:27 +01:00
Milan Pavlik
fde5279d3a [db] Implement basic list oidc client configs 2023-01-19 08:26:26 +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