kaxil commented on a change in pull request #7166: [AIRFLOW-XXXX] Move UPDATING 
changes into correct versions
URL: https://github.com/apache/airflow/pull/7166#discussion_r366699525
 
 

 ##########
 File path: UPDATING.md
 ##########
 @@ -1336,6 +1328,20 @@ Installation and upgrading requires setting 
`SLUGIFY_USES_TEXT_UNIDECODE=yes` in
 `AIRFLOW_GPL_UNIDECODE=yes`. In case of the latter a GPL runtime dependency 
will be installed due to a
 dependency (python-nvd3 -> python-slugify -> unidecode).
 
+### Removed deprecated import mechanism
+
+The deprecated import mechanism has been removed so the import of modules 
becomes more consistent and explicit.
+
+For example: `from airflow.operators import BashOperator`
+becomes `from airflow.operators.bash_operator import BashOperator`
+
+### Changes to sensor imports
+
+Sensors are now accessible via `airflow.sensors` and no longer via 
`airflow.operators.sensors`.
+
+For example: `from airflow.operators.sensors import BaseSensorOperator`
+becomes `from airflow.sensors.base_sensor_operator import BaseSensorOperator`
+
 
 Review comment:
   This is still working on 1.10.7 too, so it was rightly placed in Master.
   
   This deprecation would be for 2.0

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to