-
Notifications
You must be signed in to change notification settings - Fork 156
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
feat: add gccl-gcs-cmd field to X-Goog-API-Client header for Transfer Manager calls #1119
Conversation
* Refactor client.download_blob_to_file * Chore: clean up code * refactor blob and client unit tests * lint reformat * Rename _prep_and_do_download
* Refactor client.download_blob_to_file * Chore: clean up code * refactor blob and client unit tests * lint reformat * Rename _prep_and_do_download * Refactor blob.upload_from_file * Lint reformat
…1082) * Refactor client.download_blob_to_file * Chore: clean up code * refactor blob and client unit tests * lint reformat * Rename _prep_and_do_download * Refactor blob.upload_from_file * Lint reformat * feature: add 'command' argument to private upload/download interface * lint reformat * reduce duplication and edit docstring
…sfer manager (#1096) * Refactor client.download_blob_to_file * Chore: clean up code * refactor blob and client unit tests * lint reformat * Rename _prep_and_do_download * Refactor blob.upload_from_file * Lint reformat * feature: add 'command' argument to private upload/download interface * lint reformat * reduce duplication and edit docstring * feature: utilize new private interface to pass 'command' through transfer manager * add default value to content_type in blob.handle_filename_and_upload() * add 'command' to downloan_chunks_concurrently * docstring editing * refactor transfer manager unit tests * refactor expected download/upload kwargs
e8614c1
to
fa848b7
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.
🎉🎉🎉
google/cloud/storage/_helpers.py
Outdated
:param user_agent: The user-agent for requests. | ||
|
||
:type command: str | ||
:param command: |
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.
nit: indentation?
another nit: any particular reason why this PR is tagged as a fix?
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 wasn't sure how to tag it. It's not customer-facing so it's not a feat. But it seems bigger than a chore.
Fix is for point releases, feat is for minor releases. I think this is more of a point release thing, so fix. I could be convinced otherwise.
@@ -769,7 +769,7 @@ def test_upload_chunks_concurrently_with_metadata_and_encryption(): | |||
"Accept": "application/json", | |||
"Accept-Encoding": "gzip, deflate", | |||
"User-Agent": "agent", | |||
"X-Goog-API-Client": "agent gccl-invocation-id/{}".format(invocation_id), | |||
"X-Goog-API-Client": f"agent gccl-invocation-id/{invocation_id} gccl-gcs-cmd/tm.upload_sharded", |
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.
👍
No description provided.