Jan Keromnes
81a79af4ec
[gitpod-db] Don't consider garbage-collected prebuilds as potential bases for incremental prebuilds
2022-04-05 18:58:19 +05:30
Milan Pavlik
5d9be03d7d
fix
2022-04-05 13:52:18 +05:30
Milan Pavlik
da4a9b38da
add migrations
2022-04-05 13:52:18 +05:30
Milan Pavlik
bb216d29b8
fix tests
2022-04-05 13:52:18 +05:30
Milan Pavlik
a05badbd15
fix
2022-04-05 13:52:18 +05:30
Milan Pavlik
c8c0847193
[db] Add stateVersion to prebuilds to track status version
2022-04-05 13:52:18 +05:30
Alex Tugarev
bf3bddf141
[auth] fix missing updates to dynamic login providers
...
this primarily affects self-hosted installation where the `ownerId` is about to change during the initial setup of the login/git provider.
2022-03-31 20:08:14 +05:30
Gero Posmyk-Leinemann
01f4897c53
[db] Fix findPrebuildsWithWorkpace
2022-03-18 16:43:24 +05:30
Tarun Pothulapati
b800a43aa4
[gitpod-db] add index on workspaceDB.Type Column
...
For Telemetry queries to be less intensive on the CPU, We need to
build Indexes to make the querying faster
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-03-17 17:41:23 +05:30
Gero Posmyk-Leinemann
405966efc7
[db] Add missing Workspace index (id, deleted)
2022-03-15 15:37:22 +05:30
Milan Pavlik
845e66c56b
Format components/gitpod-db with prettier
2022-03-14 21:48:21 +05:30
mustard
4f1c3922b4
[server] remove setting sync record with limit
2022-03-12 02:26:18 +05:30
Sven Efftinge
53668f1253
[server] fix compile error
2022-03-10 17:37:17 +05:30
Sven Efftinge
cc2f3b30fe
[multi-repo] Support prebuilds on multi-repo setup
2022-03-10 15:46:17 +05:30
Andrew Farries
54a765d321
Add rate limits for prebuilds
...
Prebuilds are rate-limited to N in the last S seconds on a rolling
window basis.
By default, 50 prebuilds are allowed in a 1 minute window.
A configuration property `prebuildLimiter` is added which controls
default rate limit but allows for explicit overrides by cloneURL.
2022-03-08 19:40:15 +05:30
Gero Posmyk-Leinemann
740092ec97
[server] Introduce TeamSubscription.excludeFromMoreResources
2022-03-07 22:07:14 +05:30
Laurie T. Malau
29df192bd0
Fix workspace search under user detail
2022-03-03 18:15:10 +05:30
Laurie T. Malau
31efabc38b
Remove free text search on contextURL
2022-03-02 16:34:09 +05:30
Filip Troníček
0d05dcf813
Update VS Code Settings sync schema and VS Code repo refs
...
Remove Theia assignments
Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
2022-03-01 19:22:08 +05:30
Laurie T. Malau
9d3a8b77d1
Manage teams as admin
2022-02-25 18:10:04 +05:30
Gero Posmyk-Leinemann
4e331313ad
Revert "Revert "[server, db] AuthProviderEntry: Introduce oauthRevision to avoid repeated materialization of encrypted data""
...
This reverts commit ddc7aaa72c426648b5c7165567f6970d51db936a.
2022-02-24 14:30:05 +05:30
Tarun Pothulapati
5f6114c282
telemetry: add more fields to data
...
Fixes https://github.com/gitpod-io/gitpod/issues/7866
This PR updates the `installation-admin-controller` to also retrieve
more data to send with telemetry. These are not part of the
`installationAdminDb` as we do not want to store this in the database
but lazily retrieve whenever a request is sent to `/data` endpoint
of the `installation-admin` express app unlike the `uuid` and settings
which need to be stored and updated.
The following fields are added:
- `totalUsers` : specifies the total number of users in the instance
- `totalWorkspaces`: specifies the total number of **regular** workspaces in the instance
- `totalInstances`: specifies the total number of **regular** workspace instances in the gitpod instance
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-02-17 12:08:57 +01:00
Gero Posmyk-Leinemann
a3d1b614f8
[ws-manager-bridge] Emulate InstanceUpdates for 'Preparing' phase to decouple messagebus
2022-02-17 11:43:57 +01:00
Gero Posmyk-Leinemann
ddc7aaa72c
Revert "[server, db] AuthProviderEntry: Introduce oauthRevision to avoid repeated materialization of encrypted data"
...
This reverts commit 07e013ecc2808240b768710886ff52fac0f921bd.
2022-02-14 20:35:35 +01:00
Gero Posmyk-Leinemann
bcf031498e
Revert "Create an index for contextURL column"
...
This reverts commit e0f7bfe976924005a4591ed9d3eb9e919111336a.
2022-02-14 17:51:35 +01:00
Alex Tugarev
ebf351edf1
[github-app] change findInstallation semantics
...
to return any non-uninstalled record which may now be used to identify the installer of an GitHub App installation.
2022-02-11 17:49:32 +01:00
Gero Posmyk-Leinemann
07e013ecc2
[server, db] AuthProviderEntry: Introduce oauthRevision to avoid repeated materialization of encrypted data
2022-02-11 16:44:33 +01:00
Laurie T. Malau
e0f7bfe976
Create an index for contextURL column
2022-02-09 13:25:30 +01:00
Alex Tugarev
e9cd644893
[server] fix wrong order of tokens to select from
2022-02-08 15:11:29 +01:00
Gero Posmyk-Leinemann
6c0c82ce0f
[server] Change PeriodicDeleter interval: 2s->30s
2022-02-03 13:21:25 +01:00
Gero Posmyk-Leinemann
1c4cd73f47
[db] Add index for all queries on DBPrebuildWorkspaceUpdatable
2022-02-03 11:52:25 +01:00
Christian Weichel
dbeeafafd0
[workspace cluster] Remove admission preferences
2022-02-02 18:46:24 +01:00
Gero Posmyk-Leinemann
ce802b8841
[image-builder, et. al] Return the public workspace URL for all imagebuilds (incl. extra headers to access said URL) and store it in workspace
2022-02-02 17:35:24 +01:00
Laurie T. Malau
4d9d49d81c
Allow project search and show project detail
2022-02-01 15:20:24 +01:00
Jan Keromnes
0736b3bbde
[dashboard][server] Make Project Overview page faster by pre-fetching and caching Git provider data (branches)
2022-01-31 11:23:22 +01:00
Simon Emms
f9ec0f8cc6
[dashboard]: create a settings tab inside admin
2022-01-26 15:53:19 +01:00
Alex Tugarev
d7f06d0e9d
[server] allow having +1 active tokens
...
We've seen cases where more than one active token is persisted in the DB, which might be cased by db-sync issues. Given that this case is quite rare, this PR drops the hard assertion and replaces it by logging a warning. This is a mitigation for #7196 .
Fixes #7196
2022-01-26 14:14:18 +01:00
Simon Emms
18259dc5b8
Create installation admin controller
2022-01-25 12:26:17 +01:00
Jan Keromnes
c7ba9832d7
Fix DB migration order
2022-01-18 09:30:11 +01:00
Jan Keromnes
bb809461b5
Address code review feedback
...
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
Co-authored-by: jldec <jurgen@gitpod.io>
2022-01-17 19:37:10 +01:00
Jan Keromnes
11c092b8b3
[db][server][dashboard] Allow censoring Project environment variables out of Workspaces
2022-01-17 19:37:10 +01:00
Jan Keromnes
1c0ee09cdc
[db][server][dashboard] Implement Project-level environment variables
2022-01-17 19:37:10 +01:00
Gero Posmyk-Leinemann
89e94030f9
Revert "[server, et al] Remove PrebuildStatusMaintainer and subsequent unused code"
...
This reverts commit 6dfe5520fc96757387d52237f35df9cf8a77943e.
2022-01-10 16:02:04 +01:00
Gero Posmyk-Leinemann
84b0fbee7a
[server, et al] Remove PrebuildStatusMaintainer and subsequent unused code
2022-01-07 15:05:01 +01:00
Jan Keromnes
9ab23fe0f8
[db] Remove dropped table d_b_payment_source_info from db-sync
2022-01-06 09:42:59 +01:00
Jan Koehnlein
2479e48549
[db] use blocklist to filter team names
2022-01-05 08:59:58 +01:00
championshuttler
8d20205e86
Remove FORBIDDEN_SLUGS
2022-01-05 08:59:58 +01:00
Gero Posmyk-Leinemann
46df01a04e
[db] DROPT TABLE d_b_payment_source_info
2022-01-04 13:07:58 +01:00
Gero Posmyk-Leinemann
fec0a0a87f
[db, payment] Remove DBPaymentSource
2021-12-20 16:05:44 +01:00
Alex Tugarev
556c03ce7c
Mention username who added project in a team
...
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
Co-authored-by: Laurie T. Malau <laurie@gitpod.io>
Co-authored-by: Alex Tugarev <alex.tugarev@typefox.io>
2021-12-20 09:16:44 +01:00