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(core): Make workflow services injectable (no-changelog) #8033

Merged
merged 8 commits into from
Dec 15, 2023

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Dec 15, 2023

Refactor static workflow service classes into DI-compatible classes

Context: https://n8nio.slack.com/archives/C069HS026UF/p1702466571648889

Up next:

  • Inject dependencies into workflow services
  • Consolidate workflow controllers into one
  • Make workflow controller injectable
  • Inject dependencies into workflow controller

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Dec 15, 2023
packages/cli/src/ActiveWorkflowRunner.ts Show resolved Hide resolved
packages/cli/src/ActiveWorkflowRunner.ts Show resolved Hide resolved
packages/cli/src/ActiveWorkflowRunner.ts Show resolved Hide resolved
packages/cli/src/ActiveWorkflowRunner.ts Show resolved Hide resolved
packages/cli/src/ActiveWorkflowRunner.ts Show resolved Hide resolved
packages/cli/src/ActiveWorkflowRunner.ts Outdated Show resolved Hide resolved
@ivov
Copy link
Contributor Author

ivov commented Dec 15, 2023

Thanks! I should've seen the others.

Copy link

cypress bot commented Dec 15, 2023

1 flaky test on run #3351 ↗︎

0 305 5 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 ivov 🗃️ e2e/*
Project: n8n Commit: 0c3f8fe61e
Status: Passed Duration: 06:37 💡
Started: Dec 15, 2023 11:49 AM Ended: Dec 15, 2023 11:56 AM
Flakiness  cypress/e2e/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 Screenshots Video

Review all test suite changes for PR #8033 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@ivov ivov merged commit 1e7a309 into master Dec 15, 2023
19 checks passed
@ivov ivov deleted the make-workflow-services-injectable branch December 15, 2023 11:59
MiloradFilipovic added a commit that referenced this pull request Dec 15, 2023
* master:
  fix(editor): Cleanup Executions page component (#8053)
  feat: Add config option to prefer GET request over LIST when using Hashicorp Vault (#8049)
  fix(HTTP Request Node): Do not create circular references in HTTP request node output (#8030)
  fix(core): Handle multiple termination signals correctly (#8046)
  fix(core): Close db connection gracefully when exiting (#8045)
  fix(core): Public API support node's deprecated continueOnFail to upload old workflows (no-changelog) (#8044)
  fix(core): Remove circular references before serializing executions in public API (#8043)
  refactor(core): Make workflow services injectable (no-changelog) (#8033)
  refactor(core): Remove ID-less workflow reporting (no-changelog) (#8038)
  feat(Filter Node): Overhaul UI by adding the new filter component (#8016)
ivov added a commit that referenced this pull request Dec 18, 2023
…log) (#8066)

Inject dependencies into workflow services (no-changelog)

Up next:

- ~~Make workflow services injectable~~ #8033
- ~~Inject dependencies into workflow services~~ (current)
- Consolidate workflow controllers into one
- Make workflow controller injectable
- Inject dependencies into workflow controller
@janober
Copy link
Member

janober commented Dec 21, 2023

Got released with n8n@1.22.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants