stable

Clone or download

Read-only

Paginate artifact temporary files

This is part of story #8762: add attachment in modal Introduce limit and offset parameters for the following route: GET /api/artifact_temporary_files This routes was returning a collection but were not paginated ; probably because the size was limited to 5 files. Now that we can have many files the route need to be paginated. Change-Id: Id7b425d0a8c8f2c6d3b39ec9de5dd496e074ccb7

Modified Files

Name
M plugins/tracker/include/REST/v1/ArtifactTemporaryFilesResource.class.php +15 −3 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/Attachment/PaginatedTemporaryFiles.php +46 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Attachment/TemporaryFileDao.php +7 −3 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Attachment/TemporaryFileManager.class.php +6 −3 Go to diff View file
M plugins/tracker/include/autoload.php +3 −2 Go to diff View file
M tests/rest/ArtifactFilesTest.php +6 −0 Go to diff View file