Skip to content
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

fix: update batch connection to request api endpoint info from client #392

Merged
merged 2 commits into from Mar 9, 2021

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Batch doesn't respect STORAGE_EMULATOR_HOST env variable
2 participants