Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

feat: make vision helpers work with JSON proto #441

Merged
merged 2 commits into from
Sep 14, 2019

Conversation

alexander-fenster
Copy link
Contributor

Fixes #431 by loading JSON proto instead of using GoogleProtoFilesRoot from gax. In helpers, we only need a Feature enum, and it's very easy to get it by reading a JSON proto and making a protobuf.Root out of it. This code will work both with regular gRPC and in a fallback scenario.

  • Tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

@alexander-fenster alexander-fenster requested a review from a team September 13, 2019 21:55
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 13, 2019
@codecov
Copy link

codecov bot commented Sep 13, 2019

Codecov Report

Merging #441 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #441      +/-   ##
==========================================
- Coverage   97.67%   97.61%   -0.06%     
==========================================
  Files           3        3              
  Lines          86       84       -2     
==========================================
- Hits           84       82       -2     
  Misses          2        2
Impacted Files Coverage Δ
src/helpers.js 100% <100%> (ø) ⬆️

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 4b8f23b...e465dc5. Read the comment docs.

@alexander-fenster alexander-fenster merged commit 5b7a249 into master Sep 14, 2019
@alexander-fenster alexander-fenster deleted the vision-helpers-protos branch September 14, 2019 00:39
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

helpers.js?cd8a:247 Uncaught TypeError: gax.GoogleProtoFilesRoot is not a constructor
3 participants