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

BrpQueryRow has field deserialization fix #16613

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

Leinnan
Copy link
Contributor

@Leinnan Leinnan commented Dec 2, 2024

Objective

BrpQueryRow doesn't serialize has field if it is empty. That is okay until you try to deserialize it after. Then it will fail to deserialize due to missing field.

Solution

Serde support using default value when field is missing, this PR adds that.

Copy link
Member

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

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

Sensible fix, but I'd be happier if there was a test too!

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Dev-Tools Tools used to debug Bevy applications. D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Dec 3, 2024
@Leinnan
Copy link
Contributor Author

Leinnan commented Dec 4, 2024

@alice-i-cecile I have already WIP of serialization tests for remote structs on my machine and I will try to create PR before end of the week, but I wanted to have that merged first, since it is blocking issue for me for using bevy_remote module in my remote inspector.

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Dec 4, 2024
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Dec 4, 2024
@alice-i-cecile alice-i-cecile added this to the 0.15.1 milestone Dec 4, 2024
Merged via the queue into bevyengine:main with commit f59ae0f Dec 4, 2024
29 checks passed
@Leinnan Leinnan deleted the brp-query-fix branch December 4, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Dev-Tools Tools used to debug Bevy applications. C-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants