stable

Clone or download

Read-only

Enforce metadata key usage in backend

part of story #12634 Add custom metadata in modal Given: - metadata key is not provided => metadata will be inherited from parent - metadata key is provided, but list does not contains all project metadata => error is thrown This patch does not check if required keys are provided values, in order to limit patch size it will be done in a dedicated commit Change-Id: I2cef6d4fcef6819497fecbbe084422b3c36e2cd3

Modified Files

Name
M plugins/docman/include/Docman_MetadataValueDao.class.php +18 −7 Go to diff View file
M plugins/docman/include/Metadata/CustomMetadataException.php +17 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFoldersResource.php +9 −3 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +45 −15 Go to diff View file
M plugins/docman/include/REST/v1/Folders/DocmanItemCreatorBuilder.php +9 −4 Go to diff View file
M plugins/docman/include/REST/v1/Metadata/CustomMetadataRepresentationRetriever.php +57 −7 Go to diff View file
A plugins/docman/include/REST/v1/Metadata/MetadataToCreate.php +64 −0 Go to diff View file
M plugins/docman/include/REST/v1/Metadata/MetadataUpdatorBuilder.php +4 −1 Go to diff View file
M plugins/docman/phpunit/Metadata/CustomMetadataRepresentationRetrieverTest.php +602 −66 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +61 −23 Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +12 −2 Go to diff View file
M plugins/docman/tests/rest/DocmanWithMetadataActivatedDataBuilder.php +2 −2 Go to diff View file