stable

Clone or download

Read-only

feat: Display progress error in Roadmap

If there is an issue in the computation of the progress of a task (misconfiguration of the semantic, or invalid values for the artifact, …) then an error sign is displayed instead of the progress bar. The reason of the error is displayed in the popover. Tests scenarios: * tracker_semantic_progress.(total|remaining)_effort_field_id = null * tracker_semantic_progress.(total|remaining)_effort_field_id is a field not in tracker * tracker_semantic_progress.(total|remaining)_effort_field_id is a string field * tracker_semantic_progress.(total|remaining)_effort_field_id is not readable by current user (no error but no progress) * total is null * total is 0 * total is < 0 * remaining is null * remaining is < 0 * remaining is > total Part of story #20919: define progress of artifacts Change-Id: I1c264f734e5c7f5dec12fc0356df65b8ebf67903

Modified Files

Name
M plugins/roadmap/include/Roadmap/REST/v1/RoadmapTasksRetriever.php +3 −2 Go to diff View file
M plugins/roadmap/include/Roadmap/REST/v1/TaskRepresentation.php +7 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/BarPopover.test.ts +29 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/BarPopover.vue +16 −2 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/DependencyArrow.test.ts +37 −6 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/DependencyArrow.vue +7 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/GanttTask.test.ts +48 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/GanttTask.vue +32 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/MilestoneBar.test.ts +25 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/MilestoneBar.vue +12 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/TaskBar.test.ts +104 −47 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/TaskBar.vue +56 −28 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/TaskHeader.test.ts +1 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/helpers/styles.ts +2 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/type.ts +1 −0 Go to diff View file
M plugins/roadmap/tests/unit/Roadmap/REST/v1/RoadmapTasksRetrieverTest.php +2 −0 Go to diff View file
M plugins/roadmap/themes/_popover.scss +4 −0 Go to diff View file
M plugins/roadmap/themes/_task.scss +16 −4 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Progress/IComputeProgression.php +3 −1 Go to diff View file
A plugins/tracker/include/Tracker/Semantic/Progress/InvalidMethod.php +75 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Progress/MethodBasedOnEffort.php +29 −13 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Progress/MethodNotConfigured.php +7 −2 Go to diff View file
A plugins/tracker/include/Tracker/Semantic/Progress/ProgressionResult.php +54 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Progress/SemanticProgressBuilder.php +27 −13 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +33 −1 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Semantic/Progress/InvalidMethodTest.php +44 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Progress/MethodBasedOnEffortTest.php +42 −36 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Semantic/Progress/MethodNotConfiguredTest.php +44 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Progress/SemanticProgressBuilderTest.php +6 −6 Go to diff View file