-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Move models/db
to modules/db
#22881
Move models/db
to modules/db
#22881
Conversation
This fixes quite a few imports to `models` inside `modules`, and is the conceptually better fitting place for a package that has no application specific outgoing dependencies but a lot of dependents.
Why does the linter fail, even though my local |
Not sure about this. The idea was that modules would not be dependent on db or the models. Why does this help? |
In theory, I absolutely agree. |
I think the The reason of putting the The purpose of defining the My opinion is:
I drafted a refactoring guideline in #22880 (I have experiences for maintaining systems which are 10 years old and refactoring them to modern, there are some my opinions to share). |
Looks like there is no difference between putting |
This refactoring seems to be unwanted. |
@delvh thanks for trying though! We should instead finish the move to make the dependency tree:
So if a package in |
😒 That's what this PR attempted to do in the least intrusive way. |
This fixes quite a few imports to
models
insidemodules
.In addition, it is the conceptually better fitting place for a package that has no application-specific dependencies but a lot of dependents.