298 Commits

Author SHA1 Message Date
Brad Harris
0f926eb721
adding missing fields to CreateAndStartWorkspace (#18874)
* adding some missing fields to CreateAndStartWorkspace

* updated mocks
2023-10-06 02:27:14 +03:00
Alex Tugarev
b2260d021e
Migrate Prebuild settings – EXP-672 (#18842)
* [protocol] Add PrebuildSettings to ProjectSettings

* add migration function

* add migration function and test

* update protocol helper functions

* update prebuild manager

* use new prebuild setting in frontend

* update papi

* fix papi test

* rename var

* fix papi mapping

* deprecation note

* update migration function

* fix prebuild-manager

* fixup server

* fix Enable Prebuilds on Project Settings

* Use Project.getPrebuildSettings
and

* fix countUnabortedPrebuildsSince

* improve usage of default settings

* fix Build Branches select

* fix papi conversion 🤯

* don't save empty pattern strings

* fix papi-server conversion and align naming of prebuild settings

* fix getPrebuildSettings

* [prebuilds] changed prebuild semantics

- no more incremental prebuilds
- always incremental workspace
- never wait for running prebuilds

---------

Co-authored-by: svenefftinge <sven@gitpod.io>
2023-10-05 17:37:13 +03:00
Robo Quat
5791d13ac6
update index (#18872)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-10-05 16:49:14 +03:00
Robo Quat
20ff1be12e
update index (#18848)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-10-02 10:09:11 +03:00
Robo Quat
7c3129db2f
update index (#18841)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-09-29 10:15:07 +03:00
Sven Efftinge
c6e90d48cc
[stripe] reconcile missing invoices (#18810) 2023-09-26 18:39:05 +03:00
Manuel Alejandro de Brito Fontes
8ef82ff356
Update go modules to 1.21 (#18805) 2023-09-26 17:52:05 +03:00
Robo Quat
7a74d1c3c4
update index (#18786)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-09-25 12:59:04 +02:00
Alex Tugarev
df155ad0e9
Match branch names by pattern – EXP-575 (#18734)
* turn text input into select input

* mimic old behavior for pre-existing projects

* explicit settings under the project should have precedence

* add PrebuildBranchPattern to project settings

* add branch name pattern to project settings page

* fixup c&p error

* match branch names by glob pattern

* fix pattern matching

* fix project settings form

* fix initial value for prebuildBranchPattern

* adding more tests

* add globstar tes

* fixup rebase error

* Apply suggestions from code review

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

* fine tune debounce wait

---------

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2023-09-22 13:57:01 +02:00
Alex Tugarev
252992223d
Add prebuildDefaultBranchOnly setting – EXP-574 (#18716)
* add `prebuildDefaultBranchOnly` to `Project.settings`

* evaluate prebuildDefaultBranchOnly in PrebuildManager

* add "Prebuild the default branch only" checkbox

* fix missin PAPI mapping 🤯

* fix PrebuildDefaultBranchOnly in gitpod-service.go

* turn text input into select input

* update styles on project settings page

* mimic old behavior for pre-existing projects

* use getPrebuildBranchStrategy in PrebuildManager

* add tests for PrebuildManager.prebuildPrecondition

* fix getPrebuildEvents

* explicit settings under the project should have precedence

* render changes to project settings immediately
2023-09-22 11:59:01 +02:00
Huiwen
62c573a453
Add default image get to PAPI and improve Dashboard (#18767)
* [server] update getDefaultWorkspaceImage api

* [dashboard] api usage update

* [protocol] add go definition

* [papi] add getDefaultWorkspaceImage method

* fixup

* [dashboard] add org image warning to start workspace page

* fix error wrap

* Update supervisor to use publicApi

* [dashboard] always show default image and remove tag width limit

* fixup

* move new warning to StartPage

* Update components/dashboard/src/teams/TeamSettings.tsx

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

* Address feedback

---------

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2023-09-22 11:58:01 +02:00
Robo Quat
d624e9e54d
update index (#18770)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-09-22 11:15:01 +02:00
Alex Tugarev
cb3a7f00c6
Add "Enable Prebuilds" to Project Settings – EXP-573 (#18698)
* cleanup: remove obsolete remainings of /prebuild prefix

* Add Project.settings.enablePrebuilds

* PrebuildManager.shouldPrebuild to consider Project.settings.enablePrebuilds

* Don't install webhooks on project creation

* foreseeable change: don't prefetch project details

* fix: unused imports

* redirect to project settings on project created

* don't trigger prebuilds on project created

* fix: get rid of many ListProjects requests on Settings page

* Project Settings: add checkbox for "enable prebuilds"

* handle "enable prebuilds" in server

* updating PAPI

* fixup

* fixup

* make PrebuildManager require a Project to work on

* also SCM webhook handlers
* move project usage registration to PrebuildManager

* address feedback on useListProjectsQuery and  useCurrentProject

* remove empty class name attributes

* make use of <InputField> as wrapper for <SelectWorkspaceClassComponent>

* fixup <SelectWorkspaceClassComponent> width

* update hint on "Enable Prebuilds" action

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

* fix "enablePrebuild" handling

* add [Enable Prebuilds] button to "Project Created" page

* show detailed prebuild setting only if prebuilds are enabled

* drive-by: fix max width on "Remove Project"

* fix: re-add `loading` state to `useCurrentProject` hook

this caused an issue with loading components as `useListProjectsQuery.isLoading` is false initially.

* add "Enable Prebuilds" to project card

* fixup project-context.tsx

state should only be updated if `useListProjectsQuery` is loaded.

* fixup button type

* add hint to create a .gitpod.yml

* Apply suggestions from code review

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

* remove unnecessary !

* extract Project.isPrebuildsEnabled

* fixup: add missing await

* render "Learn more" if not enabled, too.

* fix getCloneUrl for BBS

* fix getCloneUrl for GitLab

---------

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2023-09-15 09:07:54 +02:00
Robo Quat
cff12f6ac7
update index (#18719)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-09-15 08:52:54 +02:00
Robo Quat
843290dbef
update index (#18700)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-09-12 13:26:52 +02:00
Robo Quat
49d1d4fed8
update index (#18656)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-09-10 18:28:07 +02:00
Sven Efftinge
71912f721b
Allow renaming project (#18630)
remove project#slug
2023-09-04 09:42:01 +02:00
Robo Quat
9ad3360abf
update index (#18636)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-09-03 19:02:00 +02:00
Robo Quat
7c3b2873a2
update index (#18585)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-08-24 23:07:50 +02:00
Filip Troníček
694f8eaeaf
[papi] List workspace classes (#18546)
* [papi] List workspace classes

Adds the `ListWorkspaceClasses` method on `WorkspacesService`.

* Add test for class listing

* `Title` -> `DisplayName`

* fix rename in tests

* Update generated
2023-08-24 10:53:50 +02:00
Brad Harris
adf4e66cf6
Add CreateAndStartWorkspace to public-api (#18515)
* setting up CreateAndStartWorkspace handler

* adjust args

* adding createWorkspace scope for desktop app

* add getToken scope to desktop app oauth client

* remove for now

* adding region

* adding getToken while in here
2023-08-23 16:06:49 +02:00
Filip Troníček
112eefcc56
[papi] List editor options (#18530)
* options.init

* Respond with options

* Move to editor service

* Unused imports

* Mount ot the correct service

* Sort by orderkey

* Simplify enum name

* Add tests

* Options -> `result` for consistency

* fix result field
2023-08-18 11:19:44 +02:00
Robo Quat
28d7935862
update index (#18544)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-08-18 08:57:43 +02:00
Filip Troníček
614007dde5
[papi]: Add GetSuggestedRepoURLs (#18514)
* [papi]: Add `GetSuggestedRepos`

* Rename method

* req to be consistent

* Move to SCMService

* Remove usr impl

* Add tests

* Revert billing test change

* Revert user changes

* --
2023-08-15 13:55:41 +02:00
Manuel Alejandro de Brito Fontes
513ca768f6
Update buildkit to v0.12.1 (#18505)
* Update buildkit to v0.12.1

* Update DisplaySolveStatus signature

* Switch to github.com/containerd/typeurl/v2
2023-08-15 09:17:40 +02:00
Robo Quat
6292b66b06
update index (#18434)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-08-05 13:15:31 +08:00
Robo Quat
60cea25d6b
update index (#18422)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-08-03 21:29:29 +08:00
Anton Kosyakov
b3ae12f956
git real time (#18323) 2023-08-03 20:51:28 +08:00
Filip Troníček
c5059f2dc3
Filter by organizationId in ListWorkspaces (#18402)
Remove `IncludeWithoutProject`
2023-08-02 05:20:27 +08:00
Robo Quat
5a7b3467f3
update index (#18396)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-08-01 19:06:26 +08:00
Manuel Alejandro de Brito Fontes
61f89f8436
Update go modules (#18372) 2023-07-28 16:20:30 +08:00
Manuel Alejandro de Brito Fontes
8c6d8e28f3
Update dependencies (#18362)
* Update k8s dependencies to v1.27.3

* Update opencontainers/runtime-spec to v1.1.0

* Update controller runtime to v0.15.0

* Update go modules

* Fix build

* Cleanup

* Fix ws-manager e2e tests
2023-07-27 23:34:29 +08:00
Manuel Alejandro de Brito Fontes
54c2040632
Update go modules to 1.20 (#18360) 2023-07-27 22:24:29 +08:00
Milan Pavlik
ff4876856c
[server, papi] Track login completed metrics by outcome, type (#18254)
Co-authored-by: geropl <gero@gitpod.io>
2023-07-27 20:29:28 +08:00
Robo Quat
72d59cb859
update index (#18352)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-07-27 15:13:28 +08:00
Filip Troníček
d9f8a099ed
Add Repository to WS info in Public API (#18330)
* Add more Git details to Public API

* Only add `Repository`

* Remove remaining branch references

* Update workspace tests

* Remove additional unneeded metadata

* Swap arg order to match proto
2023-07-26 16:20:42 +08:00
Alex Tugarev
5fcd4e418b
Hide Invite Members button from non-owners – WEB-611 (#18320)
* [Orgs] Hide Invite Members button from non-owners

* [server] Invites to Org should be limited to owners.

* [papi] ignore permission denide for GetGenericInvite for non-owners

The `inviteId` is nil/undefined then.
2023-07-25 20:32:41 +08:00
Milan Pavlik
a285a1c732
Remove gitpod-messagebus component WEB-618 (#18269)
* [server] Publish events during workspace starter

* retest

* fix

* fix

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* [server] Publish events during workspace starter

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* fix

* Remove gitpod-messagebus component
2023-07-24 21:49:40 +08:00
Robo Quat
ba59f2e90c
update index (#18324)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-07-21 17:40:37 +08:00
Huiwen
d32e231773
[public-api] align context url with server (#18292)
* [public-api] align context url with server

* 💄

* update test case

* Update test case
2023-07-20 20:53:36 +08:00
Robo Quat
dd5ae6b6b5
update index (#18251)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-07-20 20:52:36 +08:00
Milan Pavlik
9f51b6134b
[public-api] Remove db debug from OIDC tests (#18252)
* [public-api] Remove db debug from OIDC tests

* fix
2023-07-12 16:02:28 +08:00
Robo Quat
d44af7a7e1
update index (#18047)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-07-10 18:50:27 +08:00
Manuel Alejandro de Brito Fontes
216f5a4b5d
Address registry-facade dependency issues (#18145)
* Update IPFS libraries references

* Update go modules
2023-07-07 14:26:24 +08:00
Jean Pierre
d57a39dbad
[public-api] Update getWorkspace api response implementation (#17821)
* Update getWorkspace api response implementation

* Only implement recent_folders

* Add additional tests
2023-07-06 01:24:22 +08:00
Manuel Alejandro de Brito Fontes
57c605ddc4
Cleanup scrubber go module dependency (#18149) 2023-07-04 16:37:21 +08:00
Manuel Alejandro de Brito Fontes
e2c416c442
Fix build error undefined: scrubber.TrustedValue (#18134) 2023-07-03 16:45:20 +08:00
Anton Kosyakov
f580e6bd00
fix SID-285: hook scrubber as logrus formatter (#17781) 2023-06-29 17:16:47 +08:00
Sven Efftinge
caf26b812d
[server] remove getUserProjects (#18093) 2023-06-29 16:30:47 +08:00
Pudong
f74ba1cbc3
Add organization id in claims (#17954)
* add OrganizationId in claims.

* Update components/gitpod-protocol/go/gitpod-service.go

* fix
2023-06-26 16:37:50 +08:00