* [docker-up] Minor fixes and add tests
Tool: gitpod/catfood.gitpod.cloud
* [image-builder-bob] Tests&fixes from an experimental PR
Tool: gitpod/catfood.gitpod.cloud
* [supervisor, ws-manager] Write docker credentials into client config file if passed into workspace
Tool: gitpod/catfood.gitpod.cloud
* [server] Introduce project.settings.enableDockerdAuthentication and expose it on the API
Tool: gitpod/catfood.gitpod.cloud
* [dashboard] Add "Docker registry authentication" toggle under projects/env vars
Tool: gitpod/catfood.gitpod.cloud
* [server] Guard project.settings.enableDockerdAuthentication by org write_settings permission
Tool: gitpod/catfood.gitpod.cloud
* review comments with cleanup + small fixes
Tool: gitpod/catfood.gitpod.cloud
* [server config] Introduce isDedicatedInstallation, and use it to replace isSIngleOrgInstallation
incl. further cleanup around getConfiguration and server config
* [server, dashboard] Remove enableDedicatedOnboardingFlow feature flag and replace is with getInstallationConfiguration.IsDedicatedInstallation
* [dashboard, server] Remove "sinlgeOrgMode"
* [server] OrganizationService: block createTeam consistently for org-owned users
* [server, dashboard] Introduce "enable_multi_org" feature flag to allow admin-user to create organizations
* [dashboard] introduce "/?orgSlug=", which allows to pre-select an org in a "create workspace" URL (e.g. "/?orgSlug=org1#github.com/my/repo")
* [db] Auto-delete container "test-mysql" if it's already present
* fix tests
* [dashboard] Check if localStorage is available before using it
* [dashboard] SSOLogin: fix orgSlug source precedence to: path/search/localStorage
* [server] Deny "joinOrganization" for org-owned users
* Gpl/970-multi-org-tests (#20436)
* fix tests for real
* [server] Create OrgService.createOrgOwnedUser, and use that across tests to fix the "can't join org" permission issues
* Update components/server/src/orgs/organization-service.ts
Co-authored-by: Filip Troníček <filip@gitpod.io>
---------
Co-authored-by: Filip Troníček <filip@gitpod.io>
---------
Co-authored-by: Filip Troníček <filip@gitpod.io>
* [context parser] Check current ref for Docker image existence
* Better builder bob errors from supervisor
* Gently soft-fail when the Dockerfile isn't found
* Add warning to ws metadata when starting workspace
* Introduce a magic constant instead of empty strings
* Improve supervisor failed reading bob log error
* Fixup cloning our special SHA
* idk what happened
* let workspaces start even on invalid docker refs
* [json-rpc] Fix encoding of watchImageBuildLogs data to number[]
Because json-rpc can't handle complex objects like UInt8Array properly.
Conversion is done using "Array.from(UInt8Array)" and "new UInt8Array(data)"
* [dashboard] Fix "workspaceId is required" errors
* Review suggestions
Co-authored-by: Filip Troníček <filip@gitpod.io>
---------
Co-authored-by: Filip Troníček <filip@gitpod.io>
* [supervisor] Make sure we read the last chunk of message when task is closed
* [server, dashboard] Prebuild logs: stream as UInt8Array instead of string, and make sure we send the last chunk before closing the response
* Make log buffer more efficient
Merging done with `TypedArray.prototype.set()` as suggested here:
https://stackoverflow.com/a/73074813/10199319
* [dashboard] PrebuildTaskTab: use hash(err.message) as toastId
* [server] prebuild logs: Only call res.end after a timeout, so clients can continue reading from the stream
* [dashboard] prebuild logs emitter: If we receive code "200", forward prefixChunk, and stop streaming
* fixup! [dashboard] PrebuildTaskTab: use hash(err.message) as toastId
---------
Co-authored-by: Filip Troníček <filip@gitpod.io>
* 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>
* [dashboard] remove unused service mock
* [dashboard] use `GetAuthenticatedUser` instead of `getLoggedInUser`
* fixup: override workspaceAutostartOptions
also fix toDurationString call
* fixup: move `isOnboardingUser` to dashboard
* fixup: move getProfile from protocol to common
* fixup fromWorkspaceAutostartOption
* move getPrimaryEmail to common and clean up
* rm getProfile from protocol, use ProfileDetails
* fixup missing leeway dependencies
* fix getPrimaryEmail
* fix resetting workspace timeout
* [gitpod-db] remove dependency to `@gitpod/public-api-common`
* cleanup BUILD.yaml
* [papi] add user.proto and GetAuthenticatedUser
* [papi] (generate.sh) Run end-of-file-fixer
* rename to EditoSettings
* clean up proto
* fix import
* update WorkspaceTimeoutSettings
* fix typo
* update WorkspaceTimeoutSettings
* clarify User.name is full name in doc line
* [server] add ScmService to be used by ScmServiceAPI (and WS API)
* add simple test for `getToken`
* refactor `ScmService.getToken` to return token of undefined
* fix duplicata validation
* add api converter tests
* just some docs
* [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>
* 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
* 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
* 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