-
Notifications
You must be signed in to change notification settings - Fork 14.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
Refactoring utils to be more sane #1219
Conversation
|
@mistercrunch as discussed. |
0b43aad
to
188d627
Compare
|
188d627
to
e118d63
Compare
|
From a first glance looks good! Would you mind updating your commit message per these guidelines http://chris.beams.io/posts/git-commit/ . It helps creating changelogs and release notes in the future. |
e118d63
to
5a04c38
Compare
Thanks. I tried to make the title more explicit. I think there is still a small issue with the email tests. |
|
Would you mind rebasing? Let's see if we can merge then. Thanks for the commit message, it looks so much nicer ;-) |
5a04c38
to
9c0fba9
Compare
|
9c0fba9
to
13efa9e
Compare
|
13efa9e
to
79568b9
Compare
|
79568b9
to
055648d
Compare
|
055648d
to
b9be025
Compare
|
b9be025
to
11576bc
Compare
|
Coverage decreased (-0.3%) to 66.149% when pulling 11576bcb52b2af63b57133c32a1d017721efb34c on arthurw_utils_refactor_take2 into 1db892b on master. |
11576bc
to
7db5825
Compare
|
utils.py had become a little too complex. Other projects like Django or IPython have a more structured and, I would argue, clearer way to organize utils. I try to reproduce this here. Ideally we want a utils folder with submodules that are grouped thematically. I rebased off of master and fixed references across the repository. I also introduced a PendingDeprecationWarning for calling apply_defaults from `airflow.utils` directly and redirect people to the right place. I also moved exceptions to a top level file.
7db5825
to
773f52f
Compare
|
from airflow.utils import AirflowException, State, LoggingMixin | ||
from airflow.exceptions import AirflowException | ||
from airflow.utils.state import State | ||
from airflow.utils.db import provide_session, pessimistic_connection_handling |
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.
Nit(feel free to ignore): ideally alphasort the depdendencies in all lines like this
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.
I will make sure I do in a following PR. At this point, I would rather merge while it works, because rebasing on that scale is a little bit of a PITA.
Alright, merging after 👍. |
* Add global dependencies to build.gradle Signed-off-by: wslulciuc <willy@datakin.com> Use vars for deps in build.gradle Signed-off-by: wslulciuc <willy@datakin.com> * Add ext.postgresqlVersion Signed-off-by: wslulciuc <willy@datakin.com>
utils had become a little too complex. Other projects like Django
or IPython have a more structured and, I would argue, clearer way
to organize utils. I try to reproduce this here.
Ideally we want a utils folder with submodules that are grouped
thematically. I rebased off of master and fixed references across
the repository. I also introduced a PendingDeprecationWarning for
calling apply_defaults from
airflow.utils
directly and redirectpeople to the right place. I also moved exceptions to a top level
file.
Supersedes: #1098