stable
Clone or download
Read-only
This is part of request #16146 All artifacts linked to a release are not displayed in Project Milestones In this patch, the route rest milestones/$id/backlog is improve with a query selector. The query can only be '{"status":"all"}'. If there is not query, there is the same comportment like before (only open artifact are returned). How to test: - Have a milestone with some artifact in its backlog - Change status of some artifacts to done Expected results: - When you use the route rest with the query -> All artifacts are returned - Without query -> Only open artifacts are returned Change-Id: I0853ab2a0d56249f5554b4f1fb584d2a6c351856
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/agiledashboard/include/AgileDashboard/BacklogItem/PaginatedBacklogItemsRepresentationsBuilder.class.php | +16 | −6 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/BacklogItemDao.class.php | +33 | −0 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/Milestone/Backlog/Backlog.php | +35 | −1 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/Milestone/Backlog/BacklogItemCollectionFactory.class.php | +31 | −9 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/Milestone/Backlog/DescendantItemsFinder.class.php | +44 | −4 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/MonoMilestone/MonoMilestoneBacklogItemDao.php | +27 | −6 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/MonoMilestone/MonoMilestoneItemsFinder.php | +25 | −5 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/REST/MalformedQueryParameterException.php | +5 | −0 | Go to diff View file |
A | plugins/agiledashboard/include/AgileDashboard/REST/QueryToCriterionOnlyAllStatusConverter.php | +55 | −0 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/REST/v1/MilestoneResource.class.php | +20 | −2 | Go to diff View file |
M | plugins/agiledashboard/tests/unit/AgileDashboard/Milestone/Backlog/AgileDashboard_Milestone_Backlog_BacklogItemCollectionFactoryTest.php | +1 | −1 | Go to diff View file |
A | plugins/agiledashboard/tests/unit/REST/QueryToCriterionOnlyAllStatusConverterTest.php | +92 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/dao/Tracker_ArtifactDao.class.php | +54 | −6 | Go to diff View file |
M | tests/rest/_fixtures/01-private-member/project.xml | +14 | −0 | Go to diff View file |
M | tests/rest/tests/MilestonesBacklogTest.php | +28 | −6 | Go to diff View file |