stable
Clone or download
Read-only
User can set the status metadata when using the REST route POST docman_folders/:id/folders
This is a part of story #12638 Add always there metadata date in new/update item modal How to test: - Make sure the status metadata is not used - Go to the API explorer - Try to create a folder without the status field => It should return 201 - Try to create a folder with a status != none => It should have 400 - Enable the status metadata via the old docman - Try to create a folder with a correct status => It should return 201 - Try to create a folder with an incorrect status => It should return 400 => You can check in the old docman if the status is correctly set or not Change-Id: If93a8e9b5e35540d42fa88446307bec3eadcadd5
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/include/REST/v1/DocmanFoldersResource.php | +14 | −8 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemCreator.php | +38 | −3 | Go to diff View file |
M | plugins/docman/include/REST/v1/Folders/DocmanFolderPOSTRepresentation.php | +7 | −0 | Go to diff View file |
M | plugins/docman/include/REST/v1/Folders/DocmanItemCreatorBuilder.php | +7 | −1 | Go to diff View file |
A | plugins/docman/include/REST/v1/Metadata/HardcodedMetadataUsageChecker.php | +63 | −0 | Go to diff View file |
A | plugins/docman/include/REST/v1/Metadata/ItemStatusMapper.php | +58 | −0 | Go to diff View file |
A | plugins/docman/include/REST/v1/Metadata/ItemStatusUsageMismatchException.php | +29 | −0 | Go to diff View file |
A | plugins/docman/include/REST/v1/Metadata/StatusNotFoundException.php | +29 | −0 | Go to diff View file |
A | plugins/docman/phpunit/Metadata/HardcodedMetadataUsageCheckerTest.php | +109 | −0 | Go to diff View file |
M | plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php | +198 | −12 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTest.php | +0 | −1 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTestFoldersTest.php | +23 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/DocmanDataBuilder.php | +5 | −12 | Go to diff View file |
A | plugins/docman/tests/rest/DocmanWithMetadataActivatedBase.php | +38 | −0 | Go to diff View file |
A | plugins/docman/tests/rest/DocmanWithMetadataActivatedDataBuilder.php | +97 | −0 | Go to diff View file |
A | plugins/docman/tests/rest/_fixtures/projectWithActivatedMetadata/project.xml | +23 | −0 | Go to diff View file |
A | plugins/docman/tests/rest/_fixtures/projectWithActivatedMetadata/user_map.csv | +1 | −0 | Go to diff View file |
A | plugins/docman/tests/rest/_fixtures/projectWithActivatedMetadata/users.xml | +17 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/bootstrap.php | +3 | −1 | Go to diff View file |
A | plugins/docman/tests/rest/docmanWithActivatedMetadata/DocmanHardcodedMetadataTest.php | +100 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/helper/DocmanDataBuildCommon.php | +8 | −4 | Go to diff View file |
M | plugins/docman/tests/rest/init_test_data.php | +7 | −0 | Go to diff View file |