183 Commits

Author SHA1 Message Date
Alex Tugarev
76b51bc224 [bitbucket-server] support for projects and prebuilds 2022-04-04 14:07:17 +05:30
Laurie T. Malau
106c508642 Iterate through pages 2022-03-29 19:32:12 +05:30
Jan Keromnes
dd003b54cc [server] Prefer Gravatar for GitHub Enterprise owner avatars if available 2022-03-17 00:10:23 +05:30
Andrew Farries
54618bfc2a Prettier formatting changes 2022-03-15 19:53:23 +05:30
Andrew Farries
8ca875ddc0 Use timingSafeEqual for signature comparision 2022-03-15 19:53:23 +05:30
Milan Pavlik
45f13cf8e9 Format components/server with prettier 2022-03-14 21:30:24 +05:30
Simon Emms
6a45329849 [server]: cache the getUserCount on the requireEELicense calls 2022-03-14 20:14:21 +05:30
Simon Emms
321a269e77 [server]: add seats to the licensor.enabled call 2022-03-14 20:14:21 +05:30
Milan Pavlik
f699ffbee9 Lint/fix prebuild-manager.ts 2022-03-11 22:09: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
Jan Keromnes
85dfa458c4 [server] Support Projects and Prebuilds with GitHub Enterprise repositories 2022-03-09 22:47:16 +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
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
31efabc38b Remove free text search on contextURL 2022-03-02 16:34:09 +05:30
Laurie T. Malau
9d3a8b77d1 Manage teams as admin 2022-02-25 18:10:04 +05:30
Alex Tugarev
ff76959dfd [server/bitbucket] fix response codes for webhook events
so that they are not resent whenever we answer with code 5xx. cf. https://support.atlassian.com/bitbucket-cloud/docs/troubleshoot-webhooks/
2022-02-24 14:14:04 +05:30
Alex Tugarev
8e00078d77 [server/bitbucket] don't log notice message 2022-02-24 14:14:04 +05:30
Gero Posmyk-Leinemann
a81c23ee50 [ts] Update network-facing libs like express (et al.), node-fetch, p-throttle 2022-02-21 22:34:01 +05:30
Gero Posmyk-Leinemann
92e8a6d767 [server] Explicitly set timeouts for all fetch() requests 2022-02-21 22:34: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
Alex Tugarev
e205b485c3 [server] add basic support for BitBucket Server 2022-02-16 21:04:56 +01:00
Gero Posmyk-Leinemann
4feee36008 [server] Instead of FOLLOWS_FROM, enhance notifications with clientMetadata directly 2022-02-14 16:17:35 +01:00
Alex Tugarev
6f11cbbe24 [server][github] fix selection of user for prebuilds 2022-02-11 17:49:32 +01:00
Jan Keromnes
8eee4c99e8 [server] Log response status when GitHub Education API calls fail 2022-02-08 14:48:30 +01:00
Alex Tugarev
bbf7036eec [gitlab] align findProjectAndOwner 2022-02-08 13:49:29 +01:00
Alex Tugarev
5caaf382b6 [bitbucket] fix linking projects to prebuilds on push event 2022-02-08 13:49:29 +01:00
Alex Tugarev
1a52dfe933 [bitbucket] ignore branch deletion events 2022-02-08 13:49:29 +01:00
Gero Posmyk-Leinemann
fdd353d9c5 [server] lint: "no-floating-promises" 2022-02-04 14:29:26 +01:00
Christian Weichel
5b74af7518 [server] Tie increased resource access to payment status 2022-02-02 18:46:24 +01:00
Laurie T. Malau
4d9d49d81c Allow project search and show project detail 2022-02-01 15:20:24 +01:00
Jan Keromnes
b7d359d581 [server] Ensure incremental prebuilds always use the latest config 2022-01-31 13:15:22 +01:00
Simon Emms
f9ec0f8cc6 [dashboard]: create a settings tab inside admin 2022-01-26 15:53:19 +01:00
Sven Efftinge
4d47f0b761 [prebuilds] no update status for pending prebuild
fixes #7794
2022-01-25 09:12:17 +01:00
Anton Kosyakov
b571eefeef [server] add referrer prefix to control IDE option 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
Sven Efftinge
ac0eeeecee [server] fix commit check 2022-01-18 17:36:24 +01:00
Jan Keromnes
1c0ee09cdc [db][server][dashboard] Implement Project-level environment variables 2022-01-17 19:37:10 +01:00
Sven Efftinge
1c3b62d584 [server] allow prevent merge on failed prebuilds
fixes #7518
2022-01-12 17:44:05 +01:00
Gero Posmyk-Leinemann
f8218bda23 [server] Refer to connection TraceContext when sending notifications to websocket clients 2022-01-12 12:39:05 +01:00
Jan Koehnlein
506dcc5e7b [server] remove GraphQL API 2022-01-11 09:34:04 +01:00
Gero Posmyk-Leinemann
28597c5342 Revert "[server, protocol] Remove GithubAppConfig.addCheck"
This reverts commit a62ce4a2c0f9ddf23463d2043257e241034b129f.
2022-01-10 16:02:04 +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
63aba9a32e [server, protocol] Remove GithubAppConfig.addCheck
We can remove this without prior deprecationg because it has never been part of the externak interface (gitpod-schema.json)
2022-01-07 15:05:01 +01:00
Gero Posmyk-Leinemann
84b0fbee7a [server, et al] Remove PrebuildStatusMaintainer and subsequent unused code 2022-01-07 15:05:01 +01:00
Sven Efftinge
f8086b9a25 [server] use owner and repo name for workspace id
This change introduces optional arguments in generateWorkspaceId
for the first two segments. And makes use of it in workspace factory
using the repos org/group and name.

fixes https://github.com/gitpod-io/gitpod/issues/4129
2022-01-07 10:33:00 +01:00
Sven Efftinge
91c09f7c2b [server] derive configuration when no explicit one
Fixes https://github.com/gitpod-io/gitpod/issues/6921
2021-12-30 14:45:53 +01:00
Laurie T. Malau
254a3c4664 Link to user profile 2021-12-21 15:12:45 +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