Skip to content

Fix rename functionality using "Edit single file"

Vasilii Iakliushin requested to merge 466726_fix_name_via_edit_single_file into master

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

  1. Open a file from the repository page
  2. Click on Edit -> Edit single file button
  3. Change the filename
  4. Save the file
  5. You should be redirected to the new file path (before fix, it returns did not exist error)

Merge request reports