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

feat: Add additional parameters to to_json() and to_dict() methods #384

Merged
merged 12 commits into from
Sep 8, 2023
Merged

feat: Add additional parameters to to_json() and to_dict() methods #384

merged 12 commits into from
Sep 8, 2023

Conversation

holtskinner
Copy link
Member

@holtskinner holtskinner requested review from a team as code owners August 3, 2023 18:02
@parthea parthea marked this pull request as draft August 3, 2023 18:17
@holtskinner holtskinner marked this pull request as ready for review August 4, 2023 17:00
@holtskinner
Copy link
Member Author

I think Owlbot has to be force run by adding the tag. I don't have permission to do that.

@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 6, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 6, 2023
@holtskinner
Copy link
Member Author

Is this good for review?

@parthea parthea self-assigned this Sep 1, 2023
Copy link
Contributor

@parthea parthea left a comment

Choose a reason for hiding this comment

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

I apologize for the delay. The changes look good. Please can you also add tests, similar to the ones added in #164 and #213

proto/message.py Outdated Show resolved Hide resolved
@parthea parthea assigned holtskinner and unassigned parthea Sep 1, 2023
Co-authored-by: Anthonios Partheniou <[email protected]>
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 1, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 1, 2023
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 6, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 6, 2023
@holtskinner holtskinner requested a review from parthea September 6, 2023 15:25
s = Squid(mass_kg=3.14159265)

s_dict = Squid.to_dict(s, float_precision=3)
assert s_dict["mass_kg"] == 3.14
Copy link
Contributor

@parthea parthea Sep 6, 2023

Choose a reason for hiding this comment

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

I would have expected this to be 3.141 or 3.142 since float_precision=3. If you agree, can you file a bug and add a comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I filed #390

Should it block this PR?

@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 8, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 8, 2023
@parthea parthea enabled auto-merge (squash) September 8, 2023 16:05
@parthea parthea merged commit 8f13a46 into googleapis:main Sep 8, 2023
24 checks passed
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