-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Airflow 2 to 3 auto migration rules - ruff #44556
Labels
area:dependencies
Issues related to dependencies problems
area:dev-tools
area:upgrade
Facilitating migration to a newer version of Airflow
kind:feature
Feature Requests
Comments
dosubot
bot
added
area:dependencies
Issues related to dependencies problems
area:upgrade
Facilitating migration to a newer version of Airflow
labels
Dec 2, 2024
This was referenced Dec 2, 2024
Current progressUpdated: 12/11
|
This was referenced Dec 4, 2024
MichaReiser
pushed a commit
to astral-sh/ruff
that referenced
this issue
Dec 6, 2024
## 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 apache/airflow#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`
MichaReiser
pushed a commit
to astral-sh/ruff
that referenced
this issue
Dec 6, 2024
## 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. * in `DAG` * `sla_miss_callback` was removed * in `airflow.operators.trigger_dagrun.TriggerDagRunOperator` * `execution_date` was removed * in `airflow.operators.weekday.DayOfWeekSensor`, `airflow.operators.datetime.BranchDateTimeOperator` and `airflow.operators.weekday.BranchDayOfWeekOperator` * `use_task_execution_day` was removed in favor of `use_task_logical_date` The full list of rules we will extend apache/airflow#44556 ## Test Plan <!-- How was it tested? --> A test fixture is included in the PR.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:dependencies
Issues related to dependencies problems
area:dev-tools
area:upgrade
Facilitating migration to a newer version of Airflow
kind:feature
Feature Requests
Description
Ruff
AIR302
function
airflow.secrets.base_secrets.BaseSecretsBackend.get_conn_uri
→airflow.secrets.base_secrets.BaseSecretsBackend.get_conn_value
(from secrets backend deprecated methods removed #41642)airflow.secrets.base_secrets.BaseSecretsBackend.get_connections
→airflow.secrets.base_secrets.BaseSecretsBackend.get_connection
(from secrets backend deprecated methods removed #41642)args
airflow.utils.log.file_task_handler.FileTaskHandler
filename_template
(log handler deprecated filename_template argument removal #41552)BaseOperator
sla
(from Purge existing SLA implementation #42285)task_concurrency
→max_active_tis_per_dag
(from Remove deprecations in BaseOperator for Airflow 3 #41761) [airflow] rule for deprecated task_concurrency parameter (AIR303) astral-sh/ruff#14616method
airflow.hooks.base.BaseHook.get_connections
(from Remove deprecated get_connections() function in BaseHook #41733) → useget_connection
attribute
airflow.plugins_manager.AirflowPlugin
executors
(from Remove the ability to import executors from plugins #43289)hooks
(from Remove deprecated hook code from plugins #43291)operators
sensors
context key
execution_date
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)next_ds
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)next_ds_nodash
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)next_execution_date
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)prev_ds
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)prev_ds_nodash
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)prev_execution_date
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)prev_execution_date_success
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)tomorrow_ds
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)yesterday_ds
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)yesterday_ds_nodash
(from Rename execution_date to logical_date across codebase #43902 Check whethercontext[key]
has variables that are no longer available #44409)asset related change (need reorganized)
#41348
airflow.datasets
→airflow.sdk.definitions.asset
DatasetAlias
→AssetAlias
DatasetAll
→AssetAll
DatasetAny
→AssetAny
expand_alias_to_datasets
→expand_alias_to_assets
DatasetAliasEvent
→AssetAliasEvent
dest_dataset_uri
→BaseAsset
BaseDataset
→BaseAsset
Dataset
→Asset
iter_datasets
→iter_assets
iter_dataset_aliases
→iter_asset_aliases
airflow.datasets.manager
→airflow.assets.manager
dataset_manager
→asset_manager
resolve_dataset_manager
→resolve_asset_manager
DatasetManager
→AssetManager
register_dataset_change
→register_asset_change
create_datasets
→create_assets
register_dataset_change
→notify_asset_created
notify_dataset_changed
→notify_asset_changed
notify_dataset_alias_created
→notify_asset_alias_created
airflow.listeners.spec.dataset
→airflow.listeners.spec.asset
on_dataset_created
→on_asset_created
on_dataset_changed
→on_asset_changed
airflow.timetables.datasets
→airflow.timetables.assets
DatasetOrTimeSchedule
→AssetOrTimeSchedule
airflow.lineage.hook.DatasetLineageInfo
→airflow.lineage.hook.AssetLineageInfo
dataset
→asset
airflow.providers.amazon.aws.datasets
→airflow.providers.amazon.aws.assets
s3
create_dataset
→create_asset
convert_dataset_to_openlineage
→convert_asset_to_openlineage
airflow.providers.common.io.datasets
→airflow.providers.common.io.assets
file
create_dataset
→create_asset
convert_dataset_to_openlineage
→convert_asset_to_openlineage
airflow.providers.postgres.datasets
→airflow.providers.postgres.assets
airflow.providers.mysql.datasets
→airflow.providers.mysql.assets
airflow.providers.trino.datasets
→airflow.providers.trino.assets
airflow.datasets.metadata
→airflow.sdk.definitions.asset.metadata
airflow.timetables.datasets.DatasetOrTimeSchedule
→airflow.timetables.assets.AssetOrTimeSchedule
airflow.auth.managers.models.resource_details.DatasetDetails
→airflow.auth.managers.models.resource_details.AssetDetails
airflow.timetables.simple.DatasetTriggeredTimetable
→airflow.timetables.simple.AssetTriggeredTimetable
airflow.providers.openlineage.utils.utils.DatasetInfo
→airflow.providers.openlineage.utils.utils.AssetInfo
airflow.providers.amazon.auth_manager.aws_auth_manager.AwsAuthManager.is_authorized_dataset
→airflow.providers.amazon.auth_manager.aws_auth_manager.AwsAuthManager.is_authorized_asset
airflow.lineage.hook.HookLineageCollector.create_dataset
→airflow.lineage.hook.HookLineageCollector.create_asset
airflow.lineage.hook.HookLineageCollector.add_input_dataset
→airflow.lineage.hook.HookLineageCollector.add_input_asset
airflow.lineage.hook.HookLineageCollector.add_output_dataset
→airflow.lineage.hook.HookLineageCollector.dd_output_asset
airflow.lineage.hook.HookLineageCollector.collected_datasets
→airflow.lineage.hook.HookLineageCollector.collected_assets
airflow.providers_manager.ProvidersManager.initialize_providers_dataset_uri_resources
→airflow.providers_manager.ProvidersManager.initialize_providers_asset_uri_resources
airflow.api_connexion.security.requires_access_dataset
→airflow.api_connexion.security.requires_access_dataset.requires_access_asset
airflow.auth.managers.base_auth_manager.is_authorized_dataset
→airflow.auth.managers.base_auth_manager.is_authorized_asset
airflow.www.auth.has_access_dataset
→airflow.www.auth.has_access_dataset.has_access_asset
airflow.providers.fab.auth_manager.fab_auth_manager.is_authorized_dataset
→airflow.providers.fab.auth_manager.fab_auth_manager.is_authorized_asset
airflow.providers.openlineage.utils.utils.translate_airflow_dataset
→airflow.providers.openlineage.utils.utils.translate_airflow_asset
airflow.providers_manager.ProvidersManager.dataset_factories
→airflow.providers_manager.ProvidersManager.asset_factories
airflow.providers_manager.ProvidersManager.dataset_uri_handlers
→airflow.providers_manager.ProvidersManager.asset_uri_handlers
airflow.providers_manager.ProvidersManager.dataset_to_openlineage_converters
→airflow.providers_manager.ProvidersManager.asset_to_openlineage_converters
airflow.security.permissions.RESOURCE_DATASET
→airflow.security.permissions.RESOURCE_ASSET
airflow.providers.amazon.auth_manager.avp.entities.AvpEntities.DATASET
→airflow.providers.amazon.auth_manager.avp.entities.AvpEntities.ASSET
triggering_dataset_events
→triggering_asset_events
dataset-uris
→asset-uris
(for providers amazon, common.io, mysql, fab, postgres, trino)AIR303: moved to provider
AIR303 (TODO)
Some of the paths are not correct, but can be easily fixed by reading the origin PRpackage
airflow.kubernetes.*
(from Remove deprecated airflow.kubernetes package #41735) → useairflow.providers.cncf.kubernetes
module
airflow.hooks.dbapi
→airflow.providers.common.sql.hooks.sql
(from Module airflow.hooks.dbapi removed #41748)airflow.api.auth.backend.default
→airflow.providers.fab.auth_manager.api.auth.backend.session
(from Removedefault
as auth backend #43096)class
airflow.www.security.FabAirflowSecurityManagerOverride
→airflow.providers.fab.auth_manager.security_manager.override.FabAirflowSecurityManagerOverride
(from Remove a set of deprecations in airflow.www module #41758)airflow.executors.local_kubernetes_executor.CeleryExecutor
→airflow.providers.celery.executors.celery_executor.CeleryExecutor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.executors.local_kubernetes_executor.CeleryKubernetesExecutor
→airflow.providers.celery.executors.celery_kubernetes_executor.CeleryKubernetesExecutor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.executors.local_kubernetes_executor.DaskExecutor
→airflow.providers.daskexecutor.executors.dask_executor.DaskExecutor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.executors.local_kubernetes_executor.KubernetesExecutor
→airflow.providers.cncf.kubernetes.executors.kubernetes_executor.KubernetesExecutor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.executors.local_kubernetes_executor.AirflowKubernetesScheduler
→airflow.providers.cncf.kubernetes.executors.kubernetes_executor_utils.AirflowKubernetesScheduler
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.executors.local_kubernetes_executor.KubernetesJobWatcher
→airflow.providers.cncf.kubernetes.executors.kubernetes_executor_utils.KubernetesJobWatcher
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.executors.local_kubernetes_executor.ResourceVersion
→airflow.providers.cncf.kubernetes.executors.kubernetes_executor_utils.ResourceVersion
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.executors.local_kubernetes_executor.LocalKubernetesExecutor
→airflow.providers.cncf.kubernetes.executors.LocalKubernetesExecutor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.S3Hook
→airflow.providers.amazon.aws.hooks.s3.S3Hook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.BaseHook
→airflow.hooks.base.BaseHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.DbApiHook
→airflow.providers.common.sql.hooks.sql.DbApiHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.DockerHook
→airflow.providers.docker.hooks.docker.DockerHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.DruidDbApiHook
→airflow.providers.apache.druid.hooks.druid.DruidDbApiHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.DruidHook
→airflow.providers.apache.druid.hooks.druid.DruidHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.HiveCliHook
→airflow.providers.apache.hive.hooks.hive.HiveCliHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.HiveMetastoreHook
→airflow.providers.apache.hive.hooks.hive.HiveMetastoreHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.HiveServer2Hook
→airflow.providers.apache.hive.hooks.hive.HiveServer2Hook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.HttpHook
→airflow.providers.http.hooks.http.HttpHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.JdbcHook
→airflow.providers.jdbc.hooks.jdbc.JdbcHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.jaydebeapi
→airflow.providers.jdbc.hooks.jdbc.jaydebeapi
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.MsSqlHook
→airflow.providers.microsoft.mssql.hooks.mssql.MsSqlHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.MySqlHook
→airflow.providers.mysql.hooks.mysql.MySqlHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.OracleHook
→airflow.providers.oracle.hooks.oracle.OracleHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.PigCliHook
→airflow.providers.apache.pig.hooks.pig.PigCliHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.PostgresHook
→airflow.providers.postgres.hooks.postgres.PostgresHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.PrestoHook
→airflow.providers.presto.hooks.presto.PrestoHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.SambaHook
→airflow.providers.samba.hooks.samba.SambaHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.SlackHook
→airflow.providers.slack.hooks.slack.SlackHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.SqliteHook
→airflow.providers.sqlite.hooks.sqlite.SqliteHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.WebHDFSHook
→airflow.providers.apache.hdfs.hooks.webhdfs.WebHDFSHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.local_kubernetes_executor.ZendeskHook
→airflow.providers.zendesk.hooks.zendesk.ZendeskHook
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.check_operator.SQLCheckOperator
→airflow.providers.common.sql.operators.sql.SQLCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.check_operator.SQLIntervalCheckOperator
→airflow.providers.common.sql.operators.sql.SQLIntervalCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.check_operator.SQLThresholdCheckOperator
→airflow.providers.common.sql.operators.sql.SQLThresholdCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.check_operator.SQLValueCheckOperator
→airflow.providers.common.sql.operators.sql.SQLValueCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.check_operator.CheckOperator
→airflow.providers.common.sql.operators.sql.SQLCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.check_operator.IntervalCheckOperator
→airflow.providers.common.sql.operators.sql.SQLIntervalCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.check_operator.ThresholdCheckOperator
→airflow.providers.common.sql.operators.sql.SQLThresholdCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.check_operator.ValueCheckOperator
→airflow.providers.common.sql.operators.sql.SQLValueCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.dagrun_operator.TriggerDagRunLink
→airflow.operators.trigger_dagrun.TriggerDagRunLink
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.dagrun_operator.TriggerDagRunOperator
→airflow.operators.trigger_dagrun.TriggerDagRunOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.docker_operator.DockerOperator
→airflow.providers.docker.operators.docker.DockerOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.druid_check_operator.DruidCheckOperator
→airflow.providers.apache.druid.operators.druid_check.DruidCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.gcs_to_s3.GCSToS3Operator
→airflow.providers.amazon.aws.transfers.gcs_to_s3.GCSToS3Operator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.google_api_to_s3_transfer.GoogleApiToS3Operator
→airflow.providers.amazon.aws.transfers.google_api_to_s3.GoogleApiToS3Operator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.google_api_to_s3_transfer.GoogleApiToS3Transfer
→airflow.providers.amazon.aws.transfers.google_api_to_s3.GoogleApiToS3Operator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.hive_operator.HiveOperator
→airflow.providers.apache.hive.operators.hive.HiveOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.hive_stats_operator.HiveStatsCollectionOperator
→airflow.providers.apache.hive.operators.hive_stats.HiveStatsCollectionOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.hive_to_druid.HiveToDruidOperator
→airflow.providers.apache.druid.transfers.hive_to_druid.HiveToDruidOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.hive_to_druid.HiveToDruidTransfer
→airflow.providers.apache.druid.transfers.hive_to_druid.HiveToDruidOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.hive_to_mysql.HiveToMySqlOperator
→airflow.providers.apache.hive.transfers.hive_to_mysql.HiveToMySqlOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.hive_to_mysql.HiveToMySqlTransfer
→airflow.providers.apache.hive.transfers.hive_to_mysql.HiveToMySqlOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.local_kubernetes_executor.HiveToSambaOperator
→airflow.providers.apache.hive.transfers.hive_to_samba.HiveToSambaOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.hive_to_samba_operator.SimpleHttpOperator
→airflow.providers.http.operators.http.SimpleHttpOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.jdbc_operator.JdbcOperator
→airflow.providers.jdbc.operators.jdbc.JdbcOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.latest_only_operator.LatestOnlyOperator
→airflow.operators.latest_only.LatestOnlyOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.mssql_operator.MsSqlOperator
→airflow.providers.microsoft.mssql.operators.mssql.MsSqlOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.mssql_to_hive.MsSqlToHiveOperator
→airflow.providers.apache.hive.transfers.mssql_to_hive.MsSqlToHiveOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.mssql_to_hive.MsSqlToHiveTransfer
→airflow.providers.apache.hive.transfers.mssql_to_hive.MsSqlToHiveOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.mysql_operator.MySqlOperator
→airflow.providers.mysql.operators.mysql.MySqlOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.mysql_to_hive.MySqlToHiveOperator
→airflow.providers.apache.hive.transfers.mysql_to_hive.MySqlToHiveOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.mysql_to_hive.MySqlToHiveTransfer
→airflow.providers.apache.hive.transfers.mysql_to_hive.MySqlToHiveOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.oracle_operator.OracleOperator
→airflow.providers.oracle.operators.oracle.OracleOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.papermill_operator.PapermillOperator
→airflow.providers.papermill.operators.papermill.PapermillOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.pig_operator.PigOperator
→airflow.providers.apache.pig.operators.pig.PigOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.postgres_operator.Mapping
→airflow.providers.postgres.operators.postgres.Mapping
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.postgres_operator.PostgresOperator
→airflow.providers.postgres.operators.postgres.PostgresOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.presto_check_operator.SQLCheckOperator
→airflow.providers.common.sql.operators.sql.SQLCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.presto_check_operator.SQLIntervalCheckOperator
→airflow.providers.common.sql.operators.sql.SQLIntervalCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.presto_check_operator.SQLValueCheckOperator
→airflow.providers.common.sql.operators.sql.SQLValueCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.presto_check_operator.PrestoCheckOperator
→airflow.providers.common.sql.operators.sql.SQLCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.presto_check_operator.PrestoIntervalCheckOperator
→airflow.providers.common.sql.operators.sql.SQLIntervalCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.presto_check_operator.PrestoValueCheckOperator
→airflow.providers.common.sql.operators.sql.SQLValueCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.presto_to_mysql.PrestoToMySqlOperator
→airflow.providers.mysql.transfers.presto_to_mysql.PrestoToMySqlOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.presto_to_mysql.PrestoToMySqlTransfer
→airflow.providers.mysql.transfers.presto_to_mysql.PrestoToMySqlOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.python_operator.BranchPythonOperator
→airflow.operators.python.BranchPythonOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.python_operator.PythonOperator
→airflow.operators.python.PythonOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.python_operator.PythonVirtualenvOperator
→airflow.operators.python.PythonVirtualenvOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.python_operator.ShortCircuitOperator
→airflow.operators.python.ShortCircuitOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.redshift_to_s3_operator.RedshiftToS3Operator
→airflow.providers.amazon.aws.transfers.redshift_to_s3.RedshiftToS3Operator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.redshift_to_s3_operator.RedshiftToS3Transfer
→airflow.providers.amazon.aws.transfers.redshift_to_s3.RedshiftToS3Operator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.s3_file_transform_operator.S3FileTransformOperator
→airflow.providers.amazon.aws.operators.s3_file_transform.S3FileTransformOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.s3_to_hive_operator.S3ToHiveOperator
→airflow.providers.apache.hive.transfers.s3_to_hive.S3ToHiveOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.s3_to_hive_operator.S3ToHiveTransfer
→airflow.providers.apache.hive.transfers.s3_to_hive.S3ToHiveOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.s3_to_redshift_operator.S3ToRedshiftOperator
→airflow.providers.amazon.aws.transfers.s3_to_redshift.S3ToRedshiftOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.s3_to_redshift_operator.S3ToRedshiftTransfer
→airflow.providers.amazon.aws.transfers.s3_to_redshift.S3ToRedshiftOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.slack_operator.SlackAPIOperator
→airflow.providers.slack.operators.slack.SlackAPIOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.slack_operator.SlackAPIPostOperator
→airflow.providers.slack.operators.slack.SlackAPIPostOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql.BaseSQLOperator
→airflow.providers.common.sql.operators.sql.BaseSQLOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql.BranchSQLOperator
→airflow.providers.common.sql.operators.sql.BranchSQLOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql.SQLCheckOperator
→airflow.providers.common.sql.operators.sql.SQLCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql.SQLColumnCheckOperator
→airflow.providers.common.sql.operators.sql.SQLColumnCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql.SQLIntervalCheckOperator
→airflow.providers.common.sql.operators.sql.SQLIntervalCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql.SQLTableCheckOperator
→airflow.providers.common.sql.operators.sql.SQLTableCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql.SQLThresholdCheckOperator
→airflow.providers.common.sql.operators.sql.SQLThresholdCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql.SQLValueCheckOperator
→airflow.providers.common.sql.operators.sql.SQLValueCheckOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql._convert_to_float_if_possible
→airflow.providers.common.sql.operators.sql._convert_to_float_if_possible
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql.parse_boolean
→airflow.providers.common.sql.operators.sql.parse_boolean
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql_branch_operator.BranchSQLOperator
→airflow.providers.common.sql.operators.sql.BranchSQLOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sql_branch_operator.BranchSqlOperator
→airflow.providers.common.sql.operators.sql.BranchSQLOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.sqlite_operator.SqliteOperator
→airflow.providers.sqlite.operators.sqlite.SqliteOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.hive_partition_sensor.HivePartitionSensor
→airflow.providers.apache.hive.sensors.hive_partition.HivePartitionSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.http_sensor.HttpSensor
→airflow.providers.http.sensors.http.HttpSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.metastore_partition_sensor.MetastorePartitionSensor
→airflow.providers.apache.hive.sensors.metastore_partition.MetastorePartitionSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.named_hive_partition_sensor.NamedHivePartitionSensor
→airflow.providers.apache.hive.sensors.named_hive_partition.NamedHivePartitionSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.s3_key_sensor.S3KeySensor
→airflow.providers.amazon.aws.sensors.s3.S3KeySensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.sql.SqlSensor
→airflow.providers.common.sql.sensors.sql.SqlSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.sql_sensor.SqlSensor
→airflow.providers.common.sql.sensors.sql.SqlSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.web_hdfs_sensor.WebHdfsSensor
→airflow.providers.apache.hdfs.sensors.web_hdfs.WebHdfsSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)function
airflow.api.auth.backend.basic_auth
→airflow.providers.fab.auth_manager.api.auth.backend.basic_auth
(from feat: deprecated basic auth airflow.api.auth.backend.basic_auth removed #41663)airflow.api.auth.backend.kerberos_auth
→ airflow.executors.airflow.providers.fab.auth_manager.api.auth.backend.kerberos_auth
(from Deprecated kerberos auth removed #41693)airflow.auth.managers.fab.api.auth.backend.kerberos_auth
→airflow.providers.fab.auth_manager.api.auth.backend.kerberos_auth
(from Deprecated kerberos auth removed #41693)airflow.auth.managers.fab.fab_auth_manager
→airflow.providers.fab.auth_manager.security_manager.override
(from deprecated fab auth manager removed #41708)airflow.auth.managers.fab.security_manager.override
→airflow.providers.fab.auth_manager.security_manager.override
(from deprecated fab auth manager removed #41708)constant / variable
airflow.executors.kubernetes_executor_types.ALL_NAMESPACES
→airflow.providers.cncf.kubernetes.executors.kubernetes_executor_types.ALL_NAMESPACES
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.executors.kubernetes_executor_types.POD_EXECUTOR_DONE_KEY
→airflow.providers.cncf.kubernetes.executors.kubernetes_executor_types.POD_EXECUTOR_DONE_KEY
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.hooks.hive_hooks.HIVE_QUEUE_PRIORITIES
→airflow.providers.apache.hive.hooks.hive.HIVE_QUEUE_PRIORITIES
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.executors.celery_executor.app
→airflow.providers.celery.executors.celery_executor_utils.app
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.macros.hive.closest_ds_partition
→airflow.providers.apache.hive.macros.hive.closest_ds_partition
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.macros.hive.max_partition
→airflow.providers.apache.hive.macros.hive.max_partition
(from Remove support for deprecated imports like operators/hooks/sensors #41368)AIR310: models related changes (AIP-72) not going to do it
Rules to blocked by AIP-72
airflow.models.baseoperator.BaseOperatorLink
→airflow.models.baseoperatorlink.BaseOperatorLink
airflow.models.connection.parse_netloc_to_hostname
airflow.models.connection.Connection.parse_from_uri
airflow.models.connection.Connection.log_info
airflow.models.connection.Connection.debug_info
--tree
flag fromairflow tasks list
command #41964task_fail
table #43490airflow.models.ImportError
→airflow.models.errors.ParseImportError
(from Remove deprecatedImportError
fromairflow.models
#41367)airflow.models.taskMixin.TaskMixin
→airflow.models.taskMixin.DependencyMixin
(from Remove deprecatedTaskMixin
class #41394)In review rules
AIR303
airflow.www.security.FabAirflowSecurityManagerOverride
→airflow.providers.fab.auth_manager.security_manager.override.FabAirflowSecurityManagerOverride
(from Remove a set of deprecations in airflow.www module #41758)airflow.api.auth.backend.basic_auth
→airflow.providers.fab.auth_manager.api.auth.backend.basic_auth
(from feat: deprecated basic auth airflow.api.auth.backend.basic_auth removed #41663)airflow.api.auth.backend.kerberos_auth
→ airflow.executors.airflow.providers.fab.auth_manager.api.auth.backend.kerberos_auth
(from Deprecated kerberos auth removed #41693)airflow.auth.managers.fab.api.auth.backend.kerberos_auth
→airflow.providers.fab.auth_manager.api.auth.backend.kerberos_auth
(from Deprecated kerberos auth removed #41693)airflow.auth.managers.fab.fab_auth_manager
→airflow.providers.fab.auth_manager.security_manager.override
(from deprecated fab auth manager removed #41708)airflow.auth.managers.fab.security_manager.override
→airflow.providers.fab.auth_manager.security_manager.override
(from deprecated fab auth manager removed #41708)Merged rules
AIR302
args
DAG
schedule_interval
(from Unify DAG schedule args and change default to None #41453)timetable
(from Unify DAG schedule args and change default to None #41453)sla_miss_callback
(from Purge existing SLA implementation #42285)airflow.operators.trigger_dagrun.TriggerDagRunOperator
execution_date
(from Remove deprecated parameters from airflow (core) Operators #41736)airflow.operators.weekday.DayOfWeekSensor
use_task_execution_day
→use_task_logical_date
(from Remove deprecated param inDayOfWeekSensor
#41393)airflow.operators.datetime.BranchDateTimeOperator
use_task_execution_day
→use_task_logical_date
(from Remove deprecated parameters from airflow (core) Operators #41736)airflow.operators.weekday.BranchDayOfWeekOperator
use_task_execution_day
→use_task_logical_date
(from Remove deprecated parameters from airflow (core) Operators #41736)names
airflow.triggers.external_task.TaskStateTrigger
(from Removed deprecated TaskStateTrigger from airflow.triggers.external_task module #41737)airflow.metrics.validators.AllowListValidator
(from Metrics basic deprecated validators removed in favor of pattern matching #41975) → useairflow.metrics.validators.PatternAllowListValidator
airflow.metrics.validators.BlockListValidator
(from Metrics basic deprecated validators removed in favor of pattern matching #41975) → useairflow.metrics.validators.PatternBlockListValidator
airflow.utils.dates.parse_execution_date
(from Remove redundant functions inairflow.utils.dates
#43533)airflow.utils.dates.round_time
(from Remove redundant functions inairflow.utils.dates
#43533)airflow.utils.dates.scale_time_units
(from Remove redundant functions inairflow.utils.dates
#43533)airflow.utils.dates.infer_time_unit
(from Remove redundant functions inairflow.utils.dates
#43533)airflow.utils.dates.date_range
(from Airflow 3: airflow date utils date_range and days_ago deprecations removal #41496) useairflow.timetables.
airflow.utils.dates.days_ago
(from Airflow 3: airflow date utils date_range and days_ago deprecations removal #41496) → usependulum.today('UTC').add(days=-N, ...)
airflow.utils.file.TemporaryDirectory
(from Remove deprecations fromairflow.executors
&airflow.utils
#41395) → usetempfile.TemporaryDirectory
airflow.utils.file.mkdirs
(from Remove deprecations fromairflow.executors
&airflow.utils
#41395) → usepathlib.Path({path}).mkdir
airflow.www.auth.has_access
(from Remove a set of deprecations in airflow.www module #41758) → useairflow.www.auth.has_access_*
airflow.api_connexion.security.requires_access
(from Removed deprecated method requires_access from module airflow.api_connexion.security #41910) → userequires_access_*
airflow.utils.dag_cycle_tester.test_cycle
(from Remove deprecations fromairflow.executors
&airflow.utils
#41395)airflow.utils.state.SHUTDOWN
(from Remove deprecations fromairflow.executors
&airflow.utils
#41395)airflow.utils.state.terminating_states
(from Remove deprecations fromairflow.executors
&airflow.utils
#41395)airflow.utils.decorators.apply_defaults
(from decorators deprecated apply_defaults removal #41579) (auto applied)airflow.www.utils.get_sensitive_variables_fields
→airflow.utils.log.secrets_masker.get_sensitive_variables_fields
(from Remove a set of deprecations in airflow.www module #41758)airflow.www.utils.should_hide_value_for_key
→airflow.utils.log.secrets_masker.should_hide_value_for_key
(from Remove a set of deprecations in airflow.www module #41758)airflow.configuration.get
→airflow.configuration.conf.get
(from Remove deprecated functions fromairflow/configuration.py
#43530)airflow.configuration.getboolean
→airflow.configuration.conf.getboolean
(from Remove deprecated functions fromairflow/configuration.py
#43530)airflow.configuration.getfloat
→airflow.configuration.conf.getfloat
(from Remove deprecated functions fromairflow/configuration.py
#43530)airflow.configuration.getint
→airflow.configuration.conf.getint
(from Remove deprecated functions fromairflow/configuration.py
#43530)airflow.configuration.has_option
→airflow.configuration.conf.has_option
(from Remove deprecated functions fromairflow/configuration.py
#43530)airflow.configuration.remove_option
→airflow.configuration.conf.remove_option
(from Remove deprecated functions fromairflow/configuration.py
#43530)airflow.configuration.as_dict
→airflow.configuration.conf.as_dict
(from Remove deprecated functions fromairflow/configuration.py
#43530)airflow.configuration.set
→airflow.configuration.conf.set
(from Remove deprecated functions fromairflow/configuration.py
#43530)airflow.secrets.local_filesystem.load_connections
→airflow.secrets.local_filesystem.load_connections_dict
(from Removed deprecated param from local_filesystem #41533)airflow.secrets.local_filesystem.get_connection
→airflow.secrets.local_filesystem.load_connections_dict
(from Removed deprecated param from local_filesystem #41533)airflow.utils.helpers.chain
→airflow.models.baseoperator.chain
(from Util helper deprecated functions removal #41520)airflow.utils.helpers.cross_downstream
→airflow.models.baseoperator.cross_downstream
(from Util helper deprecated functions removal #41520)airflow.contrib.*
(from Removecontrib
#41366)airflow.operators.subdag.*
(from Remove deprecated SubDags #41390)airflow.sensors.external_task.ExternalTaskSensorLink
→airflow.sensors.external_task.ExternalDagLin
(from Remove deprecatedExternalTaskSensorLink
#41391)airflow.operators.bash_operator.BashOperator
→airflow.operators.bash.BashOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.branch_operator.BaseBranchOperator
→airflow.operators.branch.BaseBranchOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.dummy.EmptyOperator
→airflow.operators.empty.EmptyOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.dummy.DummyOperator
→airflow.operators.empty.EmptyOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.dummy_operator.EmptyOperator
→airflow.operators.empty.EmptyOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.dummy_operator.DummyOperator
→airflow.operators.empty.EmptyOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.operators.email_operator.EmailOperator
→airflow.operators.email.EmailOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.base_sensor_operator.BaseSensorOperator
→airflow.sensors.base.BaseSensorOperator
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.date_time_sensor.DateTimeSensor
→airflow.sensors.date_time.DateTimeSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.external_task_sensor.ExternalTaskMarker
→airflow.sensors.external_task.ExternalTaskMarker
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.external_task_sensor.ExternalTaskSensor
→airflow.sensors.external_task.ExternalTaskSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.external_task_sensor.ExternalTaskSensorLink
→airflow.sensors.external_task.ExternalTaskSensorLink
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.sensors.time_delta_sensor.TimeDeltaSensor
→airflow.sensors.time_delta.TimeDeltaSensor
(from Remove support for deprecated imports like operators/hooks/sensors #41368)airflow.utils.trigger_rule.TriggerRule.DUMMY
(from Remove deprecations in BaseOperator for Airflow 3 #41761)airflow.utils.trigger_rule.TriggerRule.NONE_FAILED_OR_SKIPPED
(from Remove deprecations in BaseOperator for Airflow 3 #41761)airflow.PY\d\d
(from Remove deprecated Python Version identifiers #43562)Use case/motivation
No response
Related issues
#41641
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: