Skip to content
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: Add Required path name mapping to multiple nodes #5369

Merged
merged 8 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/nodes-base/nodes/Airtable/Airtable.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export class Airtable implements INodeType {
multipleValues: true,
multipleValueButtonText: 'Add Field',
},
requiresDataPath: 'single',
displayOptions: {
show: {
addAllFields: [false],
Expand Down Expand Up @@ -264,6 +265,7 @@ export class Airtable implements INodeType {
name: 'downloadFieldNames',
type: 'string',
required: true,
requiresDataPath: 'multiple',
displayOptions: {
show: {
operation: ['list'],
Expand Down Expand Up @@ -291,6 +293,7 @@ export class Airtable implements INodeType {
displayName: 'Fields',
name: 'fields',
type: 'string',
requiresDataPath: 'single',
typeOptions: {
multipleValues: true,
multipleValueButtonText: 'Add Field',
Expand Down Expand Up @@ -419,6 +422,7 @@ export class Airtable implements INodeType {
multipleValues: true,
multipleValueButtonText: 'Add Field',
},
requiresDataPath: 'single',
displayOptions: {
show: {
updateAllFields: [false],
Expand Down Expand Up @@ -461,6 +465,7 @@ export class Airtable implements INodeType {
displayName: 'Ignore Fields',
name: 'ignoreFields',
type: 'string',
requiresDataPath: 'multiple',
displayOptions: {
show: {
'/operation': ['update'],
Expand Down
1 change: 1 addition & 0 deletions packages/nodes-base/nodes/Airtable/AirtableTrigger.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export class AirtableTrigger implements INodeType {
displayName: 'Fields',
name: 'fields',
type: 'string',
requiresDataPath: 'multiple',
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-id
description:
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/MySql/MySql.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export class MySql implements INodeType {
operation: ['insert'],
},
},
requiresDataPath: 'multiple',
default: '',
placeholder: 'id,name,description',
description:
Expand Down Expand Up @@ -231,6 +232,7 @@ export class MySql implements INodeType {
displayName: 'Columns',
name: 'columns',
type: 'string',
requiresDataPath: 'multiple',
displayOptions: {
show: {
operation: ['update'],
Expand Down
1 change: 1 addition & 0 deletions packages/nodes-base/nodes/Postgres/Postgres.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export class Postgres implements INodeType {
displayName: 'Return Fields',
name: 'returnFields',
type: 'string',
requiresDataPath: 'multiple',
displayOptions: {
show: {
operation: ['insert', 'update'],
Expand Down
1 change: 1 addition & 0 deletions packages/nodes-base/nodes/RenameKeys/RenameKeys.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export class RenameKeys implements INodeType {
type: 'string',
default: '',
placeholder: 'currentKey',
requiresDataPath: 'single',
description:
'The current name of the key. It is also possible to define deep keys by using dot-notation like for example: "level1.level2.currentKey".',
},
Expand Down
3 changes: 3 additions & 0 deletions packages/nodes-base/nodes/Set/Set.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class Set implements INodeType {
displayName: 'Name',
name: 'name',
type: 'string',
requiresDataPath: 'single',
default: 'propertyName',
description:
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
Expand All @@ -75,6 +76,7 @@ export class Set implements INodeType {
name: 'name',
type: 'string',
default: 'propertyName',
requiresDataPath: 'single',
description:
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
},
Expand All @@ -96,6 +98,7 @@ export class Set implements INodeType {
name: 'name',
type: 'string',
default: 'propertyName',
requiresDataPath: 'single',
description:
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
},
Expand Down