388 Commits

Author SHA1 Message Date
Pavel Tumik
a964eb79a9 re-use initializer for snapshot volumes 2022-05-25 13:17:39 +05:30
Jan Keromnes
ff300de9b2 [server][dashboard] Implement a new Team Billing where Owners can conveniently manage a paid plan for their Team 2022-05-16 13:25:31 +05:30
Jan Keromnes
f40d0cf0aa [db][protocol] Implement TeamSubscription2 DB shapes and migration 2022-05-09 23:07:25 +05:30
Pavel Tumik @ GitPod
f1c142b9fb [gitpod-db] add new DB entity for VolumeSnapshot 2022-05-09 20:08:24 +05:30
Radomir Stevanovic
ce5b6cd77a Reduce env var value UI limit to 32k-1 for consistency
Co-authored-by: Jan Keromnes <janx@linux.com>
2022-05-06 20:54:21 +05:30
Radomir Stevanovic
4d45a42e7e Add env var name/value length validation
Also, decrease maxlen for value from ~64k*3/4 to a nice round 32k.
2022-05-06 20:54:21 +05:30
Nandaja Varma
3444a6a057 [dashboard] license tab in the admin dashboard 2022-05-02 16:24:18 +05:30
mustard
32434b5ee3 feat: ide awareness during onboarding
Co-authored-by: mustard <huiwen@gitpod.io>
Co-authored-by: andreafalzetti <andrea@gitpod.io>
2022-04-28 12:26:14 +05:30
Andrew Farries
35e21783ac [webapp] Introduce new instance phase "building" (part I, back- and forwards-compatible) 2022-04-28 00:51:14 +05:30
Alex Tugarev
a57dee841a [server] fix tracing errors 2022-04-25 14:39:37 +05:30
Anton Kosyakov
614c0c7d3f [jb] experimental support of warm up in prebuilds 2022-04-25 13:21:37 +05:30
Gero Posmyk-Leinemann
d16776c20f [server] Extend EnvVar validation to API side 2022-04-22 15:46:34 +05:30
Gero Posmyk-Leinemann
ba00ef5ec2 [dashboard, protocol] Extract UserEnvVar.validate() into protocol 2022-04-22 15:46:34 +05:30
Jan Keromnes
e8ab358971 Allow integrating with 'github.com' without a GitHub App 2022-04-21 19:26:34 +05:30
Gero Posmyk-Leinemann
c26d1dc204 [server, dashboard] Refactor User.getPrimaryEmail to return "string | undefined" instead of throwing an error 2022-04-21 13:15:33 +05:30
Sven Efftinge
7ba0e6c14a [protocol] fix generate id for bad repo names 2022-04-19 20:47:32 +05:30
Gero Posmyk-Leinemann
8216f8c68e [server, protocol] Remove superfluous "stage" config 2022-04-19 20:33:32 +05:30
Gero Posmyk-Leinemann
37feff2c4a [proxy] REplace GITPOD_INSTALLATION_LONGNAME with "<region>.<shortname>" 2022-04-19 20:33:32 +05:30
Jan Keromnes
ed30d9696f Stop running prebuilds for inactive projects (10+ weeks)
Fixes https://github.com/gitpod-io/gitpod/issues/8911
Fixes prebuild rate limit
2022-04-12 22:37:25 +05:30
Gero Posmyk-Leinemann
448a47e94e [helm] remove unused GITPOD_INSTALLATION_SHORTNAME env var 2022-04-11 21:03:24 +05:30
mustard
47af622350 [dashboard,server] switch ide version with one toggle 2022-04-11 19:30:25 +05:30
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