Skip to content

Resolve "Move files in the Web IDE"

Natalia Tepluhina requested to merge ee-49397-move-files-in-ide into master

EE port for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25431

What does this MR do?

Improve the Rename button behavior to support moving files and folders.

Initial Rename (basename selected) Renamed
Screen_Shot_2019-02-13_at_10.44.55_AM Screen_Shot_2019-02-13_at_10.45.12_AM Screen_Shot_2019-02-13_at_10.46.55_AM
  • The Rename modal should show the full path of the file or directory
  • The last component of the path should be highlighted by default so that the file can be quickly renamed without moving
  • When moving a file
    • if a file already exists at that path, show an error
    • if the target directory doesn't exist, silently create the directory path and move the file
  • When moving a directory
    • if the target directory already exists, show an error
    • if the target directory doesn't exist, silently create the necessary directory and move the file

Does this MR meet the acceptance criteria?

Closes #49397

Merge request reports