GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(automl): fix TypeError when passing a client_info to automl TablesClient by vimota · Pull Request #9949 · googleapis/google-cloud-python

Conversation

@vimota

@vimota vimota commented Dec 9, 2019

Copy link
Copy Markdown
Contributor

Ensures the ClientInfo object isn't passed in twice to the underlying clients (AutoMLClient and PredictionServiceClient) from the Table Client.

Fixes #9948 🦕

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vimota
vimota requested a review from busunkim96 as a code owner December 9, 2019 19:45
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 9, 2019
@vimota

vimota commented Dec 9, 2019

Copy link
Copy Markdown
Contributor Author

Cc'ing @helinwang as I was told you are the new maintainer of the library.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96
busunkim96 requested a review from helinwang December 12, 2019 17:56
helinwang
helinwang reviewed Dec 12, 2019
View reviewed changes
Comment thread automl/google/cloud/automl_v1beta1/tables/tables_client.py
@@ -104,17 +104,18 @@ def __init__(
else:
client_info_.user_agent = user_agent
client_info_.gapic_version = version

@helinwang helinwang Dec 12, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

Thanks for the PR!
I think it's good to encourage being explicit with the argument. E.g., prefer explicit argument than using kwargs.
Instead of removing the client_info argument, could you change the solution to removing "client_info" from kwargs after this line?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@vimota vimota Dec 12, 2019

Copy link
Copy Markdown
Contributor Author

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.

Done, thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@helinwang

helinwang commented Dec 12, 2019

Copy link
Copy Markdown
Contributor

The check is failing on Commit message did not follow Conventional Commits, could you make change to the commit message according to the rule as well? Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vimota vimota changed the title Fix TypeError when passing a client_info to automl TablesClient fix(automl): fix TypeError when passing a client_info to automl TablesClient Dec 12, 2019
@vimota
fix(automl): fix TypeError when passing a client_info to automl Table…
330bcde
…sClient
@vimota
vimota force-pushed the client_info branch from b101e65 to 330bcde Compare December 12, 2019 22:56
@vimota
fix(automl): delete client_info from kwargs instead and pass named pa…
6eb6fc7
…rameter.
@vimota

vimota commented Dec 12, 2019

Copy link
Copy Markdown
Contributor Author

The check is failing on Commit message did not follow Conventional Commits, could you make change to the commit message according to the rule as well? Thanks!

Done!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

helinwang
helinwang approved these changes Dec 12, 2019
View reviewed changes

@helinwang helinwang left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

LGTM, thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 13, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 13, 2019
@vimota
fix format
402857f
@vimota

vimota commented Dec 17, 2019

Copy link
Copy Markdown
Contributor Author

Fix the formatting that failed the test. (running blacken with python version 3.6 failed with No module named 'distutils.spawn' so I had to temporarily run it with 3.7 to fix the lint errors).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vimota

vimota commented Dec 17, 2019

Copy link
Copy Markdown
Contributor Author

@busunkim96 Is it possible to rerun the presubmits? Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 17, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 17, 2019
@busunkim96

busunkim96 commented Dec 17, 2019

Copy link
Copy Markdown
Contributor

@vimota Done!. @helinwang please merge when you are ready to.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@helinwang

helinwang commented Dec 17, 2019

Copy link
Copy Markdown
Contributor

Thanks all!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@helinwang
helinwang merged commit 8bb4068 into googleapis:master Dec 17, 2019
This was referenced Jan 29, 2020
chore(bigquery): bump copyright year to 2020, tweak docstring formatting (via synth) #10225
Merged
docs(language): change docstring formatting; bump copyright year to 2020 (via synth) #10234
Merged
[CHANGE ME] Re-generated container to pick up changes in the API or client library generator. #10256
Closed
[CHANGE ME] Re-generated datastore to pick up changes in the API or client library generator. #10261
Closed
parthea pushed a commit that referenced this pull request Oct 21, 2023
@vimota @helinwang
fix(automl): fix TypeError when passing a client_info to automl Table…
bf706fd
…sClient (#9949)

* fix(automl): fix TypeError when passing a client_info to automl TablesClient

The solution is to delete client_info from kwargs instead and pass named parameter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@busunkim96 busunkim96 Awaiting requested review from busunkim96
1 more reviewer
@helinwang helinwang helinwang approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AutoML Tables: Passing client_info produces a a TypeError

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@vimota @helinwang @busunkim96 @googlebot @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.