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

Vision OCR multi-region #911

Merged
merged 7 commits into from
Dec 5, 2019
Merged

Vision OCR multi-region #911

merged 7 commits into from
Dec 5, 2019

Conversation

telpirion
Copy link
Contributor

This pull request adds the following region_tag:
vision_set_endpoint

The canonical sample is here:
GoogleCloudPlatform/python-docs-samples#2569

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 26, 2019
@amanda-tarafa
Copy link
Member

Hi @telpirion, some of the vision tests are failing on this PR. Let me know when you hace check those and I can review.
Cheers!

private static object DetectTextWithLocation(Image image)
{
// [START vision_set_endpoint]

Copy link
Contributor

Choose a reason for hiding this comment

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

Extraneous newline. I looked at the other samples and this isn't present in the other samples.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Endpoint = new ServiceEndpoint("eu-vision.googleapis.com")
}.Build();
// [END vision_set_endpoint]

Copy link
Contributor

Choose a reason for hiding this comment

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

Extraneous newline. Besides these 2 extra lines (I looked at the other samples in this file and they don't have empty newlines), all LGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you!

@amanda-tarafa amanda-tarafa added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 3, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 3, 2019
@amanda-tarafa amanda-tarafa added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 3, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 3, 2019
@amanda-tarafa
Copy link
Member

Hi @telpirion, I fixed the lint issue on Storage but the Vision tests are still failing on this PR (apparently there's a file missing somewhere).

  • Same as with the Speech PR, if you can't make them pass on local, you can push your fixes to this PR and see if all the checks go green.
    Cheers

Copy link
Member

@amanda-tarafa amanda-tarafa left a comment

Choose a reason for hiding this comment

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

LGTM with a very minor nit.

{
// [START vision_set_endpoint]
// Instantiate a client connected to the 'eu' location.
var client = new ImageAnnotatorClientBuilder()
Copy link
Member

Choose a reason for hiding this comment

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

nit: Remove the (), they are not needed on object initializers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did not know that! Thank you.

Copy link
Member

@amanda-tarafa amanda-tarafa left a comment

Choose a reason for hiding this comment

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

LGTM! Happy for you to merge.

@telpirion telpirion merged commit 2f03a81 into master Dec 5, 2019
@sethvargo sethvargo deleted the multi-region branch January 14, 2020 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants