Unable to delete a directory within web IDE

Summary

The GitLab.com user is forced into a loop and unable to delete a directory from within web IDE. I've reproduced in my test account and recorded a short video of the issue here.

Steps to reproduce

  1. Create a new directory or select an existing directory
  2. Select Web IDE
  3. From dropdown next to directory name, select "Delete"
  4. Select "Commit"
  5. Select "Commit to master branch" or "Create new branch" the behavior is the same
  6. Select "Start a new merge request"
  7. Select "Merge"

Outcome

  1. Pop-up states the "Branch has changed. This branch has changed since you started editing. Would you like to create a new branch?"
  2. Select "Create new branch" button
  3. The commit button (bottom left) appears to be working
  4. Pop-up from step 1 above returns and the user is looped into subsequent steps

Example Project

My test account where this has been reproduced: https://gitlab.com/amandarueda/learn-git

Relevant logs and/or screenshots

Short video of the issue here

Support Ticket Reports (internal links)

Proposal

When a directory is deleted the data sent to the API should be filtered to exclude folders and the directories visibility in the file list should be hidden.

Edited by Kai Armstrong