Skip to content

Add link "Open in Workspace" on a Merge Request page

MR: Add "Open in Workspace" in MR page (!187320 - merged) • Ashvin Sharma • 18.0

Description

As a developer reviewing a merge request, I want to be able to create a new remote development workspace from the MR view so I can run the modified code without reconfiguring my local environment.

The Merge Request view has a Code button similar to the one found in the Repository view. From the MR view, however, you can not create a new workspace like you can in the Repository view.

MR reviews are one of the main value propositions for remote development, as they reduce the time developers have to spend reconfiguring their local environments when context switching.

image

The repository view (for reference):

image

Related issues

Acceptance Criteria

  • In the Merge Request view, the Code button shows an option to create a new workspace if there is an agent configured for remote development.
  • The ref in the create workspace page should be pre-populated with the branch of the MR.
  • A new workspace is created from the project and the project cloner checks out the current branch associated with the MR.
  • The "Open in Workspace" item in the list should not load with a spinner the way it does in the repository view right now.

Design Requirements

The UI should be identical to existing list in the MR page and it should not list the existing workspaces.

Impact Assessment

Providing more visibility to workspaces for those who have them configured will drive adoption and awareness of the feature. Making it more easily accessible will promote the creation of more workspaces.

Edited by Ashvin Sharma