* [supervisor] Add Gitpod commit annotation
* server and API changes
* [dashboard] add org setting for commit annotation
* Fix things
* Fix label for annotation switch
* Revert accidental rename
* minor docs fixes
* Add a feature flag for the setting: `commit_annotation_setting_enabled`
* Register hook in the cloned repo instead of under /etc/
* don't override existing hooks
* `gp git-commit-message-helper` to use `git interpret-trailers`
* Test it!
* 🧹 indeed
* Update timestamp of DB migration
* UI reorg
* generated stuffs
* Make it woooooooork
* Enterprise workspace list overhaul
Todo:
- [ ] only enable on dedicated installs
- [ ] add org setting for org-wide suggestions
- [ ] possibly adopt `Recommended` badges from figma
- [ ] open configurationId instead of cloneUrl if possible
* Conditionally show top sections
* Refactor PillLabel component usage and improve workspace card layout
* Reduce PR scope
* Behave nicely in dedicated emulated preview envs
* Make Getting started dismissible
* Still show old empty ws page for PAYG
* Use ff to display
* accordions are stylish (and clean u user prefs)
* Approach accordions differently (feat. @geropl)
* Revert things for later
* Get rid of debug logs!
* Use pk colors
* Introduce `max_parallel_running_workspaces` for orgs
* Add migration
* Add UI and org settings server changes
* Rough edges
* Number inputs (:trollface:)
* Move LazyOrganizationService to UBP entitlement service to get rid of circ. dep. errs
* Fix tests
* Update components/gitpod-db/src/typeorm/entity/db-team-settings.ts
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
* Rename `isPaidPlan` to `isPaidOrDedicated` and get rid of `update_max_parallel_running_workspaces`
* Update components/server/src/workspace/workspace-service.ts
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
* Deduplicate instance counting logic
---------
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
* Add WS image metrics to workspace instances
* Update tests
* fix ws-manager-api field description
* [dashboard] Org Insights page
* Pagination, date filters and downloads
* Safety limits for pagination and prettier icons
* UI improvements
* Enhance `from` date to capture whole day
* some more props for the CSVs
* Include git context with workspace responses
* Context url segments in CSV
* ide => editor to align with papi convention
* Remove duplicate fc
* revert route deletion
* Update papi converter tests and revert unecessary changes
* fix error rendering
* partly revert ws api svc changes
* Remove debug lines
* fix proto typo
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
* Remove org member listing from frontend
* Shorter == better 😎
* Move workspace.metadata.context onto a top-level `WorkspaceSession` property
---------
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
* [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>
* Fix prebuild lookup for prebuilds run in reverse-chronological order
* Minor fixes
* 🧹
* Simplify prebuild ordering
* [server] Prefer exact matches plus order incremental matches by commit history
* Do expensive image and prebuild promises in parallel
* [server] Prefer exact matches plus order incremental matches by commit history
* Fix test comment typo
* Do commit index computation once + better logs
---------
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
* [server] Extend and fix context parser tests around prebuild discovery
* [server] Add more "prebuild selection" tests to ContextService
* review comments
* [server] Fix order of commits in MockRepositoryProvider to be aligned with actual implementation
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
* [ws-gc] Additional logging
* typo fix
* test update
* Workspace is active now if it just stopped, started or just got created
* Don't ever GC currently running workspaces
* Fix tests
* Fix tests
* No more async filter predicates
* More prevention logging
* Log all timestamps and don't update `lastActive` when `activeNow === true`
* even cooler timestamps
* Add instance id to log context
* Remove filtering for only non-running workspaces
* Provide a nicer image build failed message
* an error message that actually shows up
* Tweak error message
* Make env retrieval consistent in supervisor config
* Fix broken docs link in dashboard
* add proto
* codegen
* impl
* WIP UI
* make it work
* Make it work
* Empty state
* Update copies (thx Fernando!)
* Fix tip flexbox
* fix newline for role restriction empty state
* When arbitrary repos are restricted, don't suggest them
* Add `GetConfigurationWebhookActivityStatus` to proto
* codegen
* `GetConfigurationWebhookActivityStatus` impl
* give it a UI
* Revert trigger strategy on webhook event
* debug: enable webhooks again
* fix UI
* maybe fix build?
* Automatically convert to activity-based prebuilds
* 🤷♂️
* don't limit to a week when converting to activity-based
* Change copy
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
* Less cyclic deps
* removing warning and add informative trigger strategy field
* fix sizing of prebuild trigger strategy info
* Revert "debug: enable webhooks again"
This reverts commit 1c47067734b9f19bbe7e72522eab387fec6022b5.
---------
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
* Set hashed user ID cookie on JWT refresh for specific Gitpod domains
* refactor: Update setHashedUserIdCookie method in session handler for testing purposes
* attempt 2 to fix test
* refactor: Clear gitpod_hashed_user_id cookie after logout
* refactor: Update setHashedUserIdCookie method in analytics controller
This commit updates the setHashedUserIdCookie method in the analytics controller. The changes include:
- Adding a server-side implementation to determine the appropriate domain for setting the cookie based on the request hostname
* nit fix :)
Co-authored-by: Filip Troníček <filip@gitpod.io>
---------
Co-authored-by: Filip Troníček <filip@gitpod.io>