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): Hard load after logout to reset stores (no-changelog) #9500

Conversation

cstuncsik
Copy link
Contributor

@cstuncsik cstuncsik commented May 23, 2024

Summary

Frontend app re-initialization is not happening correctly when a user is logging out and another is logging in, especially when the users have different roles and/or running on different plans.

Related tickets and issues

PAY-1560

Review / Merge checklist

  • PR title and summary are descriptive
  • Tests included

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels May 23, 2024
@cstuncsik cstuncsik marked this pull request as ready for review May 23, 2024 13:51
@cstuncsik cstuncsik changed the title fix(editor): Reinitialize app after a second login fix(editor): Hard load after logout to reset stores May 23, 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.

besides the one comment, looks good to me.

packages/editor-ui/src/views/SignoutView.vue Show resolved Hide resolved
Copy link

cypress bot commented May 23, 2024

1 flaky test on run #5116 ↗︎

0 352 12 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 cstuncsik 🗃️ e2e/*
Project: n8n Commit: 1500d66902
Status: Passed Duration: 04:48 💡
Started: May 23, 2024 2:29 PM Ended: May 23, 2024 2:34 PM
Flakiness  cypress/e2e/5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video

Review all test suite changes for PR #9500 ↗︎

Copy link
Contributor

⚠️ Some Cypress E2E specs are failing, please fix them before merging

@netroy netroy changed the title fix(editor): Hard load after logout to reset stores fix(editor): Hard load after logout to reset stores (no-changelog) May 23, 2024
Copy link
Contributor

✅ All Cypress E2E specs passed

@cstuncsik cstuncsik merged commit 9367907 into master May 23, 2024
39 checks passed
@cstuncsik cstuncsik deleted the pay-1560-when-one-user-signs-out-and-another-signs-in-the-frontend branch May 23, 2024 15:07
MiloradFilipovic added a commit that referenced this pull request May 24, 2024
* master:
  refactor(core): Use consistent CSRF state validation across oAuth controllers (#9104)
  feat(core): Print the name of the migration that cannot be reverted when using `n8n db:revert` (#9473)
  fix(editor): Hard load after logout to reset stores (no-changelog) (#9500)
  refactor(core): Stop reporting `EAUTH` error codes to Sentry (no-changelog) (#9496)
  fix(core): Upgrade sheetjs to address CVE-2024-22363 (#9498)
  refactor: Remove skipped tests (no-changelog) (#9497)
  feat(editor): Add initial code for NodeView and Canvas rewrite (no-changelog) (#9135)
  fix(editor): Show input panel with not connected message (#9495)
  fix(editor): Prevent XSS in node-issues tooltip (#9490)

# Conflicts:
#	pnpm-lock.yaml
@janober
Copy link
Member

janober commented May 24, 2024

Got released with n8n@1.43.1

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 Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants