-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
fix(editor): Disable data pinning on multiple output node types #5111
fix(editor): Disable data pinning on multiple output node types #5111
Conversation
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.
In future we should think about turning all these lists at the client into settings at node definition level.
packages/editor-ui/src/constants.ts
Outdated
@@ -141,7 +142,11 @@ export const NON_ACTIVATABLE_TRIGGER_NODE_TYPES = [ | |||
EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE, | |||
]; | |||
|
|||
export const MULTIPLE_OUTPUT_NODE_TYPES = [IF_NODE_TYPE, SWITCH_NODE_TYPE]; | |||
export const MULTIPLE_OUTPUT_NODE_TYPES = [ |
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.
can we instead check if that node has multiple outputs? the outputs are specified as an array in the node properties.. can we check for that instead?
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.
Great idea! Updated.
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 addressing feedback 😊
...MULTIPLE_OUTPUT_NODE_TYPES, | ||
SPLIT_IN_BATCHES_NODE_TYPE, | ||
]; | ||
export const PIN_DATA_NODE_TYPES_DENYLIST = [SPLIT_IN_BATCHES_NODE_TYPE]; |
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.
agree with @ivov that this can be a node property
packages/editor-ui/src/constants.ts
Outdated
@@ -82,6 +82,7 @@ export const BAMBOO_HR_NODE_TYPE = 'n8n-nodes-base.bambooHr'; | |||
export const CALENDLY_TRIGGER_NODE_TYPE = 'n8n-nodes-base.calendlyTrigger'; | |||
export const CODE_NODE_TYPE = 'n8n-nodes-base.code'; | |||
export const CRON_NODE_TYPE = 'n8n-nodes-base.cron'; | |||
export const COMPARE_DATASETS_NODE_TYPE = 'n8n-nodes-base.compareDatasets'; |
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.
this can be deleted since it's not used
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.
Done!
* master: (21 commits) test: Fix default owner test to be able to reach setup page (#5113) refactor: Reduce custom docker image size by about 30% (#5104) fix(editor): Disable data pinning on multiple output node types (#5111) 📚 Update CHANGELOG.md and main package.json to 0.210.2 🔖 Release n8n@0.210.2 ⬆️ Set n8n-core@0.150.1, n8n-editor-ui@0.176.2, n8n-nodes-base@0.208.2 and n8n-workflow@0.132.1 on n8n 🔖 Release n8n-editor-ui@0.176.2 ⬆️ Set n8n-workflow@0.132.1 on n8n-editor-ui 🔖 Release n8n-nodes-base@0.208.2 ⬆️ Set n8n-core@0.150.1 and n8n-workflow@0.132.1 on n8n-nodes-base 🔖 Release n8n-node-dev@0.89.1 ⬆️ Set n8n-core@0.150.1 and n8n-workflow@0.132.1 on n8n-node-dev 🔖 Release n8n-core@0.150.1 ⬆️ Set n8n-workflow@0.132.1 on n8n-core 🔖 Release n8n-workflow@0.132.1 feat: Add source to all View Plans links (no-changelog) (#5097) fix: Do not attempt to save statistics data for unsaved workflows (#5106) fix: Update links for user management and SMTP help (#5109) fix(editor): Omit `pairedItem` from proxy completions (#5098) test: Fix e2e tests for inline expression editor (#5108) ...
Got released with |
Github issue / Community forum post (link here to close automatically):