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): Code node overwrites code when switching nodes after edits #13078

Conversation

elsmr
Copy link
Member

@elsmr elsmr commented Feb 5, 2025

Summary

To test:

  • Have 2 code nodes next to eachother
  • Open 1 of them
  • Make an edit
  • Switch to the other one using the floating buttons on the side of the NDV
  • Code should not be overwritten

Reported here

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-2358/code-node-overwrites-code-when-switching-nodes-after-edits

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

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

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 61.53846% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ckages/editor-ui/src/components/ParameterInput.vue 0.00% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

@elsmr elsmr requested a review from alexgrozav February 5, 2025 13:33
ShireenMissi
ShireenMissi previously approved these changes Feb 5, 2025
Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

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

Tested Manually and it looks good 🎉

Copy link
Contributor

github-actions bot commented Feb 5, 2025

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link
Contributor

github-actions bot commented Feb 5, 2025

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link

cypress bot commented Feb 5, 2025

n8n    Run #9150

Run Properties:  status check passed Passed #9150  •  git commit c0d2cedd2e: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Project n8n
Branch Review fix-flaky-code-node-e2e
Run status status check passed Passed #9150
Run duration 04m 30s
Commit git commit c0d2cedd2e: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 elsmr 🗃️ e2e/*
Committer Elias Meire
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 5
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 434
View all changes introduced in this branch ↗︎

Copy link
Contributor

github-actions bot commented Feb 5, 2025

✅ All Cypress E2E specs passed

@elsmr elsmr merged commit 00e3ebc into master Feb 5, 2025
37 checks passed
@elsmr elsmr deleted the node-2358-code-node-overwrites-code-when-switching-nodes-after-edits branch February 5, 2025 16:07
@github-actions github-actions bot mentioned this pull request Feb 5, 2025
@github-actions github-actions bot mentioned this pull request Feb 6, 2025
@janober
Copy link
Member

janober commented Feb 6, 2025

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

Successfully merging this pull request may close these issues.

3 participants