feat: add async samples by busunkim96 · Pull Request #861 · googleapis/gapic-generator-python · GitHub
Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

feat: add async samples#861

Merged
software-dov merged 8 commits into
masterfrom
async-samples
Jun 11, 2021
Merged

feat: add async samples#861
software-dov merged 8 commits into
masterfrom
async-samples

Conversation

@busunkim96

Copy link
Copy Markdown
Contributor

No description provided.

@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label May 4, 2021
@snippet-bot

snippet-bot Bot commented May 4, 2021

Copy link
Copy Markdown

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label May 4, 2021
@codecov

codecov Bot commented May 4, 2021

Copy link
Copy Markdown

Codecov Report

Merging #861 (7a7e2f1) into master (7c185e8) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #861   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        27    +1     
  Lines         1608      1703   +95     
  Branches       328       347   +19     
=========================================
+ Hits          1608      1703   +95     
Impacted Files Coverage Δ
gapic/samplegen_utils/types.py 100.00% <ø> (ø)
gapic/samplegen_utils/utils.py 100.00% <ø> (ø)
gapic/utils/case.py 100.00% <ø> (ø)
gapic/utils/reserved_names.py 100.00% <ø> (ø)
gapic/generator/generator.py 100.00% <100.00%> (ø)
gapic/samplegen/samplegen.py 100.00% <100.00%> (ø)
gapic/schema/api.py 100.00% <100.00%> (ø)
gapic/schema/metadata.py 100.00% <100.00%> (ø)
gapic/schema/wrappers.py 100.00% <100.00%> (ø)
gapic/utils/__init__.py 100.00% <100.00%> (ø)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25aa8c9...7a7e2f1. Read the comment docs.

@busunkim96 busunkim96 marked this pull request as ready for review May 24, 2021 16:07
@busunkim96 busunkim96 requested a review from a team May 24, 2021 16:07
Comment thread gapic/samplegen/samplegen.py Outdated

@software-dov software-dov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, just a few optional nits and what looks like a copy/paste error.
One other thing: I'm not sure I like transport types being magic strings. If I were making code additions in this area, I would definitely mess up at some point and use "grpc_async" or "grpcAsync" and not catch it immediately. How annoying would it be to use named constants instead?

Comment thread gapic/samplegen/samplegen.py Outdated
Comment thread gapic/samplegen/samplegen.py Outdated
Comment thread tests/unit/samplegen/test_template.py Outdated
Comment thread tests/unit/samplegen/test_samplegen.py
@busunkim96

Copy link
Copy Markdown
Contributor Author

@software-dov Thank you for the review! Will clean this up and re-request a review.

One other thing: I'm not sure I like transport types being magic strings. If I were making code additions in this area, I would definitely mess up at some point and use "grpc_async" or "grpcAsync" and not catch it immediately. How annoying would it be to use named constants instead?

Named constants sound like they will be less error prone :)

@busunkim96 busunkim96 requested a review from software-dov June 9, 2021 22:58
@busunkim96

Copy link
Copy Markdown
Contributor Author

@software-dov PTAL.

I'm not sure why codecov isn't running. Is there a way to trigger it manually? Should I try pushing another commit?

@software-dov

Copy link
Copy Markdown
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants