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): Restrict when the collision avoidance algorithm is used #10755

Conversation

r00gm
Copy link
Contributor

@r00gm r00gm commented Sep 10, 2024

Summary

Only execute the collision avoidance code when the edge would intersect the nodes

This is a naive implementation to collision detection, but it's enough for the use case.

Before After
image image

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/N8N-7725/connections-loop-above-node-not-below-also-missing-arrow#comment-ee9d2500

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 Sep 10, 2024
@r00gm r00gm changed the title fix: Restrict when the collision avoidance algorithm is used fix(editor): Restrict when the collision avoidance algorithm is used Sep 10, 2024
@r00gm r00gm marked this pull request as ready for review September 10, 2024 11:31
@r00gm r00gm requested a review from elsmr September 10, 2024 11:35
Copy link
Member

@elsmr elsmr left a comment

Choose a reason for hiding this comment

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

Great job!

Copy link

cypress bot commented Sep 10, 2024

n8n    Run #6828

Run Properties:  status check passed Passed #6828  •  git commit a5b8ff9d7b: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 r00gm 🗃️ e2e/*
Project n8n
Branch Review perf-improvement-workflow-details
Run status status check passed Passed #6828
Run duration 04m 41s
Commit git commit a5b8ff9d7b: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 r00gm 🗃️ e2e/*
Committer r00gm
View all properties for this run ↗︎

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

Copy link
Contributor

✅ All Cypress E2E specs passed

@r00gm r00gm merged commit bf43d67 into master Sep 10, 2024
39 checks passed
@r00gm r00gm deleted the n8n-7725-connections-loop-above-node-not-below-also-missing-arrow branch September 10, 2024 15:43
@github-actions github-actions bot mentioned this pull request Sep 11, 2024
@Joffcom
Copy link
Member

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

Successfully merging this pull request may close these issues.

3 participants