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

[m3admin] non-strict jsonpb unmarshalling #117

Merged
merged 1 commit into from
Apr 8, 2019
Merged

Conversation

schallert
Copy link
Collaborator

When we unmarshal responses from the m3coordinator, the default jsonpb
behavior is to not allow unknown fields. This means that new fields
added by m3db to the proto can break the operator. This fixes that and
future-proofs us against new fields.

When we unmarshal responses from the m3coordinator, the default jsonpb
behavior is to not allow unknown fields. This means that new fields
added by m3db to the proto can break the operator. This fixes that and
future-proofs us against new fields.
@codecov
Copy link

codecov bot commented Apr 8, 2019

Codecov Report

Merging #117 into master will increase coverage by 0.06%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
+ Coverage   68.48%   68.55%   +0.06%     
==========================================
  Files          26       26              
  Lines        1869     1873       +4     
==========================================
+ Hits         1280     1284       +4     
  Misses        489      489              
  Partials      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 e1e7579...ed37d35. Read the comment docs.

Copy link
Collaborator

@prateek prateek left a comment

Choose a reason for hiding this comment

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

LGTM

@schallert schallert merged commit 61d54d0 into master Apr 8, 2019
@schallert schallert deleted the schallert/fix_ns_json branch April 8, 2019 16:20
robskillington pushed a commit that referenced this pull request Jul 17, 2019
When we unmarshal responses from the m3coordinator, the default jsonpb
behavior is to not allow unknown fields. This means that new fields
added by m3db to the proto can break the operator. This fixes that and
future-proofs us against new fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants