Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Sync nodes when patching #6973

Original file line number Diff line number Diff line change
Expand Up @@ -1047,13 +1047,17 @@ async def patch_project_node(
if _node_patch_exclude_unset.get("label"):
await dynamic_scheduler_api.update_projects_networks(app, project_id=project_id)

# 5. Updates project states for user, if inputs have been changed
if "inputs" in _node_patch_exclude_unset:
# 5. Updates project states for user, if inputs/outputs have been changed
if {"inputs", "outputs"} & _node_patch_exclude_unset.keys():
giancarloromeo marked this conversation as resolved.
Show resolved Hide resolved
giancarloromeo marked this conversation as resolved.
Show resolved Hide resolved
updated_project = await add_project_states_for_user(
user_id=user_id, project=updated_project, is_template=False, app=app
)
for node_uuid in updated_project["workbench"]:
await notify_project_node_update(
app, updated_project, node_uuid, errors=None
)
return

# 6. Notify project node update
await notify_project_node_update(app, updated_project, node_id, errors=None)


Expand Down
Loading