Fix path generation for sub-groups in single-file file-by-file
What does this MR do and why?
When a file is in a sub-group, project.namespace.path
returns an invalid path for the file.
This fix updates to use project.namespace.to_param
, which returns the correct path.
Screenshots or screen recordings
n/a
How to set up and validate locally
- Enable
Feature.enable(:single_file_file_by_file)
- Create a group
- Create a sub-group in that group
- Create a project in the sub-group
- Create an MR with at least 1 file of changes
- Change the view mode to
"View changes one file at a time"
and refresh the page
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #407332 (closed)
Edited by Thomas Randolph