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

chore: Add a changelog entry for the floating point syncing fix #521

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

alco
Copy link
Member

@alco alco commented Oct 4, 2023

Forgot to add one in #508.

@linear
Copy link

linear bot commented Oct 4, 2023

VAX-1078 Client write to a float column fails to validate on the server

Reported in Discord — https://discord.com/channels/933657521581858818/1079688869852753981/1154950112414535753.

The problem happens when a whole number is written into a float column, e.g. 1695431807821. It is sent to the server without the decimal point and that results in a validation failure.

The server explicitly checks that a float number has a decimal point and at least one place following it, e.g. 1695431807821.0. This was a deliberate choice to avoid conflating integers and floats and instead make them have completely disjoint sets of possible values.

The client needs to make sure that a floating point number always has a decimal point when encoded for the Satellite protocol.

@alco
Copy link
Member Author

alco commented Oct 4, 2023

@kevin-dp thanks for the quick review!

@alco alco merged commit 0e24343 into main Oct 4, 2023
1 check passed
@alco alco deleted the alco/changelog-entry-for-vax-1078 branch October 4, 2023 08:56
alco added a commit that referenced this pull request Oct 5, 2023
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