Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BigQuery: Addclient_options to constructors for manual clients.#8999

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@emar-kar
Copy link
Contributor

Toward#8475

@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement. labelAug 9, 2019
@emar-karemar-kar changed the titleAdd client options to bigquery constructorBigQuery: Addclient_options to constructors for manual clients.Aug 9, 2019
@IlyaFaerIlyaFaer added api: bigqueryIssues related to the BigQuery API. kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelsAug 9, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelAug 9, 2019
@IlyaFaerIlyaFaer marked this pull request as ready for reviewAugust 9, 2019 09:48
@IlyaFaerIlyaFaer requested review froma team,tseaver andtswastAugust 9, 2019 09:48
project=self.PROJECT,
credentials=creds,
_http=http,
client_options={"api_endpoint":Connection.DEFAULT_API_ENDPOINT},
Copy link
Contributor

Choose a reason for hiding this comment

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

Because this test is for default Client constructor arguments, let's omitclient_options from this test, but still check thatAPI_BASE_URL has the expected value.

emar-kar reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that we need a different test where we setclient_options as a dictionary. Let's add such a test and set a value forapi_endpoint to something other than the default value.

emar-kar reacted with thumbs up emoji

creds=_make_credentials()
http=object()
client_options=ClientOptions(Connection.DEFAULT_API_ENDPOINT)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check with an alternative value for theapi_endpoint, since we are trying to test for non-default values in this test.

emar-kar reacted with thumbs up emoji
* added new test to check 'client_options' as a dict* deleted extra asserts* chged object at 'test_ctor_w_client_options_object' to an alternative value
@IlyaFaerIlyaFaer added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelAug 15, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelAug 15, 2019
* fixed lint issues
@IlyaFaerIlyaFaer added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelAug 16, 2019
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelAug 16, 2019
Copy link
Contributor

@tswasttswast left a comment

Choose a reason for hiding this comment

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

Thanks for updating the tests, just one question.

@busunkim96busunkim96 merged commit814bd26 intogoogleapis:masterAug 27, 2019
@emar-karemar-kar deleted the add-client_options-to-bigquery-constructor branchAugust 28, 2019 07:59
HemangChothani pushed a commit to HemangChothani/google-cloud-python that referenced this pull requestAug 29, 2019
emar-kar added a commit to MaxxleLLC/google-cloud-python that referenced this pull requestSep 18, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

+2 more reviewers

@tseavertseavertseaver approved these changes

@busunkim96busunkim96busunkim96 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

api: bigqueryIssues related to the BigQuery API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

7 participants

@emar-kar@tseaver@tswast@busunkim96@googlebot@IlyaFaer@yoshi-kokoro

[8]ページ先頭

©2009-2025 Movatter.jp