-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
feat(Merge Node): Overhaul, v3 #9528
Conversation
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
…merge-node-overhaul-v3
}); | ||
} | ||
|
||
const inputData = inputsData[parseInt(String(useDataOfInput)) - 1]; |
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.
you could get rid of the parsing and just use useDataOfInput as it's already of type Number
packages/nodes-base/nodes/Merge/v3/actions/mode/combineBySql.ts
Outdated
Show resolved
Hide resolved
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.
nice job adding unit tests 🎉
const nodeParameters: IDataObject = { | ||
operation: 'combineBySql', | ||
query: | ||
'SELECT *, input1.data as data_1\nFROM input1\nLEFT JOIN input2\nON input1.id = input2.id\n', |
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.
could you add a test for invalid SQL input
parameters: {}, | ||
}; | ||
|
||
const inputsData = [ |
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.
what happens if the input is invalid? could you add test cases for that?
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
…merge-node-overhaul-v3
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 👍
|
3 flaky tests on run #5740 ↗︎
Details:
5-ndv.cy.ts • 2 flaky tests
10-undo-redo.cy.ts • 1 flaky test
Review all test suite changes for PR #9528 ↗︎ |
✅ All Cypress E2E specs passed |
Got released with |
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com> Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
Summary
Support for multiple inputs(#8975), SQL mode, and some smaller improvements
Related tickets and issues
https://linear.app/n8n/issue/NODE-1348/merge-node-overhaul