267 Commits

Author SHA1 Message Date
Christian Weichel
0303453c07 Remove checkoutLocation from StartWorkspaceReq 2022-04-08 00:29:21 +05:30
Cornelius A. Ludmann
5166afd3d9 [installer] Allow to set default workspace timeout 2022-04-06 14:35:19 +05:30
Pavel Tumik
5a62315e27 add PVC feature flag 2022-04-06 01:59:19 +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
76b51bc224 [bitbucket-server] support for projects and prebuilds 2022-04-04 14:07:17 +05:30
Jan Keromnes
5578e23cfa [server] Fix automated prebuilds for GitHub Enterprise repositories 2022-03-14 22:03:21 +05:30
Milan Pavlik
2f0b9462b0 Format components/gitpod-protocol with prettier 2022-03-14 21:42:21 +05:30
Milan Pavlik
dbaffae562 Clarify WS Conditions - failed vs headlessTaskFailed 2022-03-14 18:24:21 +05:30
mustard
f6080897a7 Remove Theia extension related code 2022-03-12 00:17:18 +05:30
Sven Efftinge
cc2f3b30fe [multi-repo] Support prebuilds on multi-repo setup 2022-03-10 15:46:17 +05:30
Sven Efftinge
2e1774eaf7 [multi-repos] Allow specifying subrepositories 2022-03-10 15:46:17 +05:30
Gero Posmyk-Leinemann
740092ec97 [server] Introduce TeamSubscription.excludeFromMoreResources 2022-03-07 22:07:14 +05:30
Sven Efftinge
de84f281c8 [prebuilds] Introduce 'failed' state for prebuilds
Distinguish between failed tasks but finished prebuilds
and fully failed prebuilds (no snapshot)

fixes https://github.com/gitpod-io/gitpod/issues/8592
2022-03-07 20:06: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
jakobhero
9880270118 Only push events of authenticated users to Mixpanel 2022-03-02 16:17:09 +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
3be4e0b7a5 telmetry: show collected data under the disable option
Currently, The service ping can be disabled by going into the
admin settings. Users are more likely to do that if they have
no clue what is being sent.

This PR tries to improve this experience, by showcasing the
exact data that is being sent below the option. This is possible
by creating a new TelemetryDataProvider and injecting that
both in the `installation-admin-collector` controller
and the `gitpod-service` (`getTelemetryData` func is added here
that can be used).

This PR also adds a gaurd to the `/admin/settings` page which
was missing previously

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>

replace cluster with gitpod instance in desc

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>

easy nits around design and TelemetryData naming

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>

gaurd telemetry method with admin access

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>

replace TelemetryData at more places

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>

gaurd access to `admin/settings` like other admin settings

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>

call useEffect hook early

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-02-21 17:42:01 +05:30
Jan Keromnes
2d443923f2 [server] Restrict snapshot access based on repository access
Also refactor:
- Simplify GuardedSnapshot.workspace
- WorkspaceLogAccessGuard → RepositoryResourceGuard
- RepositoryService.canAccessHeadlessLogs → RepositoryProvider.hasReadAccess
2022-02-21 15:47:01 +05:30
jakobhero
9a4492ef9c include anonymous ID in server-side tracking where possible 2022-02-18 09:51:58 +01:00
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
544862b9e0 [protocol] Fix toPermissionSet 2022-02-15 13:49:36 +01:00
Gero Posmyk-Leinemann
caa8a23300 [ws-manager-api, protocol] Slight refactor of cluster selection
1. Generalized cluster selection for "HasPermission" AdmissionConstraints
 Before the "constraintNewWorkspaceCluster" was seen as special case, that also was too general. This way it's straight forward to extend to other permissions

 2. Separated "cluster authorization" into a separate Constraint which is applied to all ClusterSets. Before the authoritzation was more an optimization of the cluster precedence
2022-02-15 10:37:36 +01:00
Gero Posmyk-Leinemann
ec35e4f86b [protocol, server] Move "toPermissionSet" into protocol 2022-02-15 10:37:36 +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
4feee36008 [server] Instead of FOLLOWS_FROM, enhance notifications with clientMetadata directly 2022-02-14 16:17:35 +01:00
Gero Posmyk-Leinemann
24551594b9 [server] tracing: Avoid using FOLLOWS_FROM references due to lots of errors 2022-02-14 16:17:35 +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
Gero Posmyk-Leinemann
5ff578ed67 [server, dashboard] Never fail when parsing ContextURL
Additionally:
 - always prefer `ws.context.normalizedContextURL` over `ws.contextURL`
 - if `normalizedContextURL` is not set, always try to normalize it
2022-02-09 15:51:31 +01:00
Jan Keromnes
913d96392c [protocol] Make ContextURL.parseToURL support the newly-accepted 'git@{host}:{user}/{repo}.git' format
Fixes https://github.com/gitpod-io/gitpod/issues/8097
Companion to https://github.com/gitpod-io/gitpod/pull/7951
2022-02-09 10:17:31 +01:00
Jan Keromnes
63f613704e [server][dashboard] Improve 'New Workspace' modal with a search input, keyboard navigation, and a new context URL suggestion API 2022-02-08 14:48:30 +01:00
Pudong Zheng
22f346c17b allow user select eap version of JetBrains IDE 2022-02-08 09:27:29 +01:00
Gero Posmyk-Leinemann
d955ce10f0 [server, dashboard] Do basic rate limiting on startWorkspace 2022-02-07 18:54:29 +01:00
Gero Posmyk-Leinemann
fdd353d9c5 [server] lint: "no-floating-promises" 2022-02-04 14:29:26 +01:00
Jan Koehnlein
28e4c1c613 [gitlab] support nested repos in envvar patterns 2022-02-03 12:54:25 +01:00
Christian Weichel
b67e3ecdb7 [workspace-cluster] Introduce has-more-resources constraint 2022-02-02 18:46:24 +01:00
Christian Weichel
dbeeafafd0 [workspace cluster] Remove admission preferences 2022-02-02 18:46:24 +01:00
Gero Posmyk-Leinemann
51568c7497 [server] Stream imagebuild logs from headless workspace directly 2022-02-02 17:35: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
Simon Emms
18259dc5b8 Create installation admin controller 2022-01-25 12:26:17 +01:00
Anton Kosyakov
f3ed7e4a91 [ide] desktop client installation steps 2022-01-24 13:32:16 +01:00
Anton Kosyakov
b571eefeef [server] add referrer prefix to control IDE option 2022-01-24 13:32:16 +01:00
Anton Kosyakov
2f72df6f19 [server] allow to fetch owner token 2022-01-24 13:32:16 +01:00
Jean Pierre
4e2c57e672 Use space character instead of u+00a0 2022-01-21 08:13:13 +01:00
Jan Keromnes
11c092b8b3 [db][server][dashboard] Allow censoring Project environment variables out of Workspaces 2022-01-17 19:37:10 +01:00