-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[python] Refactor structure to avoid cycle import #11167
Conversation
Currently, our core and side module dependent on each others. and will cause cycle import in our codebase, especially in issue apache#10905, we try to refactor to solve this problem. This patch do the following change: * Rename module `side` to `models` * Move `core/base` and `core/sidebase` to dir `modules` * Move `configuration` and `default_config.yaml` to the root of pydolphinscheduler
Codecov Report
@@ Coverage Diff @@
## dev #11167 +/- ##
============================================
- Coverage 40.26% 40.23% -0.04%
+ Complexity 4926 4925 -1
============================================
Files 982 982
Lines 37522 37558 +36
Branches 4124 4127 +3
============================================
+ Hits 15110 15112 +2
- Misses 20879 20911 +32
- Partials 1533 1535 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. |
Kudos, SonarCloud Quality Gate passed! |
I think it can go now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Currently, our core and side module dependent on each others. and will cause cycle import in our codebase, especially in issue #10905, we try to refactor to solve this problem. This patch do the following change: * Rename module `side` to `models` * Move `core/base` and `core/sidebase` to dir `modules` * Move `configuration` and `default_config.yaml` to the root of pydolphinscheduler (cherry picked from commit 7a766cb)
Currently, our core and side module dependent on each others. and will cause
cycle import in our codebase, especially in issue #10905, we try to refactor
to solve this problem.
This patch do the following change:
side
tomodels
core/base
andcore/sidebase
to dirmodules
configuration
anddefault_config.yaml
to the root of pydolphinscheduler