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): Fix an issue with connections breaking during renaming #6358

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

OlegIvaniv
Copy link
Contributor

This pull request addresses an issue related to renaming nodes on the canvas. Previously, if a user initiated the rename process but then cancelled it, promptResponse.value would become undefined, leading to a failure in the renameNode function.

To remedy this, we've implemented a conditional check to ascertain that the user has indeed confirmed the renaming action. We will only proceed with the renaming operation if the user has clicked confirm.

Github issue / Community forum post (link here to close automatically):

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

Great PR! Please pay attention to the following items before merging:

Files matching packages/**:

  • If fixing bug, added test to cover scenario.
  • If addressing forum or Github issue, added link to description.

Files matching **/*.vue:

  • Used composition API for all new components.
  • Added component or unit tests to cover functionality.

Files matching packages/editor-ui/**/*.vue:

  • Added E2E if adding new features.
  • Used design system tokens (colors, spacings...) where possible.

Files matching packages/editor-ui/src/views/NodeView.vue:

  • Avoided adding code here. Only refactored to make it smaller.

Make sure to check off this list before asking for review.

@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (b5cabfe) 28.32% compared to head (2867cef) 28.32%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6358      +/-   ##
==========================================
- Coverage   28.32%   28.32%   -0.01%     
==========================================
  Files        2982     2982              
  Lines      185125   185127       +2     
  Branches    20297    20297              
==========================================
  Hits        52443    52443              
- Misses     131897   131899       +2     
  Partials      785      785              
Impacted Files Coverage Δ
packages/editor-ui/src/views/NodeView.vue 13.50% <0.00%> (-0.01%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cstuncsik cstuncsik self-requested a review June 1, 2023 16:08
@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

✅ All Cypress E2E specs passed

@OlegIvaniv OlegIvaniv merged commit 0f2bc6b into master Jun 1, 2023
@OlegIvaniv OlegIvaniv deleted the ado-776-f2-rename-does-not-work-anymore branch June 1, 2023 17:34
MiloradFilipovic added a commit that referenced this pull request Jun 2, 2023
* master:
  fix(editor): Fix an issue with connections breaking during renaming (#6358)
  fix(core): Upgrade @n8n_io/riot-tmpl (no-changelog) (#6357)
  fix: Show actual execution data for production executions even if pin data exists (#6302)
  fix: Improve executions list polling performance (#6355)
  refactor: Revert 30k stars banner (no-changelog) (#6347)
  refactor: Add deprecation notice for basic auth and JWT auth (#6349)
  fix: Prevent redirect when outside of executions home (no-changelog) (#6305)
krynble pushed a commit that referenced this pull request Jun 5, 2023
…6358)

* fix(editor): Fix an issue where dragging during when rename modal active would break workflow connections

* Use enum to check for confirm state of modal
krynble pushed a commit that referenced this pull request Jun 6, 2023
…6358)

* fix(editor): Fix an issue where dragging during when rename modal active would break workflow connections

* Use enum to check for confirm state of modal
@janober
Copy link
Member

janober commented Jun 14, 2023

Got released with n8n@0.232.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants