-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Outdated bash operator import on Composer 2 Docs #11433 #11440
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
Update samples for google-cloud-speech to improve usability
…bility Handling Issue GoogleCloudPlatform#11248
…mples Handling Issue GoogleCloudPlatform#11248 - Update samples for google-cloud-speech to improve usability
Outdated bash operator import on Composer 2 Docs GoogleCloudPlatform#11433
Outdated bash operator import on Composer 2 Docs GoogleCloudPlatform#11433
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outdated python operator import, change to:
from airflow.operators.python import PythonOperator
@@ -16,7 +16,7 @@ | |||
|
|||
from airflow import models | |||
|
|||
from airflow.operators.bash_operator import BashOperator | |||
from airflow.operators.bash import BashOperator | |||
from airflow.operators.python_operator import PythonOperator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from airflow.operators.python import PythonOperator
from airflow.providers.google.cloud.operators.gcs import GCSCreateBucketOperator | ||
from airflow.providers.google.cloud.operators.gcs import GCSDeleteBucketOperator | ||
from airflow.providers.google.cloud.operators.gcs import GCSListObjectsOperator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure on styling specifics, is more concise for:
from airflow.providers.google.cloud.operators.gcs import GCSCreateBucketOperator, GCSDeleteBucketOperator, GCSListObjectsOperator
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM: one note on styling when importing multiple classes from same package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments - there are places where the BashOperator should not be modified. Additionally, please revert the changes in the endpoint
and speech
directories and submit them as separate PRs with linked issues. Additionally, I changed it to be a Draft PR while lint and tests are not passing. Feel free to change it back to "ready to review" once they are passing!
composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/dags/example_dag.py
Outdated
Show resolved
Hide resolved
reverting Airflow 1 changes where relevant
Removing changes made in GoogleCloudPlatform#11332
revert speech code changes
Description
Fixes #11433
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
nox -s py-3.9
(see Test Environment Setup)nox -s lint
(see Test Environment Setup)