stable

Clone or download

Read-only

PATCH /docman_wikis/:id

part of story #12453 Update document modal for existing items How to test: - You should be able to update the page name of a wiki document with the route - you should be able to keep/release lock for wiki documents If wiki document has an existing approval table an error is thrown Change-Id: I6b5bbfafdac03f4dad83ec07734d15e0745a278b

Modified Files

Name
M plugins/docman/include/REST/ResourcesInjector.php +8 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +4 −5 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +4 −2 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFoldersResource.php +2 −2 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +1 −1 Go to diff View file
A plugins/docman/include/REST/v1/DocmanItemFileUpdator.php +110 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemUpdator.php +68 −61 Go to diff View file
A plugins/docman/include/REST/v1/DocmanItemUpdatorBuilder.php +48 −0 Go to diff View file
A plugins/docman/include/REST/v1/DocmanWikiResource.php +159 −0 Go to diff View file
M plugins/docman/include/REST/v1/EmbeddedFiles/DocmanEmbeddedFileUpdator.php +16 −50 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentation.php +1 −0 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationBuilder.php +1 −0 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationVisitor.php +1 −0 Go to diff View file
M plugins/docman/include/REST/v1/PostUpdateEventAdder.php +8 −11 Go to diff View file
A plugins/docman/include/REST/v1/Wiki/DocmanWikiPATCHRepresentation.php +36 −0 Go to diff View file
R plugins/docman/include/REST/v1/Folders/DocmanWikiPOSTRepresentation.php Go to diff View file
A plugins/docman/include/REST/v1/Wiki/DocmanWikiUpdator.php +128 −0 Go to diff View file
R plugins/docman/include/REST/v1/Folders/WikiPropertiesPOSTRepresentation.php Go to diff View file
R plugins/docman/include/REST/v1/WikiPropertiesRepresentation.php Go to diff View file
A plugins/docman/include/REST/v1/Wiki/WikiVersionCreationBeforeUpdateValidator.php +70 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +4 −4 Go to diff View file
R plugins/docman/phpunit/REST/v1/DocmanItemUpdatorTest.php Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +4 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +1 −1 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFoldersTest.php +2 −0 Go to diff View file
A plugins/docman/tests/rest/Docman/DocmanItemsTestWikiTest.php +291 −0 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +74 −7 Go to diff View file