stable
Clone or download
Read-only
part of story #12458 DnD on an existing file creates a new version How to test: - If patch on item is valid it returns the version_to_upload representation This part of REST route is steal under feature flag. It does not create file on filesystem for now, this will be done in next commit Change-Id: Ia4825138366c15da708a846c26a5eb773edc0c9f
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/docman/db/install.sql | +13 | −0 | Go to diff View file |
A | plugins/docman/db/mysql/updates/2019/201902151447_add_upload_version_file_table.php | +49 | −0 | Go to diff View file |
M | plugins/docman/db/uninstall.sql | +1 | −0 | Go to diff View file |
M | plugins/docman/include/Docman_Controller.class.php | +1 | −1 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemCreator.php | +7 | −7 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemUpdator.php | +39 | −13 | Go to diff View file |
M | plugins/docman/include/REST/v1/DocmanItemsResource.php | +11 | −10 | Go to diff View file |
M | plugins/docman/include/REST/v1/EmptyFileToUploadFinisher.php | +1 | −1 | Go to diff View file |
R | plugins/docman/include/Upload/DocumentOngoingUploadDAO.php | Go to diff View file | ||
R | plugins/docman/include/Upload/DocumentToUpload.php | Go to diff View file | ||
R | plugins/docman/include/Upload/DocumentToUploadCreator.php | Go to diff View file | ||
M | plugins/docman/include/Upload/DocumentBeingUploadedInformationProvider.php | +1 | −0 | Go to diff View file |
M | plugins/docman/include/Upload/DocumentOngoingUploadRetriever.php | +2 | −0 | Go to diff View file |
M | plugins/docman/include/Upload/DocumentUploadCanceler.php | +1 | −0 | Go to diff View file |
M | plugins/docman/include/Upload/DocumentUploadCleaner.php | +2 | −0 | Go to diff View file |
M | plugins/docman/include/Upload/DocumentUploadFinisher.php | +1 | −0 | Go to diff View file |
R | plugins/docman/include/Upload/DocumentToUploadCreationConflictException.php | Go to diff View file | ||
R | plugins/docman/include/Upload/DocumentToUploadCreationException.php | Go to diff View file | ||
R | plugins/docman/include/Upload/DocumentToUploadCreationFileMismatchException.php | Go to diff View file | ||
R | plugins/docman/include/Upload/DocumentToUploadMaxSizeExceededException.php | Go to diff View file | ||
A | plugins/docman/include/Upload/Version/DocumentOnGoingVersionToUploadDAO.php | +62 | −0 | Go to diff View file |
A | plugins/docman/include/Upload/Version/VersionToUpload.php | +43 | −0 | Go to diff View file |
A | plugins/docman/include/Upload/Version/VersionToUploadCreator.php | +117 | −0 | Go to diff View file |
M | plugins/docman/include/docmanPlugin.class.php | +2 | −2 | Go to diff View file |
M | plugins/docman/phpunit/REST/v1/DocmanItemCreatorTest.php | +2 | −3 | Go to diff View file |
M | plugins/docman/phpunit/REST/v1/DocmanItemUpdatorTest.php | +17 | −7 | Go to diff View file |
R | plugins/docman/phpunit/Upload/DocumentToUploadCreatorTest.php | Go to diff View file | ||
M | plugins/docman/phpunit/Upload/DocumentBeingUploadedInformationProviderTest.php | +1 | −0 | Go to diff View file |
M | plugins/docman/phpunit/Upload/DocumentUploadCancelerTest.php | +1 | −0 | Go to diff View file |
M | plugins/docman/phpunit/Upload/DocumentUploadCleanerTest.php | +1 | −0 | Go to diff View file |
M | plugins/docman/phpunit/Upload/DocumentUploadFinisherTest.php | +1 | −0 | Go to diff View file |
A | plugins/docman/phpunit/Upload/Version/VersionToUploadCreatorTest.php | +199 | −0 | Go to diff View file |
M | plugins/docman/tests/rest/Docman/DocmanItemsTest.php | +10 | −8 | Go to diff View file |