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

fix(HTML Node): Escape data path value in JSON Property #8441

Conversation

michael-radency
Copy link
Contributor

Summary

HTML node doesn't support drag and drop key format with brackets (for 'JSON property' field)

Related tickets and issues

https://linear.app/n8n/issue/NODE-1008/html-node-doesnt-support-drag-and-drop-key-format-with-brackets-for

@michael-radency michael-radency added n8n team Authored by the n8n team node/issue Issue with a node labels Jan 25, 2024
@@ -326,3 +326,20 @@ export function preparePairedItemDataArray(
if (Array.isArray(pairedItem)) return pairedItem;
return [pairedItem];
}

export const sanitazeDataPathKey = (item: IDataObject, key: string) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: sanitize

Copy link

cypress bot commented Jan 26, 2024

1 flaky test on run #3930 ↗︎

0 338 5 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Project: n8n Commit: 7fb008586d
Status: Passed Duration: 03:22 💡
Started: Jan 26, 2024 11:36 AM Ended: Jan 26, 2024 11:39 AM
Flakiness  cypress/e2e/24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #8441 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@michael-radency michael-radency merged commit fc5c562 into master Jan 26, 2024
28 checks passed
@michael-radency michael-radency deleted the node-1008-html-node-doesnt-support-drag-and-drop-key-format-with branch January 26, 2024 11:51
@github-actions github-actions bot mentioned this pull request Jan 31, 2024
@janober
Copy link
Member

janober commented Feb 2, 2024

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/issue Issue with a node Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants