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

Fix: code:3 - proto: (line 1:102): invalid value for string null #665

Merged
merged 10 commits into from
Jan 27, 2022

Conversation

markphelps
Copy link
Collaborator

@markphelps markphelps commented Jan 26, 2022

Fixes: #664

Creates V1toV2MarshallerAdapter that reverts back to the behavior of the grpc-gateway v1 runtime marshaller which supports using null map values even if not the 'correct' thing to do.

See: grpc-ecosystem/grpc-gateway#2481 (comment)

@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2022

Codecov Report

Merging #665 (27b0c5f) into releases/1.5 (a7a4326) will decrease coverage by 0.57%.
The diff coverage is 16.66%.

Impacted file tree graph

@@               Coverage Diff                @@
##           releases/1.5     #665      +/-   ##
================================================
- Coverage         83.43%   82.86%   -0.58%     
================================================
  Files                16       17       +1     
  Lines              1443     1453      +10     
================================================
  Hits               1204     1204              
- Misses              207      217      +10     
  Partials             32       32              
Impacted Files Coverage Δ
rpc/flipt/marshaller.go 0.00% <0.00%> (ø)
server/flag.go 82.35% <ø> (ø)
server/rule.go 73.21% <ø> (ø)
server/segment.go 82.00% <ø> (ø)
server/evaluator.go 91.17% <100.00%> (ø)

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 a7a4326...27b0c5f. Read the comment docs.

@markphelps markphelps changed the base branch from master to releases/1.5 January 26, 2022 01:35
@markphelps markphelps changed the title WIP reproduce: code:3 - proto: (line 1:102): invalid value for string null Fix: code:3 - proto: (line 1:102): invalid value for string null Jan 27, 2022
@markphelps markphelps marked this pull request as ready for review January 27, 2022 01:07
@markphelps markphelps merged commit 356dc9a into releases/1.5 Jan 27, 2022
@markphelps markphelps deleted the 1.5.1-hotfix branch January 27, 2022 01:14
markphelps pushed a commit that referenced this pull request Jan 27, 2022
* Fix: code:3 - proto: (line 1:102): invalid value for string null (#665)

* WIP reproduce: code:3 - proto: (line 1:102): invalid value for string type: null #664

* pipefail smh

* Replace github.com/golang/protobuf with google.golang.org/protobuf

* just eo pipefail

* fix shakedown trap

* got failing test

* move around

* Add v1toV2MarshallerAdapter to fix backwards compatability issue

* Update Changelog

* Dont need to suffix here

* Use node 16

* Oops forgot print body

* RM this for now until come up with a better solution

* Fix changelog
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.

v1.5.0 breaking change: invalid value for string type: null
2 participants