Skip to content

Conversation

@cojenco
Copy link
Contributor

@cojenco cojenco commented Mar 9, 2021

Instantiating a batch creates a new connection. Since api endpoint and client info were not requested from the client, the batch did not respect client api endpoint (STORAGE_EMULATOR_HOST). This PR updates the batch constructor to request api endpoint and client info from client.

Fixes #376

@cojenco cojenco requested a review from a team March 9, 2021 22:21
@cojenco cojenco requested a review from a team as a code owner March 9, 2021 22:21
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 9, 2021
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Mar 9, 2021
Copy link
Contributor

@andrewsg andrewsg left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@cojenco cojenco merged commit 91fc6d9 into master Mar 9, 2021
@cojenco cojenco deleted the batch-376 branch March 9, 2021 22:39
cojenco added a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
…googleapis#392) * bug: let Batch Connection request api endpoint info from Client * add unit test coverage Co-authored-by: Cathy Ouyang <cathyo@google.com>
cojenco added a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
…googleapis#392) * bug: let Batch Connection request api endpoint info from Client * add unit test coverage Co-authored-by: Cathy Ouyang <cathyo@google.com>
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. cla: yes This human has signed the Contributor License Agreement.

2 participants