stable

Clone or download

Read-only

Refactoring: move UploadPathAllocator in core

DocumentUploadPathAllocator and VersionUploadPathAllocator was already a duplication (only the base path change), and we are about to have the same need in tracker for attachment upload. Implementation proposed for document is supposed to be the standard one for every service (the exception being the FRS with its fileforge specificity), therefore moving it in core will help DRY. Part of story #12964: drag'n drop images in tracker text areas Change-Id: I728741a7d918941b0a666c13e9d2c29ed5146842

Modified Files

Name
M plugins/docman/include/REST/v1/Files/EmptyFileToUploadFinisher.php +3 −3 Go to diff View file
M plugins/docman/include/REST/v1/Folders/DocmanItemCreatorBuilder.php +3 −2 Go to diff View file
M plugins/docman/include/Upload/Document/DocumentBeingUploadedInformationProvider.php +3 −2 Go to diff View file
M plugins/docman/include/Upload/Document/DocumentUploadCanceler.php +3 −2 Go to diff View file
M plugins/docman/include/Upload/Document/DocumentUploadCleaner.php +1 −1 Go to diff View file
M plugins/docman/include/Upload/Document/DocumentUploadFinisher.php +3 −2 Go to diff View file
R plugins/docman/include/Upload/UploadPathAllocator.php Go to diff View file
M plugins/docman/include/Upload/Version/VersionBeingUploadedInformationProvider.php +3 −2 Go to diff View file
M plugins/docman/include/Upload/Version/VersionUploadCanceler.php +3 −2 Go to diff View file
M plugins/docman/include/Upload/Version/VersionUploadCleaner.php +1 −1 Go to diff View file
M plugins/docman/include/Upload/Version/VersionUploadFinisher.php +3 −2 Go to diff View file
D plugins/docman/include/Upload/Version/VersionUploadPathAllocator.php +0 −62 Go to diff View file
M plugins/docman/include/docmanPlugin.class.php +6 −5 Go to diff View file
M plugins/docman/phpunit/Upload/Document/DocumentBeingUploadedInformationProviderTest.php +5 −4 Go to diff View file
M plugins/docman/phpunit/Upload/Document/DocumentUploadCancelerTest.php +4 −6 Go to diff View file
M plugins/docman/phpunit/Upload/Document/DocumentUploadCleanerTest.php +5 −8 Go to diff View file
M plugins/docman/phpunit/Upload/Document/DocumentUploadFinisherTest.php +3 −4 Go to diff View file
D plugins/docman/phpunit/Upload/Document/DocumentUploadPathAllocatorTest.php +0 −37 Go to diff View file
M plugins/docman/phpunit/Upload/Version/VersionBeingUploadedInformationProviderTest.php +5 −4 Go to diff View file
M plugins/docman/phpunit/Upload/Version/VersionUploadCancelerTest.php +4 −6 Go to diff View file
M plugins/docman/phpunit/Upload/Version/VersionUploadCleanerTest.php +5 −7 Go to diff View file
M plugins/docman/phpunit/Upload/Version/VersionUploadFinisherTest.php +5 −8 Go to diff View file
R plugins/docman/include/Upload/Document/DocumentUploadPathAllocator.php Go to diff View file
R plugins/docman/phpunit/Upload/Version/VersionUploadPathAllocatorTest.php Go to diff View file