Skip to content

Restores apply_defaults import in base_sensor_operator #16040

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

potiuk
Copy link
Member

@potiuk potiuk commented May 25, 2021

The GCSToLocalFilesystemOperator in Google Provider <=3.0.0 had wrong
import for apply_defaults. It used

from airflow.sensors.base_sensor_operator import apply_defaults

instead of

from airflow.utils.decorators import apply_defaults

When we removed apply_defaults in #15667, the base_sensor_operator
import was removed as well which made the GCSToLocalFilestystemOperator
stops working in 2.1.0

Fixes: #16035


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

The GCSToLocalFilesystemOperator in Google Provider <=3.0.0 had wrong
import for apply_defaults. It used

`from airflow.sensors.base_sensor_operator import apply_defaults`

instead of

`from airflow.utils.decorators import apply_defaults`

When we removed apply_defaults in apache#15667, the base_sensor_operator
import was removed as well which made the GCSToLocalFilestystemOperator
stops working in 2.1.0

Fixes: apache#16035
@boring-cyborg boring-cyborg bot added the area:core-operators Operators, Sensors and hooks within Core Airflow label May 25, 2021
@potiuk potiuk requested review from ashb and eladkal May 25, 2021 08:10
@potiuk potiuk added this to the Airflow 2.1.1 milestone May 25, 2021
@potiuk potiuk merged commit 0f8f66e into apache:master May 27, 2021
@potiuk potiuk deleted the restore-apply-default-import-in-base-sensor-operator branch May 27, 2021 05:08
jhtimmins pushed a commit to astronomer/airflow that referenced this pull request Jun 3, 2021
The GCSToLocalFilesystemOperator in Google Provider <=3.0.0 had wrong
import for apply_defaults. It used

`from airflow.sensors.base_sensor_operator import apply_defaults`

instead of

`from airflow.utils.decorators import apply_defaults`

When we removed apply_defaults in apache#15667, the base_sensor_operator
import was removed as well which made the GCSToLocalFilestystemOperator
stops working in 2.1.0

Fixes: apache#16035
(cherry picked from commit 0f8f66e)
ashb pushed a commit that referenced this pull request Jun 22, 2021
The GCSToLocalFilesystemOperator in Google Provider <=3.0.0 had wrong
import for apply_defaults. It used

`from airflow.sensors.base_sensor_operator import apply_defaults`

instead of

`from airflow.utils.decorators import apply_defaults`

When we removed apply_defaults in #15667, the base_sensor_operator
import was removed as well which made the GCSToLocalFilestystemOperator
stops working in 2.1.0

Fixes: #16035
(cherry picked from commit 0f8f66e)
@potiuk potiuk restored the restore-apply-default-import-in-base-sensor-operator branch April 26, 2022 20:46
@potiuk potiuk deleted the restore-apply-default-import-in-base-sensor-operator branch July 29, 2022 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core-operators Operators, Sensors and hooks within Core Airflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GCSToLocalFilesystemOperator from Google providers pre 4.0.0 fails to import in airflow 2.1.0
2 participants