Skip to content

[fga] extract WorkspaceService.start #18467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 15, 2023
Merged

[fga] extract WorkspaceService.start #18467

merged 5 commits into from
Aug 15, 2023

Conversation

akosyakov
Copy link
Member

@akosyakov akosyakov commented Aug 9, 2023

Description

Extracts api.startWorkspace into WorkspaceService.startWorkspace, and adds some basic tests.

🤖 Generated by Copilot at 7a1394b

This pull request refactors the server-side code for starting and stopping workspaces, by using a new WorkspaceService interface that consolidates the logic and checks the permissions, entitlements, limits, and other parameters. It also updates the tests and other components that depend on the old WorkspaceStarter interface, and improves the region guessing logic.

Related Issue(s)

Fixes EXP-321

How to test

  • start a regular workspace ✔️

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@akosyakov akosyakov force-pushed the ak/fga_workspace_start branch from bf39da2 to 7a1394b Compare August 10, 2023 07:23
@akosyakov akosyakov changed the title [fga] export workspace start [fga] extract WorkspaceService.start Aug 10, 2023
@akosyakov akosyakov force-pushed the ak/fga_workspace_start branch 3 times, most recently from b767d6f to 3cac29d Compare August 11, 2023 08:30
@roboquat roboquat added size/XXL and removed size/XL labels Aug 11, 2023
@geropl geropl force-pushed the ak/fga_workspace_start branch 2 times, most recently from 6e2afa6 to d3739c2 Compare August 14, 2023 14:31
@geropl geropl force-pushed the ak/fga_workspace_start branch from 8ffcb7a to 76566dd Compare August 15, 2023 08:47
@geropl geropl marked this pull request as ready for review August 15, 2023 09:42
@geropl geropl requested a review from a team as a code owner August 15, 2023 09:42
@geropl
Copy link
Member

geropl commented Aug 15, 2023

@akosyakov I rebased, changed 2 minor things and tested in the preview env. Is there anything specific you wanted to test?

@akosyakov
Copy link
Member Author

@geropl not really, mostly workspace create/start and admin operations which we changed for blocking

@geropl
Copy link
Member

geropl commented Aug 15, 2023

Will test the blocking, one sec...

@geropl
Copy link
Member

geropl commented Aug 15, 2023

Works. ✔️

@akosyakov
Copy link
Member Author

landing?

Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️

@geropl
Copy link
Member

geropl commented Aug 15, 2023

/unhold

@roboquat roboquat merged commit 93ec6ab into main Aug 15, 2023
@roboquat roboquat deleted the ak/fga_workspace_start branch August 15, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants