Skip to content

Commit b25df6d

Browse files
committed
fix: extract MicroflowGroupSource refs in catalog builder
SHOW CALLERS/REFERENCES missed microflows referenced via group targeting on workflow user tasks. Add type assertion for MicroflowGroupSource alongside existing MicroflowBasedUserSource.
1 parent fc543bc commit b25df6d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mdl/catalog/builder_references.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,14 @@ func (b *Builder) extractWorkflowFlowRefs(stmt *sql.Stmt, flow *workflows.Flow,
625625
refCount++
626626
}
627627
}
628+
if us, ok := a.UserSource.(*workflows.MicroflowGroupSource); ok && us.Microflow != "" {
629+
_, err := stmt.Exec("WORKFLOW", sourceID, sourceQN,
630+
"MICROFLOW", "", us.Microflow,
631+
RefKindCall, moduleName, projectID, snapshotID)
632+
if err == nil {
633+
refCount++
634+
}
635+
}
628636
}
629637
for _, outcome := range a.Outcomes {
630638
refCount += b.extractWorkflowFlowRefs(stmt, outcome.Flow, sourceID, sourceQN, moduleName, projectID, snapshotID)

0 commit comments

Comments
 (0)