-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Show download count info in release list #10124
Show download count info in release list #10124
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10124 +/- ##
==========================================
+ Coverage 43.38% 43.4% +0.01%
==========================================
Files 576 576
Lines 79623 79623
==========================================
+ Hits 34548 34560 +12
+ Misses 40794 40785 -9
+ Partials 4281 4278 -3
Continue to review full report at Codecov.
|
abba5b7
to
fbc1fa2
Compare
How does this compare to https://github.com/dustin/go-humanize/blob/master/comma.go#L11-L44? It doesn't need to handle negative numbers in the context of this PR (https://play.golang.org/p/5wF98ePRPc-) but perhaps it would be nice to have so we can re-use this function in other areas? |
fbc1fa2
to
9003512
Compare
I did not want to add new library just for this but it could probably be useful also in other places |
Yes, agreed we don't need that whole library. Maybe just extending it to negatives, if possible? iirc there is an issue for humanizing diff counts, which is the only thing I can think of with negatives but I'm sure there are more. |
Actually it is second function already so I just added go-humanize ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nit and question, otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice - you only have to edit the tests
8beb882
to
265497d
Compare
Fixes #9265