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): Handle drag-n-dropping from other nodes in assignment component #8661

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Feb 16, 2024

Summary

Drag-and-drop data mapping using $() inserted the wrong field name.

When drag-n-dropping from a Node earlier in the workflow, the assignment key should be set to name instead of $('NodeName').item.json.name

image

Related tickets and issues

https://linear.app/n8n/issue/NODE-1137/edit-fields-drag-and-drop-data-mapping-using-dollar-inserts-the-wrong

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.

@elsmr elsmr changed the title fix(editor): Handle drag-n-droppinm from other nodes in assignment component fix(editor): Handle drag-n-dropping from other nodes in assignment component Feb 16, 2024
@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
Contributor

@cstuncsik cstuncsik left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

cypress bot commented Feb 20, 2024

2 flaky tests on run #4147 ↗︎

0 337 12 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Project: n8n Commit: 0c804f9f8e
Status: Passed Duration: 03:38 💡
Started: Feb 20, 2024 9:31 AM Ended: Feb 20, 2024 9:35 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  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 #8661 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@elsmr elsmr merged commit c943a51 into master Feb 20, 2024
30 checks passed
@elsmr elsmr deleted the node-1137-edit-fields-drag-and-drop-data-mapping-using-inserts-the branch February 20, 2024 10:21
@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