Use shared namespace if present in agent configuration while creating a new workspace
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
This merge request is one of five merge requests in the linked epic. The overall goal is to give the ability to put multiple workspaces in the same namespace (it is currently one workspace per namespace).
The code we've changed here will allow you to define a namespace to put the workspace into. If you don't parse a namespace then it will continue creating workspaces in new namespaces as it has previously done (no changes).
The test code was written entirely by Duo, everything looks good locally and I have already got someone else to review my code in person. The new test code is used for testing a predefined namespace instead of creating a new one
References
- Allow remote development to create workspaces f... (&12327 - closed) - Overall epic
- Rails: Use shared namespace if present in agent... (#519259 - closed) - Specific issue being worked on from this epic
How to set up and validate locally
bundle exec rspec ee/spec/lib/remote_development/workspace_operations/create/creator_spec.rb
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #519259 (closed)