compiler-explorer / conanproxy

Nodejs proxy in front of conanserver

Repository from Github https://github.comcompiler-explorer/conanproxyRepository from Github https://github.comcompiler-explorer/conanproxy

Sort usage data better

partouf opened this issue · comments

It's now displayed semi-sorted, because it's initially sorted but then we sum up all versions usages per library. Depending on how many versions and how much the library is used, some will bump up or down a spot here and there.

It should be re-sorted after being summed and filtered. (after this point https://github.com/compiler-explorer/conanproxy/blob/main/html/usage.html#L104)

Example of what is now shown:
Screenshot from 2022-08-31 02-58-35

DO you wish to have the libraries in alphabetical order?

DO you wish to have the libraries in alphabetical order?

No, I don't think that makes much sense. I would like it to be sorted on usage count.

On usage count, meaning if ascending order, the histogram skews from zero to the highest count. then on descending it skews from highest to zero.

On usage count, meaning if ascending order, the histogram skews from zero to the highest count. then on descending it skews from highest to zero.

Descending makes most sense here, I think.
Ascending would mean to include the < 20 again, so that would complicate things.
And having it an option/button to change sorting seems a bit overkill.

Achieving both for me doesn't need much logic and here is a pictorial view of both

Sorting in descending order
image

sorting in ascending order

image

but for now the libraries remain static. would figure that out to know why it doesn't sort along side with the usage data

Found the issue. would you wish I work on this by assigning it to me?

Found the issue. would you wish I work on this by assigning it to me?

Sure, thanks!

Change is now live, thanks!