Wei Lee
39623f8d40
[airflow]: extend removed names (AIR302) (#14804)
## Summary
Airflow 3.0 removes various deprecated functions, members, modules, and
other values. They have been deprecated in 2.x, but the removal causes
incompatibilities that we want to detect. This PR deprecates the
following names.
The full list of rules we will extend
https://github.com/apache/airflow/issues/44556
#### package
* `airflow.contrib.*`
#### module
* `airflow.operators.subdag.*`
#### class
* `airflow.sensors.external_task.ExternalTaskSensorLink` →
`airflow.sensors.external_task.ExternalDagLin`
* `airflow.operators.bash_operator.BashOperator` →
`airflow.operators.bash.BashOperator`
* `airflow.operators.branch_operator.BaseBranchOperator` →
`airflow.operators.branch.BaseBranchOperator`
* `airflow.operators.dummy.EmptyOperator` →
`airflow.operators.empty.EmptyOperator`
* `airflow.operators.dummy.DummyOperator` →
`airflow.operators.empty.EmptyOperator`
* `airflow.operators.dummy_operator.EmptyOperator` →
`airflow.operators.empty.EmptyOperator`
* `airflow.operators.dummy_operator.DummyOperator` →
`airflow.operators.empty.EmptyOperator`
* `airflow.operators.email_operator.EmailOperator` →
`airflow.operators.email.EmailOperator`
* `airflow.sensors.base_sensor_operator.BaseSensorOperator` →
`airflow.sensors.base.BaseSensorOperator`
* `airflow.sensors.date_time_sensor.DateTimeSensor` →
`airflow.sensors.date_time.DateTimeSensor`
* `airflow.sensors.external_task_sensor.ExternalTaskMarker` →
`airflow.sensors.external_task.ExternalTaskMarker`
* `airflow.sensors.external_task_sensor.ExternalTaskSensor` →
`airflow.sensors.external_task.ExternalTaskSensor`
* `airflow.sensors.external_task_sensor.ExternalTaskSensorLink` →
`airflow.sensors.external_task.ExternalTaskSensorLink`
* `airflow.sensors.time_delta_sensor.TimeDeltaSensor` →
`airflow.sensors.time_delta.TimeDeltaSensor`
#### function
* `airflow.utils.decorators.apply_defaults`
* `airflow.www.utils.get_sensitive_variables_fields` →
`airflow.utils.log.secrets_masker.get_sensitive_variables_fields`
* `airflow.www.utils.should_hide_value_for_key` →
`airflow.utils.log.secrets_masker.should_hide_value_for_key`
* `airflow.configuration.get` → `airflow.configuration.conf.get`
* `airflow.configuration.getboolean` →
`airflow.configuration.conf.getboolean`
* `airflow.configuration.getfloat` →
`airflow.configuration.conf.getfloat`
* `airflow.configuration.getint` → `airflow.configuration.conf.getint`
* `airflow.configuration.has_option` →
`airflow.configuration.conf.has_option`
* `airflow.configuration.remove_option` →
`airflow.configuration.conf.remove_option`
* `airflow.configuration.as_dict` → `airflow.configuration.conf.as_dict`
* `airflow.configuration.set` → `airflow.configuration.conf.set`
* `airflow.secrets.local_filesystem.load_connections` →
`airflow.secrets.local_filesystem.load_connections_dict`
* `airflow.secrets.local_filesystem.get_connection` →
`airflow.secrets.local_filesystem.load_connections_dict`
* `airflow.utils.helpers.chain` → `airflow.models.baseoperator.chain`
* `airflow.utils.helpers.cross_downstream` →
`airflow.models.baseoperator.cross_downstream`
#### attribute
* in `airflow.utils.trigger_rule.TriggerRule`
* `DUMMY`
* `NONE_FAILED_OR_SKIPPED`
#### constant / variable
* `airflow.PY\d\d`
2024-12-06 11:34:48 +01:00
..
2024-12-03 08:22:42 +01:00
2024-12-06 11:19:22 +01:00
2024-11-29 12:05:05 +00:00
2024-12-06 10:22:08 +01:00
2024-12-01 01:38:31 +00:00
2024-11-18 12:26:55 +00:00
2024-12-03 08:22:42 +01:00
2024-12-06 08:50:29 +00:00
2024-11-17 16:21:09 +00:00
2024-11-29 12:05:05 +00:00
2024-11-29 12:05:05 +00:00
2024-11-29 12:05:05 +00:00
2024-12-06 11:34:48 +01:00
2024-11-27 09:41:40 +00:00
2024-12-05 10:30:06 +01:00
2024-11-15 19:31:15 +01:00
2024-12-02 06:02:56 +00:00
2024-11-29 12:05:05 +00:00
2024-11-29 12:05:05 +00:00
2024-11-15 19:31:15 +01:00
2024-12-03 08:36:16 +01:00
2024-12-03 08:36:16 +01:00
2024-11-15 19:31:15 +01:00
2024-11-29 12:05:05 +00:00
2024-12-05 18:06:35 +05:30
2024-12-02 22:41:47 -06:00