stable

Clone or download

Read-only

Filter tasks closed more than one year ago

part of: story #19734 have a Roadmap widget on dashboard How to test: - Go to the tracker bound to your widget - Create a new artifact, call it "Closed one year ago" - Update its submitted_on value the table tracker_artifact using this timestamp: 1586680146 - Note its last_changeset_id - Update its first changeset in the table tracker_changeset and set its submitted_on attribute with this timestamp: 1586683746 - Go to widget --> The artifact is displayed since it is not closed more than one year ago - Close the artifact - Update the new changeset in the tracker_changeset table in DB and set its submitted_on attribute with this timestamp: 1586683926 - Go back to the widget --> The artifact is not shown anymore - Reopen the artifact --> Shown again on the widget - Close it again --> Still shown on the widget since it has not been closed more than one year ago Change-Id: I949ce2e28e28df93530a084fcc257d51ff7e8cad

Modified Files

Name
M plugins/roadmap/include/Roadmap/REST/v1/RoadmapResource.php +11 −0 Go to diff View file
A plugins/roadmap/include/Roadmap/REST/v1/RoadmapTasksOutOfDateFilter.php +117 −0 Go to diff View file
M plugins/roadmap/include/Roadmap/REST/v1/RoadmapTasksRetriever.php +15 −2 Go to diff View file
A plugins/roadmap/tests/unit/Roadmap/REST/v1/RoadmapTasksOutOfDateFilterTest.php +249 −0 Go to diff View file
M plugins/roadmap/tests/unit/Roadmap/REST/v1/RoadmapTasksRetrieverTest.php +30 −3 Go to diff View file
A plugins/tracker/include/Tracker/Semantic/Status/SemanticStatusRetriever.php +31 −0 Go to diff View file