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 serialization of repeated fields with empty messages #180

Merged
merged 2 commits into from
Apr 6, 2021

Conversation

nat-n
Copy link
Collaborator

@nat-n nat-n commented Nov 30, 2020

This addresses #179

There's a failing test because the sample JSON for the binary compatibility test does not re-serialise to the same json (because it has deeply nested empty values). I need to amend the testing utils to allow for cases like this but would rather wait for #176 to be merged first to avoid conflicting refactors.

@nat-n nat-n added the bug Something isn't working label Nov 30, 2020
@nat-n nat-n marked this pull request as draft November 30, 2020 22:20
@nat-n nat-n mentioned this pull request Dec 8, 2020
@mydatamodels
Copy link

Hello there,
Any news?
I'm sorry to chase you but it's a pretty serious bug. What can we do to help you?
Regards.

@cetanu cetanu marked this pull request as ready for review March 16, 2021 10:48
@cetanu
Copy link
Collaborator

cetanu commented Mar 16, 2021

Oops, I pressed ready for review not knowing what it does. If this is still WIP feel free to revert that.

Otherwise, what's been committed so far is acceptable to me.

@nat-n nat-n force-pushed the fix_empty_repeated branch 3 times, most recently from 31c63b3 to 022233f Compare April 5, 2021 16:21
Extend test config and utils to support exclusion of certain json samples from
testing for symetry.
@nat-n nat-n force-pushed the fix_empty_repeated branch from 022233f to 188b186 Compare April 5, 2021 16:43
@nat-n nat-n requested a review from cetanu April 5, 2021 16:48
@nat-n
Copy link
Collaborator Author

nat-n commented Apr 5, 2021

Rebased and finished refactoring some testing logic to allow json examples to be used for testing binary compatibility but skipped in the test for to_dict/from_dict symmetry.

cetanu
cetanu previously approved these changes Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants