Vendor intl NumberFormat#1269
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1269 +/- ##
==========================================
+ Coverage 88.67% 90.94% +2.26%
==========================================
Files 136 158 +22
Lines 4187 5058 +871
==========================================
+ Hits 3713 4600 +887
+ Misses 474 458 -16
... and 59 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
@marandaneto I randomly generated numbers to see if the formatting is the same. I have encountered an oddity from number formatter, where the 16th place after the decimal is rounded up/down. See below for a comparison. To me it looks that
|
|
Opted to vendor all the needed files with just minimal changes in the imports and folder structure. It's a lot of code just to get the exact same result as before on the 16th place after the comma. I'm not sure if this is worth it TBH. |
I get the trade off and is indeed a lot of code, but if using the previous implementation, we need to be sure that we are not running into rounding issues, the output should be the same as the |
|
@marandaneto Only thing we could try is to generate a larger number of random sample values in the tests, including |
mmm, the question is if we can avoid the routing error, unless |
| /// Implementation details from `intl` package | ||
| /// https://pub.dev/packages/intl |
There was a problem hiding this comment.
@chadwhitacre I'd like to double check if this is fine, License https://github.com/dart-lang/intl/blob/master/LICENSE BSD 3
Should we copy the license text on top of this file?
There was a problem hiding this comment.
Yes, we actually just clarified the policy around this🔒 (in getsentry/open-source-pledge#120):
- Separate file
- Link to where we got it (attribution)
- Include license text in file header
There was a problem hiding this comment.
@denrase lets do this then, make CI happy and merge it.
|
@marandaneto I have some weird behaviour. Since the code is from |
|
@marandaneto I was mistaken, the test with |
That's fine then, its similar to how it was before, let's compare the output of the |
Co-authored-by: Manoel Aranda Neto <[email protected]>
|
@marandaneto I'm not sure why this would fail here. AFAIK the code changes are not related to this test. |
I already merged main into this branch, this is due to a new |


#skip_changelog
📜 Description
#skip-changelog
Closes #1241
💡 Motivation and Context
Implement specific method to format sample rate.
💚 How did you test it?
Unit tests with data created form
NumberFormatoutput.📝 Checklist
sendDefaultPiiis enabled🔮 Next steps
We could come up with more input/output string combinations.