stable

Clone or download

Read-only

Route put /docman_folders/{id}/metadata

part of story #13463 Split PATCH docman_items_type/id route You can update folder metadata and apply it to its children if needed. Please note: - folder does not have obsolescence date - owner_id of a folder can't be changed in legacy UI So in this patch the only metadata I deal with is status Change-Id: I24d42844235fde9cd9a89c17208cf235a8039bba

Modified Files

Name
M plugins/docman/include/Metadata/ItemImpactedByMetadataChangeCollection.php +10 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanEmbeddedFilesResource.php +2 −17 Go to diff View file
M plugins/docman/include/REST/v1/DocmanEmptyDocumentsResource.php +2 −36 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +2 −32 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFoldersResource.php +93 −22 Go to diff View file
M plugins/docman/include/REST/v1/DocmanLinksResource.php +2 −17 Go to diff View file
M plugins/docman/include/REST/v1/DocmanWikiResource.php +2 −18 Go to diff View file
M plugins/docman/include/REST/v1/Metadata/MetadataUpdator.php +85 −17 Go to diff View file
A plugins/docman/include/REST/v1/Metadata/MetadataUpdatorBuilder.php +54 −0 Go to diff View file
A plugins/docman/include/REST/v1/Metadata/PUTMetadataCommonRepresentation.php +36 −0 Go to diff View file
A plugins/docman/include/REST/v1/Metadata/PUTMetadataFolderRepresentation.php +32 −0 Go to diff View file
M plugins/docman/include/REST/v1/Metadata/PUTMetadataRepresentation.php +6 −15 Go to diff View file
A plugins/docman/include/REST/v1/Metadata/PUTRecursiveStatusRepresentation.php +38 −0 Go to diff View file
M plugins/docman/phpunit/Metadata/ItemImpactedByMetadataChangeCollectionTest.php +14 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/Metadata/MetadataUpdatorTest.php +131 −6 Go to diff View file
D plugins/docman/tests/rest/DocmanMandatoryMetadata/DocmanHardcodedMetadataTest.php +0 −1827 Go to diff View file
M plugins/docman/tests/rest/DocmanWithMetadataActivatedDataBuilder.php +45 −33 Go to diff View file
A plugins/docman/tests/rest/HardCodedMetadata/HardcodedMetadataTest.php +756 −0 Go to diff View file
M plugins/docman/tests/rest/Helper/DocmanDataBuildCommon.php +9 −3 Go to diff View file
A plugins/docman/tests/rest/Helper/DocmanHardcodedMetadataExecutionHelper.php +117 −0 Go to diff View file
M plugins/docman/tests/rest/init_test_data.php +3 −1 Go to diff View file