You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a workflow is removed we would expect a single pruned delta with the ID of the workflow.
pruned(id)
However, we currently get two deltas:
updated(id), pruned(id)
updated(id)
The first delta contains an update for the workflow which is erroneous in this case as nothing should have changed in the workflow data, however this update is probably harmless (as we apply updated before pruned).
The second delta is more of a problem as it contains updates for a workflow which no longer exists.
This is a major problem for cylc/cylc-ui#1108 which avoids issues like cylc/cylc-ui#903 by treating added & updated deltas as the same, inserting any missing nodes in the process.
When a workflow is removed we would expect a single pruned delta with the ID of the workflow.
However, we currently get two deltas:
The first delta contains an update for the workflow which is erroneous in this case as nothing should have changed in the workflow data, however this update is probably harmless (as we apply updated before pruned).
The second delta is more of a problem as it contains updates for a workflow which no longer exists.
This is a major problem for cylc/cylc-ui#1108 which avoids issues like cylc/cylc-ui#903 by treating added & updated deltas as the same, inserting any missing nodes in the process.
Steps to reproduce:
Open GraphiQL to the following subscription:
Install a workflow (I'm using
cp
rather thancylc install
to reduce the number of moving parts and ensure the addition is atomic):You should get an added delta for the workflow.
Remove the workflow (I'm using
rm
rather thancylc clean
to reduce the number of moving parts and ensure the removal is atomic):Evidence:
The text was updated successfully, but these errors were encountered: