7592 Commits

Author SHA1 Message Date
Jean Pierre
4aef5ceb84
[public-api] Some renaming (#19095)
* 💄

* 💄

* 💄
2023-11-22 00:07:59 +02:00
Filip Troníček
6f7ff4f7f4
updateConfiguration (#19080)
* `updateConfiguration`

* typdate

* Try with no deeply nested property

* JKADFkosaNcISADFuisabnfhjl hjkafb ashjdbjbhj

* Constrain even further

* Return the configuration

* Fix update mutation

* Only update necessary properties

* Implement name changes

* typastuff

* 🙄

* Mutation update

* 🤷‍♂️

* Type fixes

* Conditionally pass in name

* Partials

* Fix type mishap

* Update mutation name

* Tweak types

* Reduce abstractions

* Only supply name if applicable

* Better partial assignment

* Deepmerge with originals

* Only update fully when necessary

* Fix name conversion in papi converter

Co-authored-by: Gero Posmyk-Leinemann <32448529+geropl@users.noreply.github.com>

* Assert some converted properties to not exist

* Disallow empty configuration names

* Add cache update todo

* fix type vs class

* Error toasts

* Be less strict about value of name

* Toast the actual updated name

* Fix tests :-)

---------

Co-authored-by: Gero Posmyk-Leinemann <32448529+geropl@users.noreply.github.com>
2023-11-21 22:42:00 +02:00
Christian Weichel
3b831546ea
Restructure config and contexts (#19086)
* Restructure config and contexts

* Org ID and Host in `config get`

* Bump version

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2023-11-21 18:51:59 +02:00
Anton Kosyakov
6933bab2b6
[public-api] migrate PrebuildService (#19062) 2023-11-21 17:14:58 +02:00
Alex Tugarev
3b85bf13e1
[server] remove unused getFeaturedRepositories (#19100) 2023-11-21 16:42:59 +02:00
Gero Posmyk-Leinemann
9be1fec2c0
[ts] Add metric gitpod_logs_total(level) for TS components (#19093) 2023-11-21 16:39:59 +02:00
Anton Kosyakov
0a5d89cecc
[public-api] define error details (#19102)
+ ensure consistent formatting
2023-11-21 16:00:58 +02:00
Alex Tugarev
41a89f34f9
[papi] Add proto for SCMService (#19075)
* [papi] Add proto for SCMService

* fixup: add missing pagination to list method
2023-11-21 13:40:58 +02:00
Milan Pavlik
f0c8a858c9
[baseserver] Emit metrics for logs produced by level ENG-349 (#19063)
* [baseserver] Emit metrics for logs produced by level

* fix

* fix

* fix

* fix

* Fix

* Fix

* fix

* retest

* fix
2023-11-21 12:26:58 +02:00
Alex Tugarev
64852fa71d
[server] fix listAuthProviderDescriptions if unauthenticated (#19094) 2023-11-21 10:24:59 +02:00
Brad Harris
b9189bf971
Imported repos list empty state updates (#19096)
* Adding an empty state and loading

* updating no results ux

* Update components/dashboard/src/repositories/list/RepoListEmptyState.tsx

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

* updating header colors for better contrast in dark mode

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2023-11-20 23:55:58 +02:00
Jean Pierre
4ac04ee19e
[public-api] Migrate envvarService (#19067)
* Migrate envvarService

* update

* fix tests

* nit

* Fix

* Fix

* 💄

---------

Co-authored-by: Huiwen <mhqnwt@gmail.com>
2023-11-20 17:27:57 +02:00
Brad Harris
a409eb0792
Adding pagination tokens for config service (#19078)
* wip for getting pagination tokens setup

* swapping pagination for token based load more UI

* disable refetch on window focus

* partially working infiniteQuery

* updating proto files for pagination

* updatnig pagination to handle load more approach

* adding bottom margin

* adding tests

* encode search term query param

* validate params

* change button variant

* making sure we don't drop some props

* Update components/dashboard/src/data/configurations/configuration-queries.ts

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

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2023-11-20 17:09:58 +02:00
Anton Kosyakov
5eb0a0cfee
[server/dashboard] use ApplicationError (#19092) 2023-11-20 15:10:58 +02:00
Jean Pierre
9748ce3c1e
[public-api] Add ssh key proto (#19090)
* add ssh key proto

* Update
2023-11-20 15:09:58 +02:00
Gero Posmyk-Leinemann
33f9c0b6a7
[proxy] Expose v1 api on api. subdomain (#19089)
* [proxy] Expose v1 api on api. subdomain

* [gpctl] Move to use gRPC on api.gitpod.io directly

* [proxy] Remove "test compression" comment as that has been tested and works
2023-11-20 14:59:58 +02:00
Robo Quat
b754a0f891
update index (#19079)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-11-20 11:25:57 +02:00
Gero Posmyk-Leinemann
c279fc46bc
[gRPC] Enable PATs to be used for authorizing with the gRPC API (#19081)
* [server] Make gRPC accept PAT tokens (incl. tests)

* [gpctl] Switch "gpctl api ws ls/get" to use v1/v1connect
2023-11-20 09:04:57 +02:00
Filip Troníček
c00f28a9d4
Gitpod CLI: Improve Segment logging (#19064)
* Gitpod CLI: Improve Segment logging

* Set empty logger correctly

* Proxy all files in the `static/bin/` folder

* copy all files

* Revert gzip change and fix proxy dep

* Update folder for artefacts
2023-11-17 12:38:55 +02:00
Alex Tugarev
4b78a99f20
Remove obsolete New Project page (#19077)
* [dashboard] Remove New Project page

* remove unused query

* [server] make unused getProviderRepositoriesForUser a no-op

* [server] remove unused scm provider code
2023-11-17 12:12:54 +02:00
Jean Pierre
f7e11f50ef
Add envvar proto file (#19085) 2023-11-17 10:52:55 +02:00
Huiwen
4324fcb0a0
[papi] migrate ListWorkspaces and WatchWorkspaceStatus (#19022)
* [papi] migrate ListWorkspaces and WatchWorkspaceStatus

* bump up cache version
2023-11-16 20:44:54 +02:00
Alex Tugarev
21bb3c1d55
Use AuthProviderService API in Dashboard – EXP-847 (#19057)
* convert Login.ts

* extract auth provider utils into protocol

* complete migration from useAuthProviders to  useAuthProviderDescriptions

* fixup import of scopes util

* revert rename

* migrate useDeleteOrgAuthProviderMutation

* migrate Org Git Integrations

* fix label for authprovider types

* wip migration user-level git integrations

* WIP updateProviderEntry

* wip migration

* fixup: label of auth provider types

* fixup: dont render Unknown type

* fix label

* fix this undefined

* bump CACHE_VERSION

* fixup allow to change the `clientId` only

* fixup add AuthProviderClasses to supported messages

---------

Co-authored-by: Huiwen <mhqnwt@gmail.com>
2023-11-16 17:53:54 +02:00
Pudong
bde844b24a
[common-go] fix incorrect log level (#19083) 2023-11-16 16:20:54 +02:00
Anton Kosyakov
a290b8b7d3
[public-api] define PrebuildService (#19082) 2023-11-16 15:10:54 +02:00
Gero Posmyk-Leinemann
453392bd14
[server] Introduce RequestContext (#19023)
* [server] Introduce RequestContext

* [server] Improve (repeated) Docker build times

* fix AuthProviderService.createAuthProvider
2023-11-16 14:54:54 +02:00
Alex Tugarev
feb9fa2597
🌇 GitHub App in Dashboard (#19070)
* [dashboard] compute `useIsGithubAppEnabled` on FE

* [dashboard] update Install GitHub App

* [server] make GH App methods no-op (compat)
2023-11-16 13:18:54 +02:00
Alex Tugarev
0907ff51e1
[server] remove obsolete and unused getSuggestedContextURLs (#19074)
* [server] remove obsolete and unused `getSuggestedContextURLs`

* fixup papi
2023-11-16 13:17:54 +02:00
Manuel Alejandro de Brito Fontes
aa23d4106b
Update runc to v1.1.10 (#19066)
* Update runc to v1.1.10

* Update go modules
2023-11-15 22:59:53 +02:00
Filip Troníček
205d36d02b
Configuration Details: Workspace Defaults (#19072)
* Configuration Details: Workspace Defaults

🤷‍♂️

sort imports

* Foof

* Add descriptions

* Change layout

* Fix heading child

* Change heading container

* Fix styling

* A proper config field

* Delete hover states

* Implement the update logic

* Fix size updates

* Simplify mutation

* Remove cancel button and add a save one for ws options

* Margins

* Update title

* Prettier Paddings

* Remove one-childed fragment

* Fix heading shenanigans

* LoadingState component

* Wrap with label

* Spacing

* 🙄
2023-11-15 20:11:53 +02:00
Brad Harris
32aa1bbe79
adding import repo modal (#19073)
* adding import repo modal

* fix copy

* remove name requirement as it's defaulted

* upadte query cache after create
2023-11-15 16:35:53 +02:00
Filip Troníček
47fccf3b8f
Remove scroll gutter styles (#19032) 2023-11-15 12:52:53 +02:00
Brad Harris
eaae6cc6f4
Repository Config list page (#19039)
* fixing pagination logic

* wip

* flushing out rows

* adding missing creationTime

* adjusting result count copy

* fix offset... again

* Flushing out table UI a bit more

* Flushing out table UI a bit more

* comment for remembering to use search params

* more comments

* fix pages count

* copy/responsive adjustments

* updating search project query & service

* pass org id along and check permission in service

* Extracting table components

* cleanup

* fix menu copy
2023-11-14 18:49:52 +02:00
Huiwen
a5021da396
[installer] make sure dashboard is deployed after server and papi-server (#19042)
* [installer] make sure dashboard is deployed after server and papi-server

* fix build

* Add unit tests

* address feedback

* wait feature flag until get actual value of timed out

* default config cat client nil

* log avg fetch time

* 1

* mock feature flag hang

* Add metric

* fixup
2023-11-14 15:20:52 +02:00
Filip Troníček
bc8bd5333e
Configuration Detail setup (#19021)
* Configuration Detail setup

* nav

* Breadcrumb above nav

* type updates

* Useconfig

* Fix undefined vs null

* Fix children rendering

* Update colors

* Cancel buttons

* Delete configs

* Refactor configuration detail page to use new
RemoveConfiguration component

* Fix styling and layout issues in BreadcrumbNav and
RemoveConfiguration components

* Update BreadcrumbNav and ConfigurationDetailPage
components.

* Fix spacings

* Update BreadcrumbNav styling

* Containerify

* Update configuration name and style, and add dark
mode support.

* Update BreadcrumbNav styling to include dark mode
hover text color

* Fix text color in BreadcrumbNav component

* Add WidePageWithSubMenu component and export
SubmenuItem

* Revert `PageWithSubMenu` changes

* Fix types

* Unify margins for ConfigurationName

* Icons

* Refactor configuration deletion queries

Co-authored-by: Brad Harris <bmharris@gmail.com>

* Less useStates :}

Co-authored-by: Brad Harris <bmharris@gmail.com>

* Call `onRemoved` only at `onSuccess`

* Add MiddleDot component to BreadcrumbNav

Co-authored-by: Brad Harris <bmharris@gmail.com>

* Fix rectangular focus indicators

* Add icons to configurations menu

* navs

* Conditionally render children

* Fix rectangular list items

* `configurations` -> `repositories` underneath 🫣

* Update links in OrganizationSelector and
ConfigurationDetailPage

* Update BreadcrumbNav to use larger font size for
page description

* Componentize config setting fields

* y margin

* Fix contrast for Confirmation modal descriptions

* use dirty state hook and fix cancelling after updating

* Re-structure

* `asChild` for podkit headings

* Fix save button disabled state in
ConfigurationNameForm component

* Add type attribute to button in
ConfigurationNameForm component

* Remove hack, which didn't work 🙃

* Fix error handling in ConfigurationDetailPage
component

* Refactor sub-menu item styles to improve
accessibility.

* Update ConfigurationNameForm component with
useState hook

* Do not memoize 🤖

---------

Co-authored-by: Brad Harris <bmharris@gmail.com>
2023-11-14 14:49:52 +02:00
Alex Tugarev
aa691ddf01
Remove Prebuild Events page and jsonrpc methods (#19069) 2023-11-14 14:13:52 +02:00
Anton Kosyakov
0ec003754e
[public-api] align with API guidelines (#19038) 2023-11-14 13:09:51 +02:00
Christian Weichel
e4bc514a10
[gitpod-cli] Add auto-updating capabilities (#19056)
* Add version command

* Restructure config package

* Bring back config get and config set

* Support login host without protocol scheme

* Add autoupdate functionality

* Generate update manifest during build

* Better update failure behavior

* Add latest to version command

* Add version update command

* Use cannonical semver form
2023-11-13 18:57:51 +02:00
Alex Tugarev
0e00e3daa1
[public-api] Add AuthProviderService service (#19008)
* add Unauthenticated decorator for public-api

* [server] add AuthProviderServiceAPI

* [dashboard] add client facade (JsonRpcAuthProviderClient)

* use uuidValidate

* update UpdateAuthProviderResponse to return provider

* return updated provider in UpdateAuthProviderResponse

* handle pagination for ListAuthProvider(Description)s

* add simple conversion tests for auth providers

* relax param validation on updateAuthProvider

allow to update clientId or clientSecret separately.
2023-11-13 15:38:51 +02:00
Pudong
8dcd0a5fd2
[common-go] reduce configcat info log (#19060) 2023-11-13 15:12:51 +02:00
Robo Quat
5c7015565b
update index (#19034)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-11-11 00:46:48 +02:00
Wouter Verlaek
185c0428c2
[scrubber] Improve KeyValue performance (#19052)
* [scrubber] Improve KeyValue performance

* Update benchmark comment

* update go mod

* Add metaID to hashed fields

---------

Co-authored-by: Pudong Zheng <pudong@gitpod.io>
2023-11-10 16:17:48 +02:00
Manuel Alejandro de Brito Fontes
e4a118c410
We only have CRDs now (#19053) 2023-11-10 13:46:48 +02:00
Filip Troníček
10dc51f344
Fix hanging streams (#19051)
* Fix hanging streams

* Update README
2023-11-10 13:27:48 +02:00
Christian Weichel
bb51f07988
Collect workspace classes from workspace cluster (#19003)
* Extend ws-manager API to support workspace class descriptions

fixes ENG-1065

* Extend  DescribeCluster in ws-manager-mk2

to acurately report the available workspace classes

fixes ENG-1066

* Add workspace classes to cluster in DB

* Intergrate workspace cluster collection in ws-manager-bridge

* Feature flag off discovered workspace class usage

* Fix build

* Add unittest for getSupportedWorkspaceClasses

* Fix workspace class storage

* Adress review feedback
2023-11-10 13:13:48 +02:00
Christian Weichel
f48c85484e
Add test for ObserveWorkspaceUntilStarted (#19050) 2023-11-10 12:17:48 +02:00
Alex Tugarev
f38e12e758
add authprovider.proto to public-api (#19041)
* add authprovider.proto to public-api

* update proto according to guidelines
2023-11-10 11:26:47 +02:00
Huiwen
c4354f0e05
local cli: support additional ssh arguments (#19046)
* local cli: support additional ssh arguments

* address

* 1

* add example
2023-11-10 10:26:48 +02:00
Alex Tugarev
b2d501842f
[server] move FGA calls into AuthProviderService (#19017)
* [server] move FGA calls into AuthProviderService

* split internal upsert method `updateAuthProvider` into create and update
* refactor: move `getAuthProviders` logic from gitpod-server-impl to auth-provider-service
* adding db tests for auth provider server
* use redacted results in service

* Fix typos

* extract helper functions for scopes

* add more tests

* as regular member, should find org-level providers if no built-in providers present
* as regular member, should find only built-in providers if present

---------

Co-authored-by: Huiwen <mhqnwt@gmail.com>
2023-11-10 10:25:47 +02:00
Sven Efftinge
2e3429a4d4
[dashboard] fix EXP-901 (#19043) 2023-11-09 15:10:47 +02:00