stable

Clone or download

Read-only

Compute tasks progression

Part of story #20919: define progress of artifacts How to test: - Defined the semantic progress in your tracker - Give values to the tasks displayed by your widget --> The current progress is shown on each tasks --> No progress will be shown for tasks: ----> Having a total effort === 0 ----> Having a negative total effort ----> Having a negative remaining effort ----> Having a remaining effort bigger than the total effort ----> Having no values for total effort, remaining effort or both fields --> No progress will be shown on tasks belonging to a tracker where the semantic progress is not defined Change-Id: If1adffd59554ff74d05a180dbabaabfbb8c3f6d1

Modified Files

Name
M plugins/roadmap/include/Roadmap/REST/v1/RoadmapResource.php +8 −1 Go to diff View file
M plugins/roadmap/include/Roadmap/REST/v1/RoadmapTasksRetriever.php +11 −2 Go to diff View file
M plugins/roadmap/tests/unit/Roadmap/REST/v1/RoadmapTasksRetrieverTest.php +42 −5 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Progress/IComputeProgression.php +3 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Progress/MethodBasedOnEffort.php +59 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Progress/SemanticProgress.php +10 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Semantic/Progress/MethodBasedOnEffortTest.php +153 −0 Go to diff View file