-
Notifications
You must be signed in to change notification settings - Fork 29.6k
fix(editor): Drop outgoing connections on order changed event for nodes with dynamic outputs #9055
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
Merged
michael-radency
merged 9 commits into
master
from
node-1273-switch-reordering-changes-which-nodes-are-connected-to-which
Apr 9, 2024
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3918919
:zap: fix
michael-radency c5a670e
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1273…
michael-radency 1c0880a
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1273…
michael-radency 2f01e6d
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1273…
michael-radency dcc9642
:zap: review fixes
michael-radency 9b8294b
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1273…
michael-radency 1b5f21a
:zap: e2e test
michael-radency 6eddbb4
Merge branch 'master' of https://github.com/n8n-io/n8n into node-1273…
michael-radency e835c2a
:zap: removed clearNodeOutgoingConnections, updated removeAllNodeCon…
michael-radency File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,235 @@ | ||
{ | ||
"name": "switch reorder", | ||
"nodes": [ | ||
{ | ||
"parameters": {}, | ||
"id": "b3f0815d-b733-413f-ab3f-74e48277bd3a", | ||
"name": "When clicking \"Test workflow\"", | ||
"type": "n8n-nodes-base.manualTrigger", | ||
"typeVersion": 1, | ||
"position": [ | ||
-20, | ||
620 | ||
] | ||
}, | ||
{ | ||
"parameters": {}, | ||
"id": "fbc5b12a-6165-4cab-80a1-9fd6e4fbe39f", | ||
"name": "One", | ||
"type": "n8n-nodes-base.noOp", | ||
"typeVersion": 1, | ||
"position": [ | ||
620, | ||
720 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"duplicateItem": true, | ||
"duplicateCount": 1, | ||
"assignments": { | ||
"assignments": [ | ||
{ | ||
"id": "ec6c1d1d-a17a-4537-8135-d474df7fded1", | ||
"name": "entry", | ||
"value": "first", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"options": {} | ||
}, | ||
"id": "8c5a72a5-17ef-40e0-8477-764f24770174", | ||
"name": "Edit Fields", | ||
"type": "n8n-nodes-base.set", | ||
"typeVersion": 3.3, | ||
"position": [ | ||
160, | ||
740 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"assignments": { | ||
"assignments": [ | ||
{ | ||
"id": "d8ec7c46-d02f-4bf5-931e-5ec2fb8bea22", | ||
"name": "entry", | ||
"value": "zero", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"options": {} | ||
}, | ||
"id": "bc3fb81d-2ddf-4b28-a93d-762a48e8fd6b", | ||
"name": "Edit Fields1", | ||
"type": "n8n-nodes-base.set", | ||
"typeVersion": 3.3, | ||
"position": [ | ||
160, | ||
500 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"rules": { | ||
"values": [ | ||
{ | ||
"conditions": { | ||
"options": { | ||
"caseSensitive": true, | ||
"leftValue": "", | ||
"typeValidation": "strict" | ||
}, | ||
"conditions": [ | ||
{ | ||
"leftValue": "={{ $json.entry }}", | ||
"rightValue": "first", | ||
"operator": { | ||
"type": "string", | ||
"operation": "equals" | ||
} | ||
} | ||
], | ||
"combinator": "and" | ||
}, | ||
"renameOutput": true, | ||
"outputKey": "1" | ||
}, | ||
{ | ||
"conditions": { | ||
"options": { | ||
"caseSensitive": true, | ||
"leftValue": "", | ||
"typeValidation": "strict" | ||
}, | ||
"conditions": [ | ||
{ | ||
"id": "ffa570ef-fc16-49ec-87be-56159f14a44b", | ||
"leftValue": "={{ $json.entry }}", | ||
"rightValue": "=second", | ||
"operator": { | ||
"type": "string", | ||
"operation": "equals" | ||
} | ||
} | ||
], | ||
"combinator": "and" | ||
}, | ||
"renameOutput": true, | ||
"outputKey": "2" | ||
} | ||
] | ||
}, | ||
"options": {} | ||
}, | ||
"id": "296ba553-c6c5-4c84-89fb-9056b24bab30", | ||
"name": "Switch", | ||
"type": "n8n-nodes-base.switch", | ||
"typeVersion": 3, | ||
"position": [ | ||
360, | ||
740 | ||
] | ||
}, | ||
{ | ||
"parameters": {}, | ||
"id": "da787dd6-8e85-4dd5-8326-198705b4ae4b", | ||
"name": "Merge", | ||
"type": "n8n-nodes-base.merge", | ||
"typeVersion": 2.1, | ||
"position": [ | ||
880, | ||
520 | ||
] | ||
} | ||
], | ||
"pinData": { | ||
"Edit Fields": [ | ||
{ | ||
"json": { | ||
"entry": "first" | ||
} | ||
}, | ||
{ | ||
"json": { | ||
"entry": "second" | ||
} | ||
} | ||
] | ||
}, | ||
"connections": { | ||
"When clicking \"Test workflow\"": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Edit Fields", | ||
"type": "main", | ||
"index": 0 | ||
}, | ||
{ | ||
"node": "Edit Fields1", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"Edit Fields": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Switch", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"One": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Merge", | ||
"type": "main", | ||
"index": 1 | ||
} | ||
] | ||
] | ||
}, | ||
"Edit Fields1": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Merge", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"Switch": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "One", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
} | ||
}, | ||
"active": false, | ||
"settings": { | ||
"executionOrder": "v1" | ||
}, | ||
"versionId": "ce5db792-5e38-4d54-895b-88d85f2545d0", | ||
"meta": { | ||
"templateCredsSetupCompleted": true, | ||
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd" | ||
}, | ||
"id": "uMpL0bN7t1NYZDJS", | ||
"tags": [] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.