cylc / cylc-ui

Web app for monitoring and controlling Cylc workflows
https://cylc.github.io
GNU General Public License v3.0
37 stars 27 forks source link

graph: clear the graph when there is nothing to draw #1756

Open oliver-sanders opened 7 months ago

oliver-sanders commented 7 months ago

If there is nothing to draw, the graph view currently preserves the last valid graph. This is a little inconsistent, other views go blank.

I think there have been some issue with differentiating between empty and error states once?

We should allow the graph to go blank and, ideally, leave a placeholder where the graph would be to explain this, however, that is a different issue - cylc/cylc-ui#332.

MetRonnie commented 2 months ago

I think this is a https://github.com/cylc/cylc-ui/labels/bug because of this from cylc/cylc-uiserver#630

An example. Note the workflow is stopped after having completed, but the task still claims to be running.

20240924_122816

oliver-sanders commented 2 months ago

I think this is a bug because of this from https://github.com/cylc/cylc-uiserver/issues/630

I don't think that's right.

Note that other views (e.g. the tree view) will retain the workflows last known state after it has shut down (similar to the graph view) so if the task has been left in the wrong state, that is a different bug. Possible causes: