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

Improve json marshalling of share protobuf messages #1655

Merged
merged 4 commits into from
Apr 22, 2021

Conversation

ishank011
Copy link
Contributor

@ishank011 ishank011 commented Apr 21, 2021

Protobuf oneof fields cannot be properly handled by the native json marshaller, and the protojson package can only handle proto messages. Previously, we were using a workaround of storing these oneof fields separately, which made the code
inelegant. Now we marshal these messages as strings before marshalling them via the native json package.

The existing json files storing the shares would need to be removed. Please add this to the changelog when you update the reva version in ocis @butonic @C0rby

@ishank011 ishank011 requested a review from labkode as a code owner April 21, 2021 13:06
@labkode labkode merged commit 105e51d into cs3org:master Apr 22, 2021
@ishank011 ishank011 deleted the share-json-marshal branch April 22, 2021 15:42
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