Skip to content

Keep empty folders in the tree list

Denys Mishunov requested to merge 60860-keep-empty-folders-in-tree into master

What does this MR do?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60860

Before After
Empty-folders-before Empty-folders-after

In essence, we keep an empty folder in the tree list after removing the last file from it. It is convenient if user needs to re-upload a file to the same folder.

NOTE This MR doesn't keep the empty folder after reload. Since there no blobs in the folders anymore, we do not get information about those from the server. Hence, if we need to make empty folders stay permanent in the list, we should involve backend but I think the current solution is sufficient for now.

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Closes #60860 (closed)

Edited by Denys Mishunov

Merge request reports