stable

Clone or download

Read-only

Closes request #34394 Cannot list trackers > 50 through API

How to test: - query `/projects/{id}/trackers` with `{"is_tracker_admin": true}` --> Only the trackers you can administrate are returned --> `x-pagination-size` shows the number of trackers you can administrate - query `/projects/{id}/trackers` without `{"is_tracker_admin": true}` --> All the project trackers you can see are returned --> `x-pagination-size` shows the number of trackers in the project you can see Change-Id: If795af662564293acee3e9a9e15d2903eca82343

Modified Files

Name
M plugins/agiledashboard/include/Planning/PlanningFactory.class.php +1 −1 Go to diff View file
M plugins/kanban/include/Kanban/KanbanManager.php +1 −1 Go to diff View file
M plugins/roadmap/include/Roadmap/RoadmapProjectWidget.php +2 −2 Go to diff View file
M plugins/tracker/include/REST/v1/ProjectTrackersResource.class.php +17 −7 Go to diff View file
A plugins/tracker/include/REST/v1/ProjectTrackersRetriever.php +58 −0 Go to diff View file
M plugins/tracker/include/REST/v1/TrackerRepresentationBuilder.php +6 −15 Go to diff View file
M plugins/tracker/include/Tracker/Creation/TrackerCreationPresenterBuilder.php +1 −1 Go to diff View file
A plugins/tracker/include/Tracker/RetrieveTrackersByProjectIdUserCanAdministrate.php +32 −0 Go to diff View file
R plugins/tracker/include/Tracker/RetrieveTrackersByGroupIdAndUserCanView.php Go to diff View file
M plugins/tracker/include/Tracker/TrackerFactory.class.php +5 −4 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/Stub/BuildCompleteTrackerRESTRepresentationStub.php +14 −22 Go to diff View file
A plugins/tracker/tests/unit/Stub/RetrieveTrackersByProjectIdUserCanAdministrateStub.php +50 −0 Go to diff View file
R plugins/tracker/tests/unit/Stub/RetrieveTrackersByGroupIdAndUserCanViewStub.php Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/TrackerCreationPresenterBuilderTest.php +1 −1 Go to diff View file
A plugins/tracker/tests/unit/Tracker/REST/v1/ProjectTrackersRetrieverTest.php +86 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/REST/v1/TrackerRepresentationBuilderTest.php +59 −37 Go to diff View file