Skip to content

Conversation

@magar51
Copy link
Contributor

@magar51 magar51 commented Apr 12, 2024

Description

Fixes #11433

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

@magar51 magar51 requested review from a team as code owners April 12, 2024 09:38
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: composer Issues related to the Cloud Composer API. api: endpoints Issues related to the Cloud Endpoints API. api: speech Issues related to the Speech-to-Text API. labels Apr 12, 2024
holtskinner
holtskinner previously approved these changes Apr 12, 2024
Copy link

@georgetayloor georgetayloor left a 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


from airflow.operators.bash_operator import BashOperator
from airflow.operators.bash import BashOperator
from airflow.operators.python_operator import PythonOperator

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

@magar51 magar51 requested a review from georgetayloor April 16, 2024 13:22
Comment on lines 21 to 23
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

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?

Copy link

@georgetayloor georgetayloor left a 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

@kweinmeister kweinmeister added the kokoro:run Add this label to force Kokoro to re-run the tests. label Apr 16, 2024
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Apr 16, 2024
@leahecole leahecole dismissed holtskinner’s stale review April 18, 2024 15:54

Tests and lint do not pass

Copy link
Collaborator

@leahecole leahecole left a 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!

@leahecole leahecole marked this pull request as draft April 18, 2024 16:03
reverting Airflow 1 changes where relevant
@leahecole leahecole added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2024
@leahecole leahecole added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed api: speech Issues related to the Speech-to-Text API. api: endpoints Issues related to the Cloud Endpoints API. labels Apr 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2024
@kweinmeister kweinmeister added the kokoro:run Add this label to force Kokoro to re-run the tests. label Apr 23, 2024
@leahecole leahecole marked this pull request as ready for review April 23, 2024 16:25
@leahecole leahecole merged commit 768f82b into GoogleCloudPlatform:main Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: composer Issues related to the Cloud Composer API. kokoro:run Add this label to force Kokoro to re-run the tests. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Outdated bash operator import on Composer 2 Docs

6 participants