-
Notifications
You must be signed in to change notification settings - Fork 16.3k
[AIRFLOW-2909] Deprecate airflow.operators.sensors module #3760
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
Conversation
|
It looks like @Fokko authored and @bolkedebruin committed the new sensors layout backwards compatibility for < 2.0 (6f00f72, 33c7204), so perhaps either / both would be a good reviewer for this PR. |
Codecov Report
@@ Coverage Diff @@
## master #3760 +/- ##
=========================================
- Coverage 77.67% 77.38% -0.3%
=========================================
Files 204 203 -1
Lines 15846 15810 -36
=========================================
- Hits 12309 12234 -75
- Misses 3537 3576 +39
Continue to review full report at Codecov.
|
Fokko
left a comment
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.
Thanks @tedmiston for picking this up, could you remove these references as well?
MacBook-Pro-van-Fokko:incubator-airflow fokkodriesprong$ grep -R "airflow.operators.sensors" .
grep: ./airflow/www/static/docs: No such file or directory
grep: ./airflow/www_rbac/static/docs: No such file or directory
./build/lib/airflow/contrib/sensors/sftp_sensor.py:from airflow.operators.sensors import BaseSensorOperator
./build/lib/airflow/contrib/sensors/hdfs_sensors.py:from airflow.operators.sensors import HdfsSensor
./build/lib/airflow/contrib/operators/fs_operator.py:from airflow.operators.sensors import BaseSensorOperator
|
@Fokko Sure, I just checked and I do not have this |
|
lgtm. @Fokko , I think those are from your local build dir. I can't find those in my repo. |
|
@tedmiston @feng-tao Oops, yes, this is some old build stuff dangling around in my airflow folder. Are we going to do |
|
I'm hoping straight to 2.0 as I've already had 1 PR merged that fully deprecates a "this will be deprecated soon" type feature (#3695). In either case, I suppose we have a trunk for 1.10 now. On the Jira issue, I've marked this as ≥ 2.0. |
|
Makes sense @tedmiston Thanks! |
|
@tedmiston We still missed this one: https://github.com/apache/incubator-airflow/pull/3808/files |
Make sure you have checked all steps below.
Jira
Description
This PR removes the now deprecated for 2.0
airflow.operators.sensorsmodule and updates all references to its sensors to use the newairflow.sensors.foo_sensorlayout.Tests
Deprecated functionality.
Commits
Documentation
Code Quality
git diff upstream/master -u -- "*.py" | flake8 --diff