Skip to content

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 to true.
  • 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. If showRestarted is false, then tasks are filtered to exclude those who have been restarted; those that have another task with their ID as a original_task_id. This does not use selectedTaskIds.
  • selectedTasks(processId: UUID, run: number): Task[]. Returns shownTasks(processId, run), but only with the tasks in selectedTaskIds.

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