Repository navigation
Conversation
enjeck
left a comment
There was a problem hiding this comment.
please show proof this works in a nextcloud setup
|
Validated in a live Nextcloud setup using the Tables Playwright Docker environment (Nextcloud 34.0.6, Tables 3.0.0-dev.0 mounted from this branch). Through the API I created a zero-decimal number column and inserted |
Any chance you can share a video? Of actually running the flow that works, not just running the tests Sorry I'm asking for so much proof, but since you're a new contributor, I need to be sure a human actually tested this out and it works, and it's not all automated |
Number cells keep their stored fractional value, but reading through a zero-decimal column truncated the fraction and saturated very large values at the integer maximum. Rounding consistently with other decimal precision preserves normal integer output while avoiding both forms of data distortion. Assisted-by: Devin:adaptive Signed-off-by: Man Alin <whoalin414@gmail.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
16648fb to
bcb0843
Compare
Summary
Resolves #3364.
Number cells keep their stored fractional values, but reading them through a zero-decimal column truncated fractions (
2.7became2) and saturated very large values atPHP_INT_MAX. Zero-decimal values are now rounded consistently with other precision settings; ordinary integer-range values still read as integers, while out-of-range values remain floats instead of being clamped.Validation
RowCellNumberMapperTest, 15 tests / 15 assertions, using a minimal local bootstrap because the repository bootstrap expects placement inside a full Nextcloud server checkoutlib/Db/RowCellNumberMapper.phpNot run: live Nextcloud UI/API validation.
AI disclosure
Implemented and validated with Devin assistance; the contributor reviewed and submits this pull request.