stable

Clone or download

Read-only

Remove TimeframeBuilder usage from Roadmap

part of: story #21362 Base artifact timeframe on a linked artifact All the tests have been kept "as is" with the same test cases and assertions. I only have migrated Mockery mocks to PhpUnit mocks. No functional changes expected in Roadmap widget Change-Id: I34d24c84be6119f8b4e3397b109f934cf8976d44

Modified Files

Name
M plugins/roadmap/include/Roadmap/REST/v1/IterationsRetriever.php +12 −10 Go to diff View file
M plugins/roadmap/include/Roadmap/REST/v1/RoadmapResource.php +6 −8 Go to diff View file
M plugins/roadmap/include/Roadmap/REST/v1/RoadmapTasksRetriever.php +11 −10 Go to diff View file
M plugins/roadmap/include/Roadmap/REST/v1/TaskOutOfDateDetector.php +20 −13 Go to diff View file
M plugins/roadmap/include/Roadmap/REST/v1/TaskRepresentationBuilderForTracker.php +14 −7 Go to diff View file
M plugins/roadmap/include/Roadmap/REST/v1/TaskRepresentationBuilderForTrackerCache.php +11 −10 Go to diff View file
M plugins/roadmap/include/Roadmap/REST/v1/TasksResource.php +4 −7 Go to diff View file
M plugins/roadmap/tests/unit/Roadmap/REST/v1/IterationsRetrieverTest.php +1 −2 Go to diff View file
M plugins/roadmap/tests/unit/Roadmap/REST/v1/RoadmapTasksRetrieverTest.php +2 −3 Go to diff View file
M plugins/roadmap/tests/unit/Roadmap/REST/v1/TaskOutOfDateDetectorTest.php +28 −16 Go to diff View file
M plugins/roadmap/tests/unit/Roadmap/REST/v1/TaskRepresentationBuilderForTrackerCacheTest.php +3 −8 Go to diff View file
M plugins/roadmap/tests/unit/Roadmap/REST/v1/TaskRepresentationBuilderForTrackerTest.php +13 −11 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/IComputeTimeframes.php +6 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframe.php +5 −0 Go to diff View file
A plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeArtifactFieldsValueRetriever.php +74 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeBuilder.php +3 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeNotConfigured.php +9 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeWithDuration.php +20 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeWithEndDate.php +24 −5 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/TimeframeNotConfiguredTest.php +16 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/TimeframeWithDurationTest.php +116 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/TimeframeWithEndDateTest.php +119 −2 Go to diff View file
M src/common/date/TimePeriodWithoutWeekEnd.class.php +5 −0 Go to diff View file