fix(editor): Add notice when user hits the limit for execution metadata item length (#12676)

This commit is contained in:
Eugene
2025-01-27 13:29:14 +03:00
committed by GitHub
parent a24e4420bb
commit 02df25c450
3 changed files with 22 additions and 9 deletions

View File

@@ -83,6 +83,22 @@ export class ExecutionData implements INodeType {
],
},
],
hints: [
{
type: 'warning',
message: 'Some keys are longer than 50 characters. They will be truncated.',
displayCondition: '={{ $parameter.dataToSave.values.some((x) => x.key.length > 50) }}',
whenToDisplay: 'beforeExecution',
location: 'outputPane',
},
{
type: 'warning',
message: 'Some values are longer than 512 characters. They will be truncated.',
displayCondition: '={{ $parameter.dataToSave.values.some((x) => x.value.length > 512) }}',
whenToDisplay: 'beforeExecution',
location: 'outputPane',
},
],
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {