585 Commits

Author SHA1 Message Date
Alex Tugarev
46feeac4c9 [projects] Add Prebuild Events 2021-09-01 04:27:30 -03:00
Anton Kosyakov
f66598c82c [local-app] fix #5368: gracefully handle invalid tokens 2021-08-31 05:33:29 -03:00
Laurie T. Malau
8aab84e62d [dashboard] Allow onboarding mail
Fixes #5327
2021-08-26 11:22:25 -03:00
Alex Tugarev
1a9492c582 [db] remove "on update" from "creationTime" columns 2021-08-25 10:33:23 +02:00
Laurie T. Malau
78c54c1a20 Replace also if additionalData is null 2021-08-17 13:58:16 +02:00
Laurie T. Malau
9b965a4c3b Remove more references 2021-08-17 13:58:16 +02:00
Laurie T. Malau
6acd4f4a90 Remove references to allowsMarketingCommunication in test setups 2021-08-17 13:58:16 +02:00
Laurie T. Malau
c408324585 Create migration file to drop allowsMarketingCommunication column 2021-08-17 13:58:16 +02:00
Laurie T. Malau
aa679016e6 [dashboard/notifications] improve email preference handling 2021-08-17 13:58:16 +02:00
Simon Emms
f35e762354 [workspace]: add force-stop check on stopping workspaces
Since #4910 stopped counting "stopping" workspaces for billing purposes,
any workspace caught in a "stopping" phase would never be force-stopped.
This adds a conditional "includeStopping" boolean (defaulting to `false`)
to the DB implementation and the meta-instance-controller simply includes
that phase in the search.

It was discovered that ~200 workspaces were caught in this phase (90%
prebuilds) so this phase is necessary to force-stop.
2021-08-13 13:12:12 +02:00
Jan Keromnes
9103431794 [dashboard] Disallow team names that might conflict with dashboard URLs 2021-08-10 20:03:09 +02:00
Manuel Alejandro de Brito Fontes
026665efbf [gitpod-db] Fix invalid table name in query 2021-08-10 10:06:09 +02:00
Jan Keromnes
f46609f473 [dashboard] Don't list deleted user projects 2021-08-09 11:12:08 +02:00
Alex Tugarev
8448f30fe2 [projects/prebuilds] get rid of findProjectByInstallationId 2021-08-05 17:52:04 +02:00
Jan Keromnes
90d53721a9 [dashboard] Allow Projects for Individuals 2021-08-04 12:58:03 +02:00
Jan Keromnes
0a8553d057 [dashboard] Minor Teams & Projects UI fixes 2021-07-26 16:25:30 +02:00
Alex Tugarev
d306bacf6a review comments 2021-07-26 16:23:30 +02:00
Alex Tugarev
4b5694618e Add Prebuilds page 2021-07-26 16:23:30 +02:00
Jan Keromnes
1ef71614b0 Implement project configurator 2021-07-22 12:58:26 +02:00
Christian Weichel
9c2c831ed2 [gitpod-db] Don't count stopping instances as running 2021-07-22 12:19:26 +02:00
ArthurSens
4543a07760 Fix db-migration order
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2021-07-20 14:59:24 +02:00
Gero Posmyk-Leinemann
be64af383f [db, bridge] Review comments 2021-07-20 11:31:24 +02:00
Christian Weichel
d63f0f4585 [bridge] Set stoppingTime when workspace is stopping
there's no need to include the time our workspaces take to stop into account
when computing workspace runtime (which is accounting relevant).
2021-07-20 11:31:24 +02:00
Alex Tugarev
313fc79b91 remove custom Without type 2021-07-20 10:42:24 +02:00
Alex Tugarev
556897d9ca [db/server] Link workspaces and projects
Co-authored-by: Jan Keromnes <janx@linux.com>
2021-07-20 10:42:24 +02:00
Prince Rachit Sinha
2d6c3e1782
[database] Rename migration file name (#4834)
Due to the incorrect order of migration and file name the db-sync operation was failing. This commit renames the file which should migrate later.
2021-07-15 18:12:22 +05:30
Alex Tugarev
9ffcfd487f Fix prebuilds for projects 2021-07-14 07:55:36 +02:00
Cornelius A. Ludmann
92c30adf65 Revert "[server] support separate commit email"
This reverts commit e59e14df235c3d957bbd69ccf72b619109b04990.
2021-07-13 14:46:08 +02:00
Cornelius A. Ludmann
264982140f Revert "[typeorm] Catch JSON error in SIMPLE_JSON transformer"
This reverts commit 1e78c6c96e6d5c6367ba4f7a6ab73d6e9a389cde.
2021-07-13 14:46:08 +02:00
Cornelius A. Ludmann
640d07a55e Revert "[gitpod-db] Fix migration timestamp for IdentityTokensToEmails"
This reverts commit 14c36e65564ddde857cacf673f965ad67edd59c2.
2021-07-13 14:46:08 +02:00
Cornelius A. Ludmann
14c36e6556 [gitpod-db] Fix migration timestamp for IdentityTokensToEmails 2021-07-08 19:39:41 +02:00
Cornelius A. Ludmann
1e78c6c96e [typeorm] Catch JSON error in SIMPLE_JSON transformer 2021-07-08 17:21:51 +02:00
philschatz
e59e14df23 [server] support separate commit email 2021-07-08 17:21:51 +02:00
Geoffrey Huntley
4f590816d1
feat(db): update examples in the dashboard (#4698) 2021-07-08 12:13:06 +10:00
Jan Keromnes
00622db04d [dashboard] Improve team members page
- Fix memberSince date
- Replace paths /{new,join}-team with /teams/{new,join}
- Implement minimal top menu layout for full-page forms (e.g. new team/project)
- Implement removing members & leaving teams
- Implement member search & role filter
- Implement changing team member roles
2021-06-25 21:46:47 +02:00
Alex Tugarev
8552d9e67c Add New Project page and GH App installation 2021-06-23 15:36:22 +02:00
Moritz Eysholdt
fa8c626c7e Fix db-migrations 2021-06-23 10:44:46 +02:00
Geoffrey Huntley
f563295d2c
feat(db): update examples in the dashboard (#4447)
Co-authored-by: Mike Nikles <mikenikles@gmail.com>
2021-06-21 18:19:43 +10:00
Sven Efftinge
99ec2a5c57 [teams] Use invites that can be reset 2021-06-15 13:06:39 +02:00
Jan Keromnes
439482541c [dashboard] Implement inviting team members 2021-06-15 13:06:39 +02:00
Jan Keromnes
236d81d49a [server] Optimize getTeamMembers (N queries → 1 query) 2021-06-15 13:06:39 +02:00
Jan Keromnes
c5027f0804 [dashboard] Implement Teams UI (selector, creation wizard, members page, project page) 2021-06-10 16:08:19 +02:00
Autofix
e8762f258e Autofix: trailing-spaces 2021-06-09 12:52:57 +02:00
Mads Hartmann
169fd4b807
Extend admin workspace search (#4111)
* Extend workspace admin search

Extend search conditions to include instance UUID and workspace ID

Fixes #3992

* Update placeholder

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* Use title capitalisation for placeholder test

Co-authored-by: Cornelius A. Ludmann <cornelius.ludmann@typefox.io>

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
Co-authored-by: Cornelius A. Ludmann <cornelius.ludmann@typefox.io>
2021-06-09 09:48:28 +02:00
Jan Keromnes
4850f7c06f [db] Add 'creationTime' field to d_b_team_membership
Fixes https://github.com/gitpod-io/gitpod/pull/4368#discussion_r645371385
2021-06-06 14:44:17 +02:00
Jan Keromnes
34bbbf4736 [db] Implement new Project and Team entities
Also:
- set up EditorConfig to trim trailing whitespaces
- install Docker VS Code extension by default
2021-06-04 11:49:17 +02:00
Jan Keromnes
d99cc0e0ae [db] Remove unnecessary InitialComSetup migration (all tables already exist in Baseline) 2021-06-04 11:49:17 +02:00
jakobhero
52a79bc36e
Enable Product Comm by default for new Signups (#4365) 2021-06-01 13:36:44 +01:00
Mads Hartmann
b43fbfa22f
Add tests for findAllWorkspaceAndInstances (#4120)
* Add test for findAllWorkspaceAndInstances

The test is currently failing with a missing database error. I think
this is a problem with the test database setup rather than the specific
test

* Resolve failing test

Turns out that TypeORM column names are case sensitive when used for
ordering. The error message is terrible

    Cannot read property 'databaseName' of undefined

In this case we used contextUrl and it should have been contextURL.

While column names in mysql are case insensitive I also fixed one other
occurrence of contextUrl even though it is not necessary; but using the
column names makes it easier to find when searching for references etc.

* Add a launch configuration for db-test

* Add more assertions to the test
2021-05-28 13:58:32 +02:00
Gero Posmyk-Leinemann
1d97b90fa1 [db] Fix InitialComSetup 2021-05-26 11:18:45 +02:00