stable

Clone or download

Read-only

PATCH /docman_embedded_files/:id

part of story #12453 Update document modal for existing items How to test: Use REST route to update an existing embedded document - You should be able to lock/unlock the document - If document has an existing approval table, you must choose the new table option (create/reset/empty) Change-Id: I476e75b0edcf7e9d2481382ff1da4d1bfa821eb6

Modified Files

Name
M plugins/docman/include/ApprovalTable/ApprovalTableUpdateActionChecker.php +7 −9 Go to diff View file
M plugins/docman/include/ApprovalTable/ApprovalTableUpdater.php +1 −1 Go to diff View file
M plugins/docman/include/ApprovalTable/Exceptions/ItemHasApprovalTableButNoApprovalActionException.php +12 −0 Go to diff View file
M plugins/docman/include/ApprovalTable/Exceptions/ItemHasNoApprovalTableButHasApprovalActionException.php +12 −0 Go to diff View file
A plugins/docman/include/Lock/LockChecker.php +50 −0 Go to diff View file
M plugins/docman/include/REST/ResourcesInjector.php +10 −3 Go to diff View file
A plugins/docman/include/REST/v1/DocmanEmbeddedFileUpdator.php +145 −0 Go to diff View file
A plugins/docman/include/REST/v1/DocmanEmbeddedFilesPATCHRepresentation.php +51 −0 Go to diff View file
A plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +182 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +1 −1 Go to diff View file
A plugins/docman/include/REST/v1/EmbeddedFileVersionCreationBeforeUpdateValidator.php +70 −0 Go to diff View file
R plugins/docman/include/REST/v1/Folders/EmbeddedPropertiesPOSTRepresentation.php Go to diff View file
M plugins/docman/include/REST/v1/Folders/DocmanEmbeddedPOSTRepresentation.php +3 −1 Go to diff View file
A plugins/docman/include/REST/v1/PostUpdateEventAdder.php +76 −0 Go to diff View file
M plugins/docman/phpunit/ApprovalTable/ApprovalTableUpdateActionCheckerTest.php +5 −3 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +1 −1 Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +18 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +1 −1 Go to diff View file
A plugins/docman/tests/rest/Docman/DocmanItemsTestFilesEmbeddedTest.php +466 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFoldersTest.php +1 −1 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +131 −29 Go to diff View file