-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use correct node version when pasting/importing nodes (#8456)
Co-authored-by: Michael Kret <michael.k@radency.com>
- Loading branch information
1 parent
8a595d1
commit 70af67e
Showing
4 changed files
with
135 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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 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
156 changes: 121 additions & 35 deletions
156
cypress/fixtures/Test_workflow-actions_paste-data.json
This file contains 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 |
---|---|---|
@@ -1,42 +1,128 @@ | ||
{ | ||
"meta": { | ||
"instanceId": "1a30c82b98a30444ad25bce513655a5e02be772d361403542c23172be6062f04" | ||
"templateCredsSetupCompleted": true, | ||
"instanceId": "669258f419ee5d9faf0a484944244a47fcc28c541f3c6c874e50a171a0be1e6b" | ||
}, | ||
"nodes": [ | ||
{ | ||
"parameters": { | ||
"rule": { | ||
"interval": [{}] | ||
} | ||
}, | ||
"id": "a898563b-d2a4-4b15-a979-366872e801b0", | ||
"name": "Schedule Trigger", | ||
"type": "n8n-nodes-base.scheduleTrigger", | ||
"typeVersion": 1, | ||
"position": [420, 260] | ||
{ | ||
"parameters": { | ||
"rule": { | ||
"interval": [ | ||
{} | ||
] | ||
} | ||
}, | ||
{ | ||
"parameters": { | ||
"options": {} | ||
}, | ||
"id": "b9a13e3d-bfa5-4873-959f-fd3d67e380d9", | ||
"name": "Set", | ||
"type": "n8n-nodes-base.set", | ||
"typeVersion": 1, | ||
"position": [640, 260] | ||
} | ||
"id": "54b1cdeb-b453-4568-8107-c17fcf2aa25a", | ||
"name": "Schedule Trigger", | ||
"type": "n8n-nodes-base.scheduleTrigger", | ||
"typeVersion": 1, | ||
"position": [ | ||
240, | ||
560 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"options": {} | ||
}, | ||
"id": "5f6dffef-61f7-459d-930c-ef701d08d49a", | ||
"name": "Set", | ||
"type": "n8n-nodes-base.set", | ||
"typeVersion": 1, | ||
"position": [ | ||
460, | ||
460 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"rules": { | ||
"rules": [ | ||
{ | ||
"outputKey": "a" | ||
} | ||
] | ||
} | ||
}, | ||
"id": "c07d3a12-1ee2-4131-bec2-ab366457d042", | ||
"name": "Old version Switch Node", | ||
"type": "n8n-nodes-base.switch", | ||
"typeVersion": 2, | ||
"position": [ | ||
460, | ||
680 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"options": {} | ||
}, | ||
"id": "182a833d-3b93-4e86-a0db-3ceb19d6562b", | ||
"name": "Loop Over Items", | ||
"type": "n8n-nodes-base.splitInBatches", | ||
"typeVersion": 3, | ||
"position": [ | ||
720, | ||
560 | ||
] | ||
}, | ||
{ | ||
"parameters": {}, | ||
"id": "b0d0aeb7-0c8f-4810-8b78-6c0db3c9a486", | ||
"name": "Replace Me", | ||
"type": "n8n-nodes-base.noOp", | ||
"typeVersion": 1, | ||
"position": [ | ||
900, | ||
560 | ||
] | ||
} | ||
], | ||
"connections": { | ||
"Schedule Trigger": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Set", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
} | ||
} | ||
} | ||
"Schedule Trigger": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Set", | ||
"type": "main", | ||
"index": 0 | ||
}, | ||
{ | ||
"node": "Old version Switch Node", | ||
"type": "main", | ||
"index": 0 | ||
}, | ||
{ | ||
"node": "Loop Over Items", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"Loop Over Items": { | ||
"main": [ | ||
null, | ||
[ | ||
{ | ||
"node": "Replace Me", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"Replace Me": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Loop Over Items", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
} | ||
}, | ||
"pinData": {} | ||
} |
This file contains 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