Toggle to hide restarted tasks in the process status view
https://redmine.teklia.com/issues/10440
The Ponos store should include new attributes in its state and new getters:
-
showRestarted: boolean. Defaults totrue. -
selectedTaskIds: Set<UUID>. Includes the tasks selected automatically or by the user in the process status view. This is currently stored in this component. -
hasRestarts(processId: UUID, run: number): boolean. Whether a run of a specific process includes restarted tasks. -
shownTasks(processId: UUID, run: number): Task[]. Returns all tasks within a run of a process. IfshowRestartedisfalse, then tasks are filtered to exclude those who have been restarted; those that have another task with their ID as aoriginal_task_id. This does not useselectedTaskIds. -
selectedTasks(processId: UUID, run: number): Task[]. ReturnsshownTasks(processId, run), but only with the tasks inselectedTaskIds.
The progress bar shown before runs should be moved to show the progress for the tasks of the current run instead of only the last run of the process. It can now use shownTasks. The task list and graph panels should also both use shownTasks. The task details components can be shown based on selectedTasks.
When hasRestarts is true, a new Show restarted tasks checkbox should be shown either at the top-left corner of the graph or just under the task list panel. The top-left corner of the graph would make the checkbox more accessible on processes with a large amount of tasks. This checkbox directly controls showRestarted.
Edited by Erwan Rouchet