Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions backend/src/baserow/contrib/automation/nodes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ def get_parent_nodes(self):
the current node instance.
"""

previous_positions = self.workflow.get_graph().get_previous_positions(self)
if previous_positions is None:
return []

return [
position[0]
for position in self.workflow.get_graph().get_previous_positions(self)
if position[1] == "child"
position[0] for position in previous_positions if position[1] == "child"
]

def get_next_nodes(
Expand Down
3 changes: 3 additions & 0 deletions backend/src/baserow/contrib/automation/nodes/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ def replace_node(
workflow.simulate_until_node = None
workflow.save(update_fields=["simulate_until_node"])

cache_key = WORKFLOW_DIRTY_CACHE_KEY.format(workflow.id)
global_cache.update(cache_key, lambda _: True)

automation_node_deleted.send(
self,
workflow=workflow,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "bug",
"message": "Fix broken workflow after node replacement",
"issue_origin": "github",
"issue_number": null,
"domain": "automation",
"bullet_points": [],
"created_at": "2026-05-05"
}
4 changes: 0 additions & 4 deletions web-frontend/modules/automation/pages/automationWorkflow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ const { data: pageData, error } = await useAsyncData(
workflowId: workflowId.value,
})
await $store.dispatch('automationHistory/fetchWorkflowHistory', {
workflowId: workflowId.value,
})
await $store.dispatch('automationWorkflowNode/fetch', {
workflow,
})
Expand Down