stable

Clone or download

Read-only

Deal with edition locks

part of story #12453 Update document modal for existing items How to test: Lock a file, upload a new version with drag and drop => lock is kept The file modal part will be done in a dedicated patchset Change-Id: Ib2cfe7c43346ce071e14f29d875c463f03372ae0

Modified Files

Name
M plugins/docman/db/install.sql +1 −0 Go to diff View file
A plugins/docman/db/mysql/updates/2019/201903111212_add_lock_information_for_new_file_version.php +44 −0 Go to diff View file
A plugins/docman/include/Lock/LockUpdater.php +54 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanFilesPATCHRepresentation.php +5 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemUpdator.php +2 −1 Go to diff View file
M plugins/docman/include/Upload/Version/DocumentOnGoingVersionToUploadDAO.php +4 −2 Go to diff View file
M plugins/docman/include/Upload/Version/VersionToUploadCreator.php +5 −2 Go to diff View file
M plugins/docman/include/Upload/Version/VersionUploadFinisher.php +12 −3 Go to diff View file
M plugins/docman/include/docmanPlugin.class.php +3 −1 Go to diff View file
A plugins/docman/phpunit/Lock/LockUpdaterTest.php +110 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/DocmanItemUpdatorTest.php +1 −0 Go to diff View file
M plugins/docman/phpunit/Upload/Version/VersionToUploadCreatorTest.php +15 −5 Go to diff View file
M plugins/docman/phpunit/Upload/Version/VersionUploadFinisherTest.php +16 −10 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php +139 −33 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +2 −1 Go to diff View file