* 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
* [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>
* adding ConfigurationServiceAPI
* binding config service api to server
* use getConfiguration in dashboard
* adding missing binding
* use ApplicationError's
* add protobuf classes to query client hydration
* fixing pagination param & query
* changing to import statements for consistency and clarity on what the imports are for
* cleanup
* dropping config settings for create for now
* use protobuf field names in error messages
* removing optional on fields
* fixing converters to account for non-optional (undefined) fields
* update test
* adding more tests for findProjectsBySearchTerm
* fixing test to use offset correctly
* convert pagination args correctly
* [papi] add watch workspace status api
* update import
* 1
* debug commit
* Add workspace_id to proto
* Add unit test for async generator
* Update usage of func
* update test cases
* fix json rpc watch
* 1
* remove test commit and fix missing field
* adding searchRepositories method w/ github impl
* fix a few things and add bbs impl for searchRepos
* integrate searchRepositories in RepositoryFinder
* adjusting loading indicators
* cleanup
* wrap repository search behind feature flag
* Changing queries for github repo search
* fix enabled to use debounced value
* fix org filters
* drop variables for query
* fixing encoding
* 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>
* 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
* [server] Tone down EntitlementService logs: error to warn
* [server] Make sure to fail a WorkspaceInstance on any error
* [WorspaceStarter] Don't fail on temporary gRPC errors
* adding repository name
* updating options a bit
* add repositoryName to the response
* update styling
* updating sorting for getSuggestedRepositories and adding tests
* update sorting logic
* tweaking sorting more
* don't show middot when no name is available
* rename type for consistency
* adding aria label
* prioritize projects above user repos
* handle selected projects better
* fix gray icon color
* 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>
* [server] Reconcile workspace starts using redlock
* [server] Check abortSignal before updating the DB state
* [server] Add feature flag workspace_start_controller
review comments
* Adding getSuggestedRepositories method
* accounting for lastUse better
* limit to org
* remove repoName for now
* add checks
* cleanup
* remove repositoryName for now
* cleanup
* removing repo name for now
* adding tracing