Repository navigation
Downloads graph should show most popular versions, not most recent #4336
Replies: 7 comments 2 replies
|
Similar issue for ring right now: (Five alpha versions shown, where 80% of downloads are on the latest stable version.) |
|
The main issue here is that we can't easily determine the "most popular" versions efficiently. We could certainly add a layer of caching to do this, like we did for crates, but I don't know if it's worth doing that for what should be a minority case. I also think that "the most recent version isn't the one people are using" is something that is useful to show. What if we made sure that pre-release versions always go in "other"? |
|
That definitely sounds like an improvement, at least. |
|
Regarding pre-release versions, sometimes projects publish them for a long time, making the ecosystem depend on them instead of proper releases.
I think it happens more often than one thinks. Very often, crates have semver breaking versions 0.2x, 0.3.x, and users are distributed among those semver branches. Often, those users run This is observable in my lewton crate for example, where Other is a significant category, while 0.10.0 and 0.9.0 are barely used, but Other is quite significant: As a result, I don't know whether the 0.8.x branch is in use, or 0.7.x, or even older branches. IMO the ideal solution to resolve @sgrif 's concerns that the most recent version should be shown would be to always include the latest N versions (say latest 2), and fill the remaining 5-N versions with a ranking of most downloads, but still order them by semver ordering. |
|
This is still as much an issue for SuggestionI suggest always showing the following (where they exist):
That's a maximum of seven plots, of which at most two will use pre-release versions. AlternativeHide pre-releases older than the latest non-pre-release, both on the graph and on the crate-versions page, adding a checkbox to "Show all versions". |
This comment was marked as spam.
This comment was marked as spam.
|
Hey to whoever marked #4336 (comment) as spam - there's real analysis in that. human in the loop, realistic validated conclusions with data that measured the impact of the suggestions for what to show instead of the latest 5 options, as well as a few extra options to see if there were any significantly better ideas for displaying this data. The methodology is based on actual significant amounts of data. Anyway, the result is that the best result came from choosing the top 6 by download count with a preference to show stable rather than pre-release versions generally. |



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Consider: https://crates.io/crates/rand/versions
The plot currently includes three pre-release versions (0.5.0-pre.*) with very low usage, plus two versions (0.4.2, 0.5.0) accounting for maybe 60% of usage. The older 0.3.22 (still approx 40% usage) isn't even shown.
(Yes, I know it's possible to browse by individual versions, e.g. https://crates.io/crates/rand/0.3.22 )
All reactions