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 performance issues related to expressions and pinned data #9882

Merged
merged 5 commits into from
Jun 27, 2024

Conversation

alexgrozav
Copy link
Contributor

@alexgrozav alexgrozav commented Jun 27, 2024

Summary

  • Only update cached workflow object when pinned data is changed
  • Small fix for preventing duplicated (or more) getCurrentWorkflow calls.

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/N8N-7466/extremely-slow-ui-on-148

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 Jun 27, 2024
@mutdmour mutdmour changed the title fix(editor): Improve current workflow object caching (no-changelog) fix(editor): Fix performance issues related to expressions and pinned data Jun 27, 2024
@mutdmour mutdmour added the release/backport Changes that need to be backported to older releases. label Jun 27, 2024
Copy link

cypress bot commented Jun 27, 2024

4 flaky tests on run #5704 ↗︎

0 398 0 0 Flakiness 4

Details:

🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Project: n8n Commit: 13d83f2037
Status: Passed Duration: 05:08 💡
Started: Jun 28, 2024 3:11 AM Ended: Jun 28, 2024 3:16 AM
Flakiness  10-undo-redo.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Undo/Redo > should undo/redo adding connected nodes Test Replay Screenshots Video
Flakiness  5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video
Flakiness  30-editor-after-route-changes.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Editor actions should work > after saving a new workflow Test Replay Screenshots Video

Review all test suite changes for PR #9882 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit 13d83f2 into master Jun 27, 2024
30 checks passed
@netroy netroy deleted the improve-current-workflow-object-caching branch June 27, 2024 16:50
netroy pushed a commit that referenced this pull request Jun 27, 2024
… data (#9882)

Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
@github-actions github-actions bot mentioned this pull request Jun 27, 2024
@janober
Copy link
Member

janober commented Jun 27, 2024

Got released with n8n@1.48.1

@github-actions github-actions bot mentioned this pull request Jul 3, 2024
adrian-martinez-onestic pushed a commit to onesdata/n8n-fork that referenced this pull request Jul 8, 2024
… data (n8n-io#9882)

Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
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.

4 participants