Re: [PR] Avoid importing from sdk when deprecating using utils [airflow]
jedcunningham commented on PR #50435: URL: https://github.com/apache/airflow/pull/50435#issuecomment-2873762546 Feels like this might be better for 3.1 instead of 3.0.2? -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [PR] Avoid importing from sdk when deprecating using utils [airflow]
amoghrajesh commented on code in PR #50435: URL: https://github.com/apache/airflow/pull/50435#discussion_r2084096514 ## airflow-core/src/airflow/decorators/__init__.py: ## @@ -32,6 +30,7 @@ "DecoratedMappedOperator": "airflow.sdk.bases.decorator.DecoratedMappedOperator", "DecoratedOperator": "airflow.sdk.bases.decorator.DecoratedOperator", "TaskDecorator": "airflow.sdk.bases.decorator.TaskDecorator", +"TaskDecoratorCollection": "airflow.sdk.bases.decorator.TaskDecoratorCollection", Review Comment: Oh boy. Good catch -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [PR] Avoid importing from sdk when deprecating using utils [airflow]
kaxil commented on code in PR #50435: URL: https://github.com/apache/airflow/pull/50435#discussion_r2084079594 ## airflow-core/src/airflow/decorators/__init__.py: ## @@ -32,6 +30,7 @@ "DecoratedMappedOperator": "airflow.sdk.bases.decorator.DecoratedMappedOperator", "DecoratedOperator": "airflow.sdk.bases.decorator.DecoratedOperator", "TaskDecorator": "airflow.sdk.bases.decorator.TaskDecorator", +"TaskDecoratorCollection": "airflow.sdk.bases.decorator.TaskDecoratorCollection", Review Comment: That is wrong import! ```suggestion "TaskDecorator": "airflow.sdk.bases.decorator.TaskDecorator", "TaskDecoratorCollection": "airflow.sdk.definitions.decorators.TaskDecoratorCollection", ``` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [PR] Avoid importing from sdk when deprecating using utils [airflow]
amoghrajesh commented on code in PR #50435: URL: https://github.com/apache/airflow/pull/50435#discussion_r2084010372 ## airflow-core/src/airflow/decorators/__init__.py: ## @@ -16,15 +16,6 @@ # under the License. from __future__ import annotations -from airflow.sdk.definitions.decorators import ( -TaskDecorator as TaskDecorator, -TaskDecoratorCollection as TaskDecoratorCollection, Review Comment: Cool -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [PR] Avoid importing from sdk when deprecating using utils [airflow]
kaxil commented on code in PR #50435: URL: https://github.com/apache/airflow/pull/50435#discussion_r2083476359 ## airflow-core/src/airflow/decorators/__init__.py: ## @@ -16,15 +16,6 @@ # under the License. from __future__ import annotations -from airflow.sdk.definitions.decorators import ( -TaskDecorator as TaskDecorator, -TaskDecoratorCollection as TaskDecoratorCollection, Review Comment: Let's add `TaskDecoratorCollection` to `__deprecated_classes` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [PR] Avoid importing from sdk when deprecating using utils [airflow]
amoghrajesh commented on code in PR #50435: URL: https://github.com/apache/airflow/pull/50435#discussion_r2083386066 ## airflow-core/src/airflow/decorators/__init__.py: ## @@ -16,15 +16,6 @@ # under the License. from __future__ import annotations -from airflow.sdk.definitions.decorators import ( -TaskDecorator as TaskDecorator, -TaskDecoratorCollection as TaskDecoratorCollection, Review Comment: Yep, accidentally removed them. Fixing -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [PR] Avoid importing from sdk when deprecating using utils [airflow]
kaxil commented on code in PR #50435: URL: https://github.com/apache/airflow/pull/50435#discussion_r2083139083 ## airflow-core/src/airflow/decorators/__init__.py: ## @@ -16,15 +16,6 @@ # under the License. from __future__ import annotations -from airflow.sdk.definitions.decorators import ( -TaskDecorator as TaskDecorator, -TaskDecoratorCollection as TaskDecoratorCollection, Review Comment: We don't import dag, task, taskgroup, teardown and such via that util, it will break back-compat -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
