stable

Clone or download

Read-only

Add route POST docman_embedded/id/version

part of story #13463 Split PATCH docman_items_type/id route How to test: - verify that old PATCH route still works - you can use the new POST docman_embedded/id/version route - vue js app is up to date: when you create a new version of file, it calls the POST route embedded file creation should succeed Change-Id: I787b26163876cd9a9cb759f992cb8fd51f0a2b1e

Modified Files

Name
M plugins/docman/include/ApprovalTable/ApprovalTableUpdateActionChecker.php +0 −1 Go to diff View file
M plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +194 −85 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +96 −128 Go to diff View file
A plugins/docman/include/REST/v1/DocumentBeforeVersionCreationValidatorVisitor.php +189 −0 Go to diff View file
A plugins/docman/include/REST/v1/EmbeddedFiles/DocmanEmbeddedFileVersionPOSTRepresentation.php +51 −0 Go to diff View file
M plugins/docman/include/REST/v1/EmbeddedFiles/DocmanEmbeddedFilesPATCHRepresentation.php +1 −22 Go to diff View file
R plugins/docman/include/REST/v1/EmbeddedFiles/DocmanEmbeddedFileUpdator.php Go to diff View file
M plugins/docman/include/REST/v1/Files/DocmanFileVersionCreator.php +6 −16 Go to diff View file
M plugins/docman/include/REST/v1/Files/DocmanFilesPATCHRepresentation.php +1 −25 Go to diff View file
D plugins/docman/include/REST/v1/Files/DocmanItemFileUpdator.php +0 −119 Go to diff View file
A plugins/docman/phpunit/REST/v1/DocumentBeforeVersionCreationValidatorVisitorTest.php +225 −0 Go to diff View file
R plugins/docman/phpunit/REST/v1/EmbeddedFiles/DocmanEmbeddedFileUpdatorTest.php Go to diff View file
M plugins/docman/phpunit/REST/v1/Files/DocmanFileVersionCreatorTest.php +5 −38 Go to diff View file
D plugins/docman/phpunit/REST/v1/Files/DocmanItemFileUpdatorTest.php +0 −151 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanEmbeddedTest.php +284 −5 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanFilesTest.php +7 −28 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +4 −7 Go to diff View file
M plugins/docman/tests/rest/DocmanMandatoryMetadata/DocmanHardcodedMetadataTest.php +1 −3 Go to diff View file
M plugins/docman/tests/rest/DocmanWithMetadataActivatedDataBuilder.php +1 −1 Go to diff View file
M plugins/docman/tests/rest/Helper/DocmanDataBuildCommon.php +14 −5 Go to diff View file
M plugins/docman/tests/rest/Helper/DocmanEmbeddedDataBuild.php +101 −4 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +3 −5 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.spec.js +3 −3 Go to diff View file
M plugins/document/scripts/document/store/actions.js +2 −2 Go to diff View file
M plugins/document/scripts/document/store/actions.spec.js +7 −7 Go to diff View file