Skip to content

Conversation

@andrewsg
Copy link
Contributor

No description provided.

@andrewsg andrewsg requested review from a team as code owners September 18, 2023 18:50
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: storage Issues related to the googleapis/python-storage API. labels Sep 18, 2023
MiaCY and others added 6 commits September 18, 2023 12:34
* 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
@andrewsg andrewsg requested a review from cojenco September 18, 2023 19:44
Copy link
Contributor

@cojenco cojenco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉🎉🎉

:param user_agent: The user-agent for requests.
:type command: str
:param command:
Copy link
Contributor

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?

Copy link
Contributor Author

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.

"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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@andrewsg andrewsg changed the title fix: add gccl-gcs-cmd field to X-Goog-API-Client header for Transfer Manager calls feat: add gccl-gcs-cmd field to X-Goog-API-Client header for Transfer Manager calls Sep 19, 2023
@andrewsg andrewsg added the automerge Merge the pull request once unit tests and other checks pass. label Sep 19, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit 14a1909 into main Sep 19, 2023
@gcf-merge-on-green gcf-merge-on-green bot deleted the tm-metrics branch September 19, 2023 01:38
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/python-storage API. size: xl Pull request size is extra large.

4 participants