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-3346] Add hook and operator for GCP transfer service. #4189
Conversation
d747d9d
to
0dd3db8
Compare
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.
Minor suggestion.
Also, you need to add this to integrations.rst
and code.rst
.
@potiuk Would be good to get your opinion as well.
|
||
|
||
# noinspection PyAbstractClass | ||
class TransferServiceHook(GoogleCloudBaseHook): |
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.
Rename TransferServiceHook
to GcpTransferServiceHook
:param gcs_bucket: The destination Google Cloud Storage bucket | ||
where you want to store the files. (templated) | ||
:type gcs_bucket: str | ||
:param project_id: The GCP project ID |
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.
Reword it to The ID of the Google Cloud Platform Console project that owns the job.
mock = None | ||
|
||
|
||
class TestTransferServiceHook(unittest.TestCase): |
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.
TestTransferServiceHook
-> TestGcpTransferServiceHook
61e5399
to
869431b
Compare
Codecov Report
@@ Coverage Diff @@
## master #4189 +/- ##
======================================
Coverage 77.7% 77.7%
======================================
Files 199 199
Lines 16312 16312
======================================
Hits 12675 12675
Misses 3637 3637 Continue to review full report at Codecov.
|
869431b
to
ad46df7
Compare
ad46df7
to
137b91d
Compare
Thanks for the update @kaxil! Let me know when you're done and I'll squash commits. |
I have squashed and merged it. Thanks @jmcarp for your contribution :) |
Make sure you have checked all steps below.
Jira
Description
Add a hook and operator(s) to connect to gcp storage transfer service and transfer files from s3 to gcp (and gcp to gcp) without copying to local disk.
Tests
Commits
Documentation
Code Quality
flake8