n8n/cypress
Milorad FIlipović 4bd7ae29f7
perf(editor): Improve performance when opening large workflows with node issues (#7901)
This PR should improve performance when opening large workflows that
contain node issues (Fixes ADO-1521)

**Background**
Main reason for this poor performance is that our `getCurrentWorkflow()`
store getter is unnecessarily heavy but on top of that we are calling it
more than we need. This addresses the second part of the issue by
changing the following:
- Pausing node issue processing while workflows are loading
- Only getting current workflow once (instead for every node) when
calling `refreshNodeIssues`

**Benchmark**
This was tested on a workflow attached to [this Linear
ticket](https://linear.app/n8n/issue/ADO-1501/deliveryhero-enterprise-instance-very-slow-loading-workflows)
and this fix brings down opening time from **~1m10s** to **~28s** on my
laptop.

**Tests**
- [Latest e2e tests
run](https://github.com/n8n-io/n8n/actions/runs/7060874994)

https://community.n8n.io/t/ui-very-slow-with-more-than-100-nodes/8236/14
2023-12-04 10:57:03 +01:00
..
composables feat: Add AI tool building capabilities (#7336) 2023-11-29 12:13:55 +01:00
e2e perf(editor): Improve performance when opening large workflows with node issues (#7901) 2023-12-04 10:57:03 +01:00
fixtures feat(editor): Open template credential setup from collection (#7882) 2023-11-30 14:09:12 +02:00
pages feat(editor): Open template credential setup from collection (#7882) 2023-11-30 14:09:12 +02:00
support feat(core): Update LLM applications building support (no-changelog) (#7710) 2023-11-28 16:47:28 +01:00
utils feat: Add AI tool building capabilities (#7336) 2023-11-29 12:13:55 +01:00
constants.ts feat: Add AI tool building capabilities (#7336) 2023-11-29 12:13:55 +01:00
tsconfig.json fix: Include cypress TypeScript types in /cypress folder (no-changelog) (#7746) 2023-11-20 09:26:25 +01:00
types.ts refactor: Format root-level dirs (no-changelog) (#4938) 2022-12-15 16:39:59 +01:00