-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Switch from numeral to numbro #6344
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6344 +/- ##
==========================================
+ Coverage 60.74% 60.78% +0.03%
==========================================
Files 153 153
Lines 12513 12527 +14
Branches 1695 1701 +6
==========================================
+ Hits 7601 7614 +13
- Misses 4686 4687 +1
Partials 226 226 |
Frontend tests failed:
|
You ok to fix those? 😄 |
I should be able to figure it out. Probably a difference in the interface for specifying number format The broken tests were run by |
Oh. That's news to me too. Learning something every day I guess. 😄 |
I fixed most of the tests. The failing tests are complaining about incorrect tooltips on the counter widgets
The tooltips do seem to be formatted correctly when I run a development server. I'll investigate further next week |
Awesome. Sounds like it's almost across the line. 😄 |
I have not stumbled across any problems while testing this manually, but this change is affects a very hot code path (parsing all numbers returned by the database, and all the number formatting for tables). We should keep poking at this for at least a week. |
Sounds sensible. 😄 |
Found and fixed an off-by-100 error Unfortunately touching one more line of code tripped the code coverage warning 🙄 |
numeraljs is no longer maintained, and incorrectly parses high-precision floats (such as 1.2e-7) as NaN.
I have tested a variety of queries and dashboards, so far it's looking good. I'll aim to merge this tomorrow (August 15) unless someone has additional comments or concerns. |
Sounds good to me. 😄 |
This reverts commit f8934b8. Using a format string of '0' does not round to the nearest integer in Numbro BenjaminVanRyseghem/numbro#745
This reverts commit f8934b8. Using a format string of '0' does not round to the nearest integer in Numbro BenjaminVanRyseghem/numbro#745 Co-authored-by: github-actions <[email protected]> Co-authored-by: Guido Petri <[email protected]>
numeraljs is no longer maintained, and incorrectly parses high-precision floats (such as 1.2e-7) as NaN.
What type of PR is this?
Description
How is this tested?
Mobile & Desktop Screenshots/Recordings (if there are UI changes)
Current behavior using numeral.js
New behavior using numbro.js