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): Add back prompt requesting to save unsaved changes (no-changelog) #10190

Conversation

alexgrozav
Copy link
Member

Summary

Screen.Recording.2024-07-25.at.16.29.17.mov

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/ADO-2354/community-issue-when-leaving-a-workflow-n8n-doesnt-ask-if-i-want-to

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)

@alexgrozav alexgrozav self-assigned this Jul 25, 2024
Copy link
Member

@netroy netroy left a comment

Choose a reason for hiding this comment

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

We have very similar code in WorkflowExecutionsList. Could we extract this all into a composable somehow that we can write tests for?

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jul 25, 2024
@alexgrozav alexgrozav requested a review from mutdmour July 25, 2024 14:37
@alexgrozav alexgrozav added the release/backport Changes that need to be backported to older releases. label Jul 25, 2024
cy.visit(WorkflowsPage.url);
});

it('should ask to save unsaved changes before leaving route', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for adding a test

Copy link

cypress bot commented Jul 25, 2024

1 flaky test on run #6146 ↗︎

0 389 0 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 alexgrozav 🗃️ e2e/*
Project: n8n Commit: 1ff07b5ab7
Status: Passed Duration: 04:10 💡
Started: Jul 25, 2024 3:39 PM Ended: Jul 25, 2024 3:43 PM
Flakiness  e2e/30-langchain.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Langchain Integration > should add and use Manual Chat Trigger node together with Agent node Test Replay Screenshots Video

Review all test suite changes for PR #10190 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@alexgrozav alexgrozav merged commit fa7bc45 into master Jul 25, 2024
27 checks passed
@alexgrozav alexgrozav deleted the ado-2354-community-issue-when-leaving-a-workflow-n8n-doesnt-ask-if-i branch July 25, 2024 15:44
elsmr pushed a commit that referenced this pull request Jul 26, 2024
elsmr pushed a commit that referenced this pull request Jul 26, 2024
@janober
Copy link
Member

janober commented Jul 26, 2024

Got released with [email protected]

MiloradFilipovic added a commit that referenced this pull request Jul 29, 2024
* master:
  feat(HTTP Request Node): Add option to disable lowercase headers (#10154)
  feat: Recovery option for jsonParse helper (#10182)
  fix: Better error message when calling data transformation functions on a null value (#10210)
  refactor: Delete mistakenly commited node file (no-changelog) (#10213)
  refactor(editor): Add Infisical deprecation notice (#10191)
  feat(editor): Show new executions as `Queued` in the UI, until they actually start (#10204)
  refactor: Update Langchain modules & add Ollama tools support (#10208)
  feat(Sentiment Analysis Node): Implement Sentiment Analysis node (#10184)
  fix: Add original error message to messages, do not obfuscate if description provided in options (no-changelog) (#10202)
  fix(Google Sheets Node): Fix Google Sheet URL regex (#10195)
  fix(Google Sheets Node): Add column names row if sheet is empty (#10200)
  fix(Google Sheets Node): Do not insert row_number as a new column, do not checkForSchemaChanges in update operation (#10201)
  docs: Update credential urls (no-changelog) (#10193)
  fix(editor): Add back prompt requesting to save unsaved changes (no-changelog) (#10190)
  fix(HTTP Request Node): Resolve max pages expression (#10192)
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