stable

Clone or download

Read-only

Refactoring: extract building of field data

In order to reduce responsibilities of TemporaryFileManager, extract buildFieldDataForREST in a dedicated object and add unit tests for it. This is a necessary step to be able to inject tus-uploaded files in a next commit. Part of story #13453: finish drag'n drop images in tracker text areas Change-Id: I35c555e3c32932dc22bc6da605f2d37a71a159fb

Modified Files

Name
M plugins/tracker/include/REST/v1/ArtifactTemporaryFilesResource.class.php +19 −36 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Attachment/TemporaryFileManager.class.php +1 −85 Go to diff View file
M plugins/tracker/include/Tracker/FileInfoFactory.class.php +2 −2 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/File/FieldDataFromRESTBuilder.php +141 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php +8 −3 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +0 −5 Go to diff View file
A plugins/tracker/phpunit/Tracker/FormElement/Field/File/FieldDataFromRESTBuilderTest.php +386 −0 Go to diff View file
M plugins/tracker/tests/Artifact/Attachment/TemporaryFileManagerTest.php +0 −1 Go to diff View file