Repository navigation
fix(number-format): preserve custom smart formatter id - #43439
Conversation
Code Review Agent Run #2182d5Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #43439 +/- ##
==========================================
- Coverage 78.85% 78.85% -0.01%
==========================================
Files 2876 2876
Lines 164581 164580 -1
Branches 38011 38010 -1
==========================================
- Hits 129786 129785 -1
Misses 32348 32348
Partials 2447 2447
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rusackas
left a comment
There was a problem hiding this comment.
LGTM, approving. Confirmed the only internal callers never pass a custom id, so this only fixes the external-consumer case the issue describes, no risk to existing behavior.
SUMMARY
createSmartNumberFormattertreatedid || signedas the ternary condition, so any supplied formatter ID was replaced with a built-in smart-number ID. This preserves a supplied ID and only selects the signed or unsigned default whenidis absent.Regression coverage verifies custom IDs with both signed modes.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Not applicable; this fixes formatter metadata without changing UI rendering.
TESTING INSTRUCTIONS
npm test -- packages/superset-ui-core/test/number-format/factories/createSmartNumberFormatter.test.ts --runInBand- 23 passednpx tsc --build packages/superset-ui-core/tsconfig.jsonnpx oxfmt <changed files> --checknpx oxlint --config oxlint.json --quiet <changed files>ADDITIONAL INFORMATION