stable
Clone or download
Read-only
This is a part of story #13463 Split PATCH docman_items_type/id route You can test this patch via the Api explorer. => If you try to update the obsoloscence date or the status and if their metadata are not used, you will have an error => If you provide a bad owner_id => 400 => Else, the file is updated Please also check in document history that update event are loggued (owner and status chnage) Change-Id: I7f8f12c4ba091f550097b7d5269673767fa0bdbd
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/docman/include/Actions/OwnerRetriever.php | +87 | −0 | Go to diff View file |
M | plugins/docman/include/Docman_Actions.class.php | +19 | −15 | Go to diff View file |
M | plugins/docman/include/Docman_ItemFactory.class.php | +1 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanFilesResource.php | +118 | −7 | Go to diff View file |
M | plugins/docman/include/REST/v1/Metadata/ItemStatusMapper.php | +16 | −0 | Go to diff View file |
A | plugins/docman/include/REST/v1/Metadata/MetadataEventProcessor.php | +62 | −0 | Go to diff View file |
A | plugins/docman/include/REST/v1/Metadata/MetadataUpdator.php | +128 | −0 | Go to diff View file |
A | plugins/docman/include/REST/v1/Metadata/PUTMetadataRepresentation.php | +54 | −0 | Go to diff View file |
A | plugins/docman/phpunit/Actions/OwnerRetrieverTest.php | +138 | −0 | Go to diff View file |
A | plugins/docman/phpunit/Metadata/MetadataUpdatorTest.php | +196 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php | +138 | −1 | Go to diff View file |
M | plugins/docman/tests/rest/DocmanWithMetadataActivatedDataBuilder.php | +29 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/docmanWithActivatedMetadata/DocmanHardcodedMetadataTest.php | +205 | −2 | Go to diff View file |
M | plugins/docman/tests/rest/helper/DocmanFileDataBuild.php | +61 | −4 | Go to diff View file |
M | src/common/User/UserManager.class.php | +1 | −1 | Go to diff View file |