Skip to content

Allow creating workspaces for private projects

Vishal Tak requested to merge vtak/private-workspaces into master

What does this MR do and why?

Issue: Rails: Enable workspaces for private projects i... (#422521 - closed)

This MR is a followup and building on top of Add support creating and reconciling workspaces... (!129715 - merged)

Allow creating workspaces for private projects

  • Remove restrictions on model
  • Remove restrictions on UI

Screenshots or screen recordings

Screen_Recording_2023-09-04_at_12.02.27_PM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Setup Remote Development
  2. Ensure you have a private repository setup in your GDK instance under the same root group in which your agent is confiured.
  3. Create a new workspace by visiting http://gdk.test:3000/-/remote_development/workspaces/new.
  4. Verify that the dropdown to select the project should now show private projects as well.
  5. Select the private project and create a workspace.
  6. Verify that the workspace has reached Running state. This means that the private repository was cloned as part of workspace startup.
  7. Make changes to some file, commit and push it. The PAT injected should be used transparently.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vishal Tak

Merge request reports