New projects created from custom project templates default to template sub-group
Summary
When creating a new project from a custom project template, the Project URL path selector defaults to the project template path, not the context of the path where the New Project workflow began. The expected behavior is observed when choosing a Built-in template, but not custom templates.
Steps to reproduce
- Define a custom project template
- for example:
http://gitlab.com/example-org/templates/my-template
- for example:
- Navigate to a path where you want to create a new project from your custom project template
- for example:
http://gitlab.com/example-org/projects/
- for example:
- Click the
New projectbutton - Select the
Create from templateoption - Select the
Grouptab - Click
Use templatenext to your custom template - Note the value of the
Project URLdropdown- using the example URLs above, the new project will default to being created in the
/templatessub-group, rather than in the/projectssub-group.
- using the example URLs above, the new project will default to being created in the
Example Project
NA
What is the current bug behavior?
The value of the Project URL dropdown is the path to your custom templates
What is the expected correct behavior?
The value of the Project URL dropdown should be the path where the New project workflow began. The expected behavior is observed when choosing a Built-in template, but not custom templates.
Relevant logs and/or screenshots
NA
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
Related Tests
- Once bug has been resolved, please remove quarantine tag from
Custom group-level project templates->from default new project pathcontext inee/spec/features/projects/custom_projects_template_spec.rband update expected results as needed to match the agreed upon solution
Edited by Valerie Burton