Fix rename functionality using "Edit single file"
What does this MR do and why?
Contributes to #466726 (closed)
Problem
file_path
was missing in the list of allowed params. As a result, the
new name of the file was not applied after edit.
Solution
- Add
file_path
to allowed list of parameters. - Add a test to verify the correct assignment of
file_path
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Open a file from the repository page
- Click on
Edit -> Edit single file
button - Change the filename
- Save the file
- You should be redirected to the new file path (before fix, it returns
did not exist
error)