-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
feat(editor): Prevent saving of workflow when canvas is loading #6497
feat(editor): Prevent saving of workflow when canvas is loading #6497
Conversation
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Great PR! Please pay attention to the following items before merging: Files matching
Files matching
Files matching
Files matching
Files matching
Files matching
Files matching
Make sure to check off this list before asking for review. |
|
3 flaky tests on run #1339 ↗︎
Details:
18-user-management.cy.ts • 1 flaky test
24-ndv-paired-item.cy.ts • 1 flaky test
15-scheduler-node.cy.ts • 1 flaky test
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
90b93f8
to
27066dd
Compare
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6497 +/- ##
==========================================
+ Coverage 28.65% 28.77% +0.12%
==========================================
Files 3000 3032 +32
Lines 186310 187007 +697
Branches 20601 20695 +94
==========================================
+ Hits 53390 53817 +427
- Misses 132110 132353 +243
- Partials 810 837 +27
☔ View full report in Codecov by Sentry. |
✅ All Cypress E2E specs passed |
# [1.0.0](https://github.com/netroy/n8n/compare/n8n@0.234.0...n8n@1.0.0) (2023-06-27) ### Bug Fixes * **core:** Add empty credential value marker to show empty pw field ([n8n-io#6532](https://github.com/netroy/n8n/issues/6532)) ([9294e2d](9294e2d)) * **core:** All migrations should run in a transaction ([n8n-io#6519](https://github.com/netroy/n8n/issues/6519)) ([e152cfe](e152cfe)) * **core:** Rename to credential_stubs and variable_stubs.json ([n8n-io#6528](https://github.com/netroy/n8n/issues/6528)) ([b06462f](b06462f)) * **Edit Image Node:** Fix transparent operation ([n8n-io#6513](https://github.com/netroy/n8n/issues/6513)) ([4a4bcbc](4a4bcbc)) * **editor:** Add default author name and email to source control settings ([n8n-io#6543](https://github.com/netroy/n8n/issues/6543)) ([e1a02c7](e1a02c7)) * **editor:** Change default branchColor and remove label ([n8n-io#6541](https://github.com/netroy/n8n/issues/6541)) ([186271e](186271e)) * **Google Drive Node:** URL parsing ([n8n-io#6527](https://github.com/netroy/n8n/issues/6527)) ([d9ed0b3](d9ed0b3)) * **Google Sheets Node:** Incorrect read of 0 and false ([n8n-io#6525](https://github.com/netroy/n8n/issues/6525)) ([806d134](806d134)) * **Merge Node:** Enrich input 2 fix ([n8n-io#6526](https://github.com/netroy/n8n/issues/6526)) ([c82c7f1](c82c7f1)) * **Notion Node:** Version fix ([n8n-io#6531](https://github.com/netroy/n8n/issues/6531)) ([38dc784](38dc784)) ### Features * Add missing input panels to some trigger nodes ([n8n-io#6518](https://github.com/netroy/n8n/issues/6518)) ([fdf8a42](fdf8a42)) * **editor:** Prevent saving of workflow when canvas is loading ([n8n-io#6497](https://github.com/netroy/n8n/issues/6497)) ([f89ef83](f89ef83)) * **editor:** SQL editor overhaul ([n8n-io#6282](https://github.com/netroy/n8n/issues/6282)) ([beedfb6](beedfb6)) * **Google Drive Node:** Overhaul ([n8n-io#5941](https://github.com/netroy/n8n/issues/5941)) ([d70a1cb](d70a1cb)) * **HTTP Request Node:** Notice about dev console ([n8n-io#6516](https://github.com/netroy/n8n/issues/6516)) ([d431117](d431117)) * **Matrix Node:** Allow setting filename if the binary data has none ([n8n-io#6536](https://github.com/netroy/n8n/issues/6536)) ([8b76e98](8b76e98)) Co-authored-by: netroy <netroy@users.noreply.github.com>
Got released with |
Some of our users have encountered an issue where saving an empty workflow through a keyboard shortcut could override an existing workflow. To address this problem, within the saveCurrentWorkflow function, we implemented a check to determine if the canvas is loading in which case we prevent saving.
We need to include
genericHelpers
mixin inworkflowHelpers
to get the loadingService. This caused an issue due togenericHelpers
isReadOnly
property. It was clashing with some other component'sisReadOnly
when imported together inworkflowHelpers
to fix this, I had to renameisReadOnly
toisReadOnlyRoute
.I also added pruning of activated workflows before pruning the DB. This seemed to have fixed the SQLITE error that we sometimes see in our e2e specs.
Github issue / Community forum post (link here to close automatically):