Repository navigation
MOD-21561 - fix: preserve numeric type in JSON.CLEAR (MOD-21561) - #1722
Open
TalBarYakar wants to merge 1 commit into
Open
TalBarYakar wants to merge 1 commit into
TalBarYakar wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1722 +/- ##
==========================================
- Coverage 88.14% 88.14% -0.01%
==========================================
Files 18 18
Lines 6851 6864 +13
==========================================
+ Hits 6039 6050 +11
- Misses 812 814 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Low Risk
Small, localized change to JSON.CLEAR scalar handling with new regression tests; no auth, persistence, or broad API surface impact.
Overview
JSON.CLEAR now keeps whether a number was stored as an integer or a float: floats clear to 0.0 instead of being turned into integer 0.
In
ivalue_manager.rs,clearbranches onINumber::has_decimal_point()so decimal numbers reset via0.0and integers still reset to0. Pytest updatestestClearScalar($.numexpects[0.0]) and addstestClearPreservesNumericType, covering root and nested paths afterJSON.NUMINCRBYso cleared values stay0or0.0as appropriate.Reviewed by Cursor Bugbot for commit 3e4cafa. Bugbot is set up for automated code reviews on this repo. Configure here.