-
Notifications
You must be signed in to change notification settings - Fork 471
[fix] Detect missing nodes in subgraphs #4547
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
Conversation
|
c144551 to
34b8f42
Compare
a6f3d2d to
4cce37e
Compare
Use collectAllNodes to recursively scan subgraphs for missing custom nodes. Fixes #2032
- Mock collectAllNodes to test subgraph node detection - Update existing tests to use collectAllNodes mock - Add new test cases for subgraph scenarios
c121a53 to
75a7cc9
Compare
christian-byrne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for fixing!
| if (!app.graph) return [] | ||
| const allNodes = collectAllNodes(app.graph) | ||
| if (!allNodes.length) return [] | ||
| const packs = await Promise.all(allNodes.map(workflowNodeToPack)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this one
Co-authored-by: github-actions <[email protected]>
Co-authored-by: github-actions <[email protected]>
Summary
collectAllNodesutility to recursively scan subgraphs for missing custom nodesuseMissingNodesanduseWorkflowPacksto include nodes from all graph levelsTest plan
Fixes #2032
┆Issue is synchronized with this Notion page by Unito