cylc-ui
cylc-ui copied to clipboard
Tree view: empty historical cycle points shown after expanding N-window
Description & reproducible example
- Run the workflow
P1 = c[-P1] => a => b => c
- When
2/b
is running, pause the workflow, then set the graph window to 3 - Observe cycle 1 re-appears but empty
Automated version of this example:
[scheduler]
allow implicit tasks = True
[scheduling]
cycling mode = integer
runahead limit = P0
[[graph]]
P1 = c[-P1] => a => b => c
[runtime]
[[b]]
script = """
if [[ $CYLC_TASK_CYCLE_POINT == 2 ]]; then
cylc pause $CYLC_WORKFLOW_ID
sleep 3
set +e # (read exits 1 for some reason)
read -r -d '' gqlDoc <<_DOC_
{"request_string": "
mutation {
setGraphWindowExtent (
workflows: [\"${CYLC_WORKFLOW_ID}\"],
nEdgeDistance: 3) {
result
}
}",
"variables": null}
_DOC_
set -e
cylc client "$CYLC_WORKFLOW_ID" graphql < <(echo ${gqlDoc})
fi
"""
More information
The familyTree
for the node passed to the TreeItem
for cycle point 1 is an empty array.
This is a UI data store issue as it goes away on reload. I have inspected the deltas and they seem fine.