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: Updated protobuf JSON formatting to support nested protobufs #797

Merged
merged 5 commits into from Oct 18, 2023

Conversation

gkevinzheng
Copy link
Contributor

Also added unit/system tests to test nested protobufs.

Fixes #733

@gkevinzheng gkevinzheng requested review from a team as code owners October 16, 2023 21:02
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Oct 16, 2023
@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/python-logging API. label Oct 16, 2023
if self.payload is not None:
try:
proto_payload = MessageToDict(self.payload)
except Exception:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you replace this bare exception with the exception sub-class you'd expect to catch here?

Copy link
Contributor

@daniel-sanche daniel-sanche left a comment

Choose a reason for hiding this comment

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

Looks like there's a small lint error, but other than that LGTM!

@gkevinzheng gkevinzheng added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 18, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 18, 2023
@gkevinzheng gkevinzheng merged commit a00c261 into main Oct 18, 2023
15 checks passed
@gkevinzheng gkevinzheng deleted the json-serialize-list-value branch October 18, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/python-logging API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError('Object of type ListValue is not JSON serializable')
3 participants