stable

Clone or download

Read-only

update POST embedded/link/wiki/folder/empty

part of story #12634 Add custom metadata in modal How to test: have a project with custom metadata, create new items via REST route : - if you don't provide metadata key, like it's already the case on master, metadata won't be stored - if you provide key, the metadata of item will be the given one files has a custom behaviour, it will be done in dedicated commit for now there is no check on: - all projects metadata are provided - all required project metadata are provided this will be done in a dedicated commit Change-Id: I79443dbf5e00c4fdf2d8db82298d0e9e79971740

Modified Files

Name
M plugins/docman/include/Docman_MetadataFactory.class.php +33 −21 Go to diff View file
A plugins/docman/include/Metadata/CustomMetadataException.php +115 −0 Go to diff View file
M plugins/docman/include/REST/v1/AfterItemCreationVisitor.php +24 −3 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFoldersResource.php +28 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +36 −12 Go to diff View file
M plugins/docman/include/REST/v1/EmbeddedFiles/DocmanEmbeddedPOSTRepresentation.php +4 −0 Go to diff View file
M plugins/docman/include/REST/v1/Folders/DocmanEmptyPOSTRepresentation.php +4 −0 Go to diff View file
M plugins/docman/include/REST/v1/Folders/DocmanFolderPOSTRepresentation.php +5 −0 Go to diff View file
M plugins/docman/include/REST/v1/Folders/DocmanItemCreatorBuilder.php +15 −2 Go to diff View file
M plugins/docman/include/REST/v1/Links/DocmanLinkPOSTRepresentation.php +4 −0 Go to diff View file
A plugins/docman/include/REST/v1/Metadata/CustomMetadataRepresentationRetriever.php +142 −0 Go to diff View file
A plugins/docman/include/REST/v1/Metadata/POSTCustomMetadataRepresentation.php +41 −0 Go to diff View file
M plugins/docman/include/REST/v1/Wiki/DocmanWikiPOSTRepresentation.php +5 −0 Go to diff View file
A plugins/docman/phpunit/Metadata/CustomMetadataRepresentationRetrieverTest.php +292 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php +88 −212 Go to diff View file
M plugins/docman/site-content/fr_FR/LC_MESSAGES/tuleap-docman.po +22 −0 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +0 −33 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +0 −1 Go to diff View file
M plugins/docman/tests/rest/DocmanWithMetadataActivatedDataBuilder.php +79 −3 Go to diff View file
M plugins/docman/tests/rest/Helper/DocmanDataBuildCommon.php +1 −65 Go to diff View file
R plugins/docman/tests/rest/Docman/DocmanProjectMetadataTest.php Go to diff View file
R plugins/docman/tests/rest/HardCodedMetadata/HardcodedMetadataTest.php Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewFolderModal.vue +4 −9 Go to diff View file
M plugins/document/scripts/document/components/Folder/ModalNewItem/NewItemModal.vue +2 −1 Go to diff View file