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): Replace some of the Container.get calls with DI, and break a few more circular dependencies (no-changelog) #8135

Closed
wants to merge 1 commit into from

Conversation

netroy
Copy link
Member

@netroy netroy commented Dec 21, 2023

General janitorial work

Review / Merge checklist

  • PR title and summary are descriptive
  • Tests included

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Dec 21, 2023
tomi
tomi previously approved these changes Dec 22, 2023
Copy link
Contributor

@tomi tomi left a comment

Choose a reason for hiding this comment

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

Nice 👏 I was actually going to ask why are we using Container.get in so many places instead of injecting in the constructor, but this clarifies it.

Couple minor comments, but LGTM 🚀

Copy link
Contributor

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

@netroy
Copy link
Member Author

netroy commented Dec 22, 2023

This PR has spiraled out a bit. Going to split this out into separate PRs

@netroy netroy closed this Dec 22, 2023
netroy added a commit that referenced this pull request Dec 22, 2023
This change kept coming up in #6713, #7773, and #8135. 
So this PR moves the existing code without actually changing anything,
to help get rid of some of the circular dependencies.


## Review / Merge checklist
- [x] PR title and summary are descriptive.
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants