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(editor): Escape node names with quotes in autocomplete and drag'n'drop #8663

Merged

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Feb 16, 2024

Summary

Expressions that use nodes with quotes ' in their name did not work correctly., this PR fixes it by escaping them.

image

Related tickets and issues

https://linear.app/n8n/issue/NODE-1134/bug-quotes-in-node-names-breaks-data-mapping-using-dollar

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Feb 16, 2024
Copy link
Member

@alexgrozav alexgrozav left a comment

Choose a reason for hiding this comment

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

Nice work!

Copy link

cypress bot commented Feb 21, 2024

2 flaky tests on run #4161 ↗︎

0 337 12 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Project: n8n Commit: 2167bf5daa
Status: Passed Duration: 03:33 💡
Started: Feb 21, 2024 8:58 AM Ended: Feb 21, 2024 9:02 AM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Test Replay Screenshots Video
Flakiness  19-execution.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Execution > should test manual workflow stop Test Replay Screenshots Video

Review all test suite changes for PR #8663 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@elsmr elsmr merged commit 890c2bd into master Feb 21, 2024
28 checks passed
@elsmr elsmr deleted the node-1134-bug-quotes-in-node-names-breaks-data-mapping-using branch February 21, 2024 09:43
@github-actions github-actions bot mentioned this pull request Feb 21, 2024
@janober
Copy link
Member

janober commented Feb 21, 2024

Got released with n8n@1.30.0

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 Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants