585 Commits

Author SHA1 Message Date
Andrew Farries
9ea0867ce7 Implement soft deletion of pending github events 2022-09-29 15:29:29 +02:00
Andrew Farries
b2affdaef2 Add deleted field to d_b_pending_github_event
This will be used to enable soft deletion and then syncing via
`db-sync`.
2022-09-29 13:18:29 +02:00
Andrew Farries
ec9ac63412 Add d_b_installation_admin table to db-sync 2022-09-29 11:02:29 +02:00
Milan Pavlik
cd47261041 [db] Add index to d_b_workspace_instance on startedTime & stoppingTime 2022-09-29 11:01:29 +02:00
Andrew Farries
9ccc40eb36 Remove d_b_email from tables.ts 2022-09-29 08:06:29 +02:00
Andrew Farries
37908b4f15 Add comment to entity 2022-09-28 08:42:28 +02:00
Andrew Farries
baea972f08 Add migration to add db-sync columns
Add a migration to add `_lastModified` and `deleted` columns to the
`d_b_volume_snapshot` table so that it can be synced by `db-sync`.
2022-09-28 08:42:28 +02:00
Andrew Farries
7bfaf3a2ab Migration to remove d_b_generated_license table 2022-09-27 14:26:27 +02:00
Andrew Farries
35b569302c Delete supporting files for d_b_email table 2022-09-27 13:38:27 +02:00
Andrew Farries
254b955c89 Add migration to remove d_b_email table 2022-09-27 13:38:27 +02:00
Andrew Farries
6e8eb017d6 Migration to remove d_b_email_notification_data 2022-09-27 13:03:27 +02:00
Andrew Farries
9cc9c35523 Remove duplicate entry for d_b_prebuilt_workspace 2022-09-26 14:16:27 +02:00
Sven Efftinge
1516e4c4df [server] restrict allowed phone numbers 2022-09-23 15:27:23 +02:00
Milan Pavlik
6c40c53a7c [server] Delete prebuild records when purging workspaces 2022-09-23 09:26:23 +02:00
Milan Pavlik
5d1ed09f05 [db-sync] Enable sync for d_b_prebuilt_workspace and d_b_prebuilt_workspace_updatable 2022-09-22 11:24:22 +02:00
Milan Pavlik
c5c5be9b5e [db] Add deleted and _lastModified columns, index _lastModified for d_b_prebuilt_workspace_updatable 2022-09-21 19:04:22 +02:00
Milan Pavlik
8953c4b751 [db] Add deleted column to d_b_prebuilt_workspace 2022-09-21 19:03:22 +02:00
Milan Pavlik
d51dc0b9d0 [db] Drop d_b_billed_session table 2022-09-19 15:05:20 +02:00
Gero Posmyk-Leinemann
544e7843e9 [db-sync] Fix it 2022-09-16 19:28:17 +02:00
Andrew Farries
785c2a11c4 Remove entry from TableDescriptionProvider
This table was removed from the db in #12948.
2022-09-16 10:34:17 +02:00
Sven Efftinge
2701ec7bdc [usage] added costcenter nextBillingTime 2022-09-15 19:18:16 +02:00
Gero Posmyk-Leinemann
a7fd1becd6 [server] Delete Workspaces & Workspace Instances after configured period 2022-09-15 15:27:16 +02:00
Milan Pavlik
0568fdcb48 [db] Drop d_b_workspace_instance_usage 2022-09-14 11:47:15 +02:00
Jan Keromnes
7a23e97cf6 [server][dashboard][protocol] Remove deprecated Project DB config feature 2022-09-13 07:50:14 +02:00
Sven Efftinge
74bc751ec7 [cost center] Add save API 2022-09-09 11:25:24 +02:00
Jean Pierre
eb9aaa995e Store editSessions 2022-09-08 18:47:23 +02:00
Sven Efftinge
c1bb9b1d37 [db-sync] sync d_b_usage 2022-09-06 09:54:21 +02:00
Sven Efftinge
e7e1740920 [usage] constrain workspaceInstanceId to be unique 2022-09-05 08:51:20 +02:00
Sven Efftinge
f54482b8c3 Added Usage table 2022-09-02 11:33:17 +02:00
Alex Tugarev
ad355c4d9a [db] fix d_b_workspace_instance_usage.startedAt and add ind_dbsync 2022-09-01 13:00:16 +02:00
Jan Keromnes
1e08e2cec2 [gitpod-db] Increase "before each" timeout of AccountingDBSpec and AuthProviderEntryDBSpec 2022-09-01 10:46:16 +02:00
Alex Tugarev
8f59fb64bc Fix deletion of old webhook events 2022-09-01 07:30:16 +02:00
Alex Tugarev
a2fa9dcfa3 Clean up webhook events
by running a periodic garbage collector. This is a pattern we use for other resources.

fixes #12430
2022-08-31 15:08:16 +02:00
Milan Pavlik
8c6a6ba4cc [db-sync] Add d_b_workspace_instance_usage to db-sync 2022-08-29 10:50:13 +02:00
Sven Efftinge
79b75ab4d5 Add phone verification 2022-08-29 09:36:13 +02:00
Milan Pavlik
b2313e6a14 [usage] Add _lastModified column to d_b_workspace_instance_usage 2022-08-26 10:04:11 +02:00
Jan Keromnes
9519ee4385 [db][usage] Add d_b_billed_session table migration and Go definitions
Co-authored-by: Laurie T. Malau <laurie@gitpod.io>
2022-08-04 09:26:48 -03:00
Alex Tugarev
07c3e72290 Fix persistence of usageAttributionId 2022-07-21 12:50:16 -03:00
Alex Tugarev
472f0b71e0 Move usageAttributionId 2022-07-21 08:55:16 -03:00
Thomas Schubart
4f6a5b576c Incorporate review feedback
- Use latest workspace instance to set workspace class
- Add more detailed configuration for workspace classes
- Make workspace classes configurable in installer
2022-07-21 05:10:16 -03:00
Thomas Schubart
c16b43ca5b [gitpod-db] Add class column to workspace table 2022-07-21 05:10:16 -03:00
Gero Posmyk-Leinemann
b6471fdfb3 [server, db] Fix BlockedRepository.delete 2022-07-20 09:05:15 -03:00
Alex Tugarev
7057101a4d [db][protocol] Implement a CostCenter entity to attribute workspace usage to 2022-07-20 04:05:15 -03:00
Andrew Farries
d5987afa17 Move migration file to correct dir 2022-07-19 08:42:14 +02:00
Alex Tugarev
4ef9f0d43b Add mising db-sync config for d_b_webhook_event 2022-07-19 08:26:14 +02:00
Milan Pavlik
058c31eea2 [usage] Store user, project, workspace, type & class 2022-07-18 15:29:13 +02:00
Alex Tugarev
6c395b5881 Record webhook events 2022-07-15 10:58:02 +02:00
Andrew Farries
d587d73dc6 Rename column in database entity
Rename the misnamed primary key `workspaceId` -> `instanceId`.

Usage based billing is unreleased so just drop the table and recreate it
- no data to migrate.

Also add index names.
2022-07-14 15:25:01 +02:00
Andrew Farries
58de22f8bf Add migration for new usage table 2022-07-12 15:15:59 +02:00
Andrew Farries
05783e320e Add new database entity for usage table 2022-07-12 15:15:59 +02:00