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

refactor(editor): Migrate workflows store to setup function with composition API (no-changelog) #9270

Merged

Conversation

alexgrozav
Copy link
Contributor

@alexgrozav alexgrozav commented May 1, 2024

Summary

In order to have better type safety and better caching, we're rewriting the workflows store to use composition api.

Related tickets and issues

https://linear.app/n8n/issue/N8N-7380/migrate-workflows-store-to-composition-api

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

@alexgrozav alexgrozav self-assigned this May 1, 2024
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels May 1, 2024
@alexgrozav alexgrozav requested a review from netroy May 3, 2024 07:27
netroy
netroy previously approved these changes May 7, 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.

minor nits. overall LGTM 🎉

packages/editor-ui/src/stores/workflows.store.ts Outdated Show resolved Hide resolved
packages/editor-ui/src/stores/workflows.store.ts Outdated Show resolved Hide resolved
packages/editor-ui/src/stores/workflows.store.ts Outdated Show resolved Hide resolved
Copy link

cypress bot commented May 7, 2024

4 flaky tests on run #4902 ↗︎

0 358 12 0 Flakiness 4

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 alexgrozav 🗃️ e2e/*
Project: n8n Commit: e4407bbc60
Status: Passed Duration: 04:29 💡
Started: May 8, 2024 11:17 AM Ended: May 8, 2024 11:22 AM
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  19-execution.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Execution > should test manual workflow stop Test Replay Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #9270 ↗︎

Copy link
Contributor

github-actions bot commented May 7, 2024

✅ All Cypress E2E specs passed

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.

🎉

Copy link
Contributor

github-actions bot commented May 8, 2024

✅ All Cypress E2E specs passed

@alexgrozav alexgrozav merged commit f64a41d into master May 8, 2024
36 checks passed
@alexgrozav alexgrozav deleted the n8n-7380-migrate-workflows-store-to-composition-api branch May 8, 2024 11:35
@janober
Copy link
Member

janober commented May 8, 2024

Got released with [email protected]

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