stable

Clone or download

Read-only

Update the PATCH docman_files/:id route with the hardcoded metadata

This is a part of the story #13417 Finish PATCH update hardcoded metadata How to test : - Go to the API Explorer - Try to update a wiki with hardcoded metadata => It should return an error if the metadata is not well formatted or unused => Else it should return 200 > You can see the result in the DB or directly via the quick look of the new UI Change-Id: I5a0ecf92df73ec29665b486923bbef149317ae7a

Modified Files

Name
M plugins/docman/db/install.sql +4 −0 Go to diff View file
A plugins/docman/db/mysql/updates/2019/201905211004_add_new_version_upload_hardcoded_metadata_columns.php +70 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesResource.php +40 −9 Go to diff View file
M plugins/docman/include/REST/v1/Files/DocmanFilesPATCHRepresentation.php +23 −0 Go to diff View file
M plugins/docman/include/REST/v1/Files/DocmanItemFileUpdator.php +36 −15 Go to diff View file
M plugins/docman/include/Upload/Version/DocumentOnGoingVersionToUploadDAO.php +9 −1 Go to diff View file
M plugins/docman/include/Upload/Version/VersionToUploadCreator.php +14 −2 Go to diff View file
M plugins/docman/include/Upload/Version/VersionUploadFinisher.php +14 −6 Go to diff View file
M plugins/docman/phpunit/REST/v1/Files/DocmanItemFileUpdatorTest.php +32 −17 Go to diff View file
M plugins/docman/phpunit/Upload/Version/VersionToUploadCreatorTest.php +20 −0 Go to diff View file
M plugins/docman/phpunit/Upload/Version/VersionUploadFinisherTest.php +15 −3 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php +80 −15 Go to diff View file
M plugins/docman/tests/rest/docmanWithActivatedMetadata/DocmanHardcodedMetadataTest.php +295 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +2 −0 Go to diff View file