7592 Commits

Author SHA1 Message Date
Filip Troníček
e59d1bda25
Allow running prebuilds on a specific branch (#19507)
* Allow running prebuilds on a specific branch

* log arrow and narrow the gap
2024-03-06 17:31:16 +02:00
Huiwen
49b24097d6
Add db migration for org-level default editor (#19509) 2024-03-06 16:54:16 +02:00
Gero Posmyk-Leinemann
22bd295d2d
[server] Remove feature flags and cleanup dead code in TokenService (#19506) 2024-03-06 09:58:15 +02:00
Filip Troníček
08c8a1ced7
Do not flash unknown prebuild status (#19501)
* Do not flash unknown prebuild status

* do not panic over unknown values!

* Loading state for less layout shift

* Do not assume unknown repo name

* Fix loader color
2024-03-05 19:56:15 +02:00
Pudong
6cc2aae832
[service-waiter] add addition image condition in annotation (#19494)
* [service-waiter] add addition image condition in annotation

* use common-go package
remove spec.image check

* change download source for kubectl
2024-03-05 16:08:15 +02:00
Huiwen
d1464868ba
Fix prebuild logs race condition (#19504) 2024-03-05 14:01:15 +02:00
Huiwen
c75b68e6a2
Apply new design to org-level workspace class restriction (#19487)
* [dashboard] apply new design to org-level workspace class restriction

* Add isLoading check
2024-03-04 10:41:13 +02:00
Robo Quat
070ca415d0
Update Platform Version of JetBrains Backend Plugin (EAP) to 241.14024-EAP-CANDIDATE-SNAPSHOT (#19495) 2024-03-04 10:06:13 +02:00
Robo Quat
025961a376
Update Platform Version of JetBrains Gateway Plugin (EAP) to 241.14024-EAP-CANDIDATE-SNAPSHOT (#19496) 2024-03-04 10:05:13 +02:00
Cornelius A. Ludmann
fac15ad1aa
[scrubber] Scrub URL path parts separately (#19497) 2024-03-01 16:16:11 +02:00
Huiwen
0aafc58b6f
Fix new workspace page re-render loop and false negative error message for ws class (#19492)
* Add loading state for allowed workspace class memo

* Fix rerender max
2024-03-01 11:51:11 +02:00
Siddhant Khare
767c80f5de
[dashboard] add workspace class restriction on repo-level (#19410)
Co-authored-by: Huiwen Huang <huiwen@gitpod.io>
Co-authored-by: Filip Troníček <filip@gitpod.io>
Co-authored-by: Huiwen <mhqnwt@gmail.com>
2024-02-29 16:02:10 +02:00
Huiwen
7decb17370
[papi] add proto of restricted editors on org-level and repo-level (#19488)
* [papi] add proto of restricted editors on org-level and repo-level

* address
2024-02-29 15:47:10 +02:00
Huiwen
01d7e420aa
Add db migration for org-level editor restriction (#19489) 2024-02-29 13:56:10 +02:00
Huiwen
394dcae20f
[papi,server] implement restricted_workspace_classes in server (#19481)
* [papi,server] implement `restricted_workspace_classes` in server

* Fix test case input

* nit
2024-02-28 22:37:09 +02:00
Huiwen
718353ef90
[papi] add restricted_workspace_classes in repository settings (#19480)
* [papi] add `restricted_workspace_classes` in repository settings

* Update components/public-api/gitpod/v1/configuration.proto

Co-authored-by: Filip Troníček <filip@gitpod.io>

* generate

* Fix build

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2024-02-28 13:23:09 +02:00
Gero Posmyk-Leinemann
a05f84ef2a
[server] Improve behavior and reporting around "refreshToken" (#19482)
* [server] Check token even in case of timeout

* [server] Metrics: Request counter and histogram for token refreshes

* review comments
2024-02-28 12:01:09 +02:00
Robo Quat
730eed3bc5
update index (#19478)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2024-02-28 12:00:09 +02:00
Huiwen
e80714a733
Fix duration validation (#19476) 2024-02-27 21:10:09 +02:00
Filip Troníček
6638c5d43a
Fix failed prebuild reruns (#19472)
* Fix failed prebuild reruns

* Clean up effect deps

* Dispose of hanging streams

Co-authored-by: mustard <huiwen@gitpod.io>

---------

Co-authored-by: mustard <huiwen@gitpod.io>
2024-02-27 10:33:08 +02:00
Gero Posmyk-Leinemann
af0213b6e6
[server] Sync token refresh (#19470)
* [server] Sync token refresh

* [proxy] api.: Handle /auth/*/callback
2024-02-27 09:20:08 +02:00
Gero Posmyk-Leinemann
bdad590b09
[server] Missing SCM access: Filter out user error on workspace start (#19469)
* [server] Missing SCM access: Filter out user error on workspace start

to prevent false alerts (EXP-1434)

* [proxy] api.: Handle /auth/*/callback
2024-02-27 09:13:08 +02:00
Filip Troníček
aec9746ef8
Add guidance for debugging failed prebuilds (#19460)
* Add guidance for debugging failed prebuilds

* prevent double rendering

* Do not render multiple times

* Use state to determine whether to show the error

* Negation is harder than it looks

* Set to true only once

Should maybe make the hook re-render only after it has been set to `true`, avoiding the rewrite-

* Try an overlay

* Simplify check and messaging

* Use standard tw width

* Link to docs for gp validate

* fix effect deps
2024-02-26 20:14:07 +02:00
Huiwen
f324ac73f5
[dashboard] fix workspace start options ordering (#19468)
* [dashboard] fix ordering of start workspace options

* [podkit] link button should be button

* Revert "[podkit] link button should be button"

This reverts commit 79c6607a52c14b7fa205ac1bf94df09590982058.
2024-02-26 13:10:07 +02:00
zhipengzuo
ab8f41f3a7
showPluginInIDEA (#19392)
Signed-off-by: 勇里 <yongli.zzp@antgroup.com>
2024-02-26 11:57:07 +02:00
Robo Quat
21390aba7d
Update Platform Version of JetBrains Backend Plugin (EAP) to 241.13688-EAP-CANDIDATE-SNAPSHOT (#19461) 2024-02-26 08:30:07 +02:00
Filip Troníček
f5a496d63b
Link prebuild settings instead of general settings (#19464) 2024-02-23 23:38:04 +02:00
Huiwen
b1da197018
[dashboard] reduce API call in prebuild pages (#19463)
* [papi] add repository_name a field of prebuild

* Remove unnecessary fetch of configuration in prebuilds
2024-02-23 17:21:04 +02:00
Huiwen
06514d18d4
[dashboard] add route without FF checking (#19462)
* [dashboard] add route without FF checking

* revert ordering
2024-02-23 17:20:04 +02:00
Filip Troníček
e8f3ba8453
Remove ability to edit repository variables (#19459)
* Remove ability to edit repository variables

* FIx copyright

* Address review feedback
2024-02-23 14:07:04 +02:00
Filip Troníček
5686eb5595
Manually rerun prebuilds (#19449)
* Imported repositories -> Repository settings

* unify org settings title

* Move the repo settings up

* Rerun prebuild WIP

* Fix suggested repo shape

* Only allow to select repos with enabled prebuilds

* Underline prebuilds settings link

* Run prebuild on empty state

* Clean up and use `refetch` instead of invalidating

* Correctly surface errors
2024-02-22 20:20:04 +02:00
Robo Quat
a7add6793e
Update Platform Version of JetBrains Gateway Plugin (EAP) to 241.12662-EAP-CANDIDATE-SNAPSHOT (#19441) 2024-02-22 19:10:04 +02:00
Huiwen
9719e619be
[IdP] add user_id claim and allow to customize OIDC subject via FF (#19455)
* [papi] add user_id field to idp token

* [idp] allow to customize claim keys

* fixup update FF

* Update splitor and add more unit tests
2024-02-22 19:03:03 +02:00
Filip Troníček
9b930dd74a
Make sure logs are aligned to the left (#19457)
* Make sure logs are aligned to the left

* Test the change

* Remove debug test
2024-02-22 13:15:03 +02:00
Milan Pavlik
cf7e24b78b
[auth] Attempt to refresh token 3 times EXP-1413 (#19452)
* [auth] Attempt to refresh token 3 times

* Fix

* Fix

* backoff

* Fix

* Fix
2024-02-22 12:01:03 +02:00
Gero Posmyk-Leinemann
96df901870
[server] Fix handling of multiple session cookies with the same name (#19456)
* [server] Fix handling of multiple session cookies with the same name

* [public-api-server] Fix handling of multiple session cookies with the same name

* Ensure exact same behavior as before in jwtSessionConvertor
2024-02-22 11:48:03 +02:00
Robo Quat
d3359aa8ad
Update Platform Version of JetBrains Backend Plugin (EAP) to 241.12662-EAP-CANDIDATE-SNAPSHOT (#19440) 2024-02-22 09:23:03 +02:00
Huiwen
bcd2e9360b
[server, dashboard] improve single prebuild view (#19445)
* [server] proper handle prebuild log stream response

* Write error message to body

* Check read_prebuild permission on organization level when get workspace

* fixup

* Update regex and add unit tests

* Add persist error toast for prebuild errors

* 💄

* Fix stopped workspace log

* fix rerun

* Ensure fga enabled like papi

* Update components/dashboard/src/prebuilds/detail/PrebuildDetailPage.tsx

Co-authored-by: Filip Troníček <filip@gitpod.io>

* Address feedback

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2024-02-22 08:31:03 +02:00
Gero Posmyk-Leinemann
c13409e094
[dashboard] Be more defensive when constructing "invalida billing address" notifications (#19443) 2024-02-21 15:05:05 +02:00
Alex Tugarev
c67e2665a4
Revert "[frontend] Smooth relogin (#19451)" (#19453)
This reverts commit 8b8c5d75f25400410d06ed5b04baa1280ce5dfb3.
2024-02-21 15:00:02 +02:00
Gero Posmyk-Leinemann
8b8c5d75f2
[frontend] Smooth relogin (#19451) 2024-02-21 13:16:02 +02:00
Gero Posmyk-Leinemann
1a93ac2f5b
[api] Fix /api/logout (#19450) 2024-02-21 10:54:02 +02:00
Gero Posmyk-Leinemann
4e718d9b2a
[proxy, server] api. subdomain for Github login callback (#19448) 2024-02-21 09:56:02 +02:00
Filip Troníček
545b65b00c
Imported repositories -> Repository settings (#19446)
* Imported repositories -> Repository settings

* More copy updates

* unify org settings title

* more copy improvements

* Move the repo settings up

* Fix header capitalization

* Fix period placement

* Update components/dashboard/src/menu/OrganizationSelector.tsx

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

* Other copy fixups

* Remove copy update

Co-authored-by: Sven Efftinge <sven@gitpod.io>

* Update components/dashboard/src/menu/OrganizationSelector.tsx

---------

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
Co-authored-by: Sven Efftinge <sven@gitpod.io>
2024-02-21 00:54:02 +02:00
Filip Troníček
6e8cd3ed89
Configuration coachmark (#19413)
* Add repo migrate coachmark

* Public API: `coachmarksDismissals`

* Early exit for new signups

* Try to inject dismissal to link

* Dismiss on path visit

* Align to the left

* Dismiss on trigger

* Simplify show logic

Co-authored-by: Siddhant Khare <siddhant@gitpod.io>

* Consider `showPrebuildsMenuItem` when hiding projects

* update tests

* Adjust date for testing

* fix projects hide condition

* Fix repo link id ref

* Do not dismiss accidentally

* up-date

* move prebuild detail to correct folder

* Make sure errors are displayed properly for prebuilds list

* don't throw

* Report dismiss

---------

Co-authored-by: Siddhant Khare <siddhant@gitpod.io>
2024-02-19 23:47:01 +02:00
Siddhant Khare
92fbb906e5
fix: stripe service for their address parameters (#19438) 2024-02-16 22:12:58 +02:00
Jean Pierre
90c46e1d5c
Update Platform Version of JetBrains Gateway Plugin (EAP) to 241.11761-EAP-CANDIDATE-SNAPSHOT (#19429)
Co-authored-by: Robo Quat <roboquat@gitpod.io>
2024-02-16 19:45:58 +02:00
Jean Pierre
9afde085d0
Update Platform Version of JetBrains Gateway Plugin (Stable) to 233.14475-EAP-CANDIDATE-SNAPSHOT (#19437)
Co-authored-by: Robo Quat <roboquat@gitpod.io>
2024-02-16 19:44:58 +02:00
Jean Pierre
2c8143c663
Update Platform Version of JetBrains Backend Plugin (EAP) (#19430)
* Update Platform Version of JetBrains Backend Plugin (EAP) to 241.11761-EAP-CANDIDATE-SNAPSHOT

* Fix compilation error

* Fix

* Fix

---------

Co-authored-by: Robo Quat <roboquat@gitpod.io>
2024-02-16 19:43:58 +02:00
Filip Troníček
ac11e5f460
Prebuild fixes v2 (#19424)
* Prebuild and configurations tweaks

* Cosmetic fixes to config input

* Hints for Configuration clone url

* Do not retry prebuild queries

Make them fail fast because otherwise they take a long time

* Fix the remove title again
2024-02-16 12:13:58 +02:00