stable
Clone or download
part of: story #12452 Delete folder/items How to test: - In the API explorer --> You cannot delete the root folder --> You get an error if the folder is locked by another user (but not if you are document manager) --> You get an error if you haven't enough permissions to delete it --> You get an error if the folder contains some document you are not allowed to delete (e.g locked or permissison=DOCMAN_READER or less) - In the UI --> You do not have the delete button in the current folder dropdown when the current folder is the root folder --> When you delete a folder, the folder and its children are removed from the table --> When you delete the current folder, you are redirected to the parent folder and a post deletion notification is displayed Change-Id: I7b11647e578e8ee2d122493c99335aff75ee25f3
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/REST/v1/DocmanFoldersResource.php | +58 | −8 | Go to diff View file |
M | plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po | +3 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTestFoldersTest.php | +133 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/DocmanDataBuilder.php | +36 | −0 | Go to diff View file |
M | plugins/document/scripts/document/api/rest-querier.js | +7 | −1 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ActionsDropDown/DropdownMenu.spec.js | +19 | −3 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ActionsDropDown/DropdownMenu.vue | +12 | −8 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ActionsQuickLookButton/QuickLookDeleteButton.vue | +2 | −2 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/FolderHeader.vue | +0 | −2 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ModalDeleteItem/AdditionalCheckboxes/DeleteAssociatedWikiPageCheckbox.vue | +4 | −0 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ModalDeleteItem/ModalConfirmDeletion.vue | +25 | −2 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/ModalDeleteItem/PostItemDeletionNotification.vue | +1 | −1 | Go to diff View file |
M | plugins/document/scripts/document/components/Folder/QuickLook/QuickLookFolder.vue | +9 | −2 | Go to diff View file |
A | plugins/document/scripts/document/helpers/retrieve-subtree-helper.js | +34 | −0 | Go to diff View file |
M | plugins/document/scripts/document/po/fr.po | +11 | −4 | Go to diff View file |
M | plugins/document/scripts/document/store/actions.js | +5 | −1 | Go to diff View file |
M | plugins/document/scripts/document/store/actions.spec.js | +26 | −3 | Go to diff View file |
M | plugins/document/scripts/document/store/mutations-folder-content.js | +15 | −0 | Go to diff View file |
M | plugins/document/scripts/document/store/mutations-folder-content.spec.js | +36 | −0 | Go to diff View file |