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: Prevent copying workflow when copying outside of canvas #10813

Merged
merged 3 commits into from
Sep 16, 2024
Merged

Conversation

mutdmour
Copy link
Contributor

Summary

  • Prevent copying workflow when focused in Assistant

Related Linear tickets, Github issues, and Community forum posts

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)

Comment on lines +86 to +87
tabindex="0"
@keydown.stop
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the fix for the issue.

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Sep 13, 2024
@mutdmour mutdmour added the release/backport Changes that need to be backported to older releases. label Sep 16, 2024
@mutdmour mutdmour changed the title fix: Prevent copying workflow when focused in Assistant (no-changelog) fix: Prevent copying workflow when copying outside of canvas Sep 16, 2024
Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

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

Works as expected for chat but I don't think it addresses the issue in the ticket. The original report doesn't mention the chat (Add any node and copy some value from it). Should we create a new ticket for this or look more into it?

@mutdmour
Copy link
Contributor Author

mutdmour commented Sep 16, 2024

@MiloradFilipovic if you look at Linear comments in ticket, you see that we cancelled because no one (tomi/oleg/nick) cannot reproduce this anymore. then we reopened it just for the assistant. sorry for the confusion.

@MiloradFilipovic
Copy link
Contributor

@MiloradFilipovic if you look at Linear comments in ticket, you see that we cancelled because no one (tomi/oleg/nick) can reproduce this anymore. then we reopened it just for the assistant. sorry for the confusion.

Ah, didn't check the timeline. Ok, looks good then

@MiloradFilipovic MiloradFilipovic self-requested a review September 16, 2024 10:14
Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

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

Works as expected

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Sep 16, 2024

n8n    Run #6888

Run Properties:  status check passed Passed #6888  •  git commit 47b21f525c: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 mutdmour 🗃️ e2e/*
Project n8n
Branch Review ado-2572
Run status status check passed Passed #6888
Run duration 04m 47s
Commit git commit 47b21f525c: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 mutdmour 🗃️ e2e/*
Committer Mutasem Aldmour
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 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 430
View all changes introduced in this branch ↗︎

@mutdmour mutdmour merged commit 22c1890 into master Sep 16, 2024
49 checks passed
@mutdmour mutdmour deleted the ado-2572 branch September 16, 2024 10:27
@github-actions github-actions bot mentioned this pull request Sep 16, 2024
@janober
Copy link
Member

janober commented Sep 16, 2024

Got released with [email protected]

MiloradFilipovic added a commit that referenced this pull request Sep 17, 2024
* master:
  refactor(core): Set up worker server (#10814)
  fix(Google Vertex Chat Model Node): Clean service account private key (#10770)
  test(core): Mock filesystem in tests (#10823)
  test(core): Fix license mock in worker test (#10824)
  ci: Ignore certain paths for e2e tests for PRs (no-changelog) (#10533)
  fix(editor): Render image binary-data using img tags (#10829)
  refactor(core): Move `instanceType` to `InstanceSettings` (no-changelog) (#10640)
  ci(benchmark): Always perform az login before teardown (#10827)
  fix: Prevent copying workflow when copying outside of canvas (#10813)
  fix: Fix telemetry causing console error (#10828)
  refactor: Remove unused disable directives from `nodes-base` (#10825)
  refactor(core): Remove unused disable directives from backend packages (#10826)
  chore: Upgrade to TypeScript 5.6 (#10822)
  fix(editor): Prevent clipboard XSS injection (#10805)
  refactor(core): Simplify createDeferredPromise, and add tests (no-changelog) (#10811)
  fix(HTTP Request Tool Node): Fix subsequent tool calls reusung the same options (#10808)
  fix(editor): Make expression edit modal read-only in executions view (#10806)
  refactor(core): Move push message types to a new shared package (no-changelog) (#10742)
  fix(editor): Make schema view search copy more clear (#10807)
@github-actions github-actions bot mentioned this pull request Sep 18, 2024
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 release/backport Changes that need to be backported to older releases. Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants