You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the UI and search for packages, or when I use the API, I would like to see results of package lists sorted by version from newest to oldest. Same for vulnerabilities, from newest to oldest.
Why? because I am more likely to be interested by recent and current versions than older versions and older vulnerabilities.
The text was updated successfully, but these errors were encountered:
pombredanne
changed the title
In UI and API, sorts packages by version from newest to oldest, and vulnerabilities too
In UI and API, sort packages and vulnerabilities from newest to oldest.
Jan 21, 2025
Hi @pombredanne , I have made some changes and testing them on my local server I have firstly imported some packages and vulnerability data and then runned python3 manage.py improve compute_version_rank imporover in order to assign the the version ranking to the packages.
After that I have impletelemented some changes in the views.py (https://gist.github.com/Rishi-source/25e42438c87c26c3b7d1324bba60609f) and I have got these results I am sharing a screenshot of the ordering of the results after implementing these changes which I have provided in the gist.
Please correct me If I am wrong at some point. I also want to ask that have I correctly sorted the vulnerability data on the basis of vulnerability_id or I have to use/make some other field in order to sort them.
When I use the UI and search for packages, or when I use the API, I would like to see results of package lists sorted by version from newest to oldest. Same for vulnerabilities, from newest to oldest.
Why? because I am more likely to be interested by recent and current versions than older versions and older vulnerabilities.
The text was updated successfully, but these errors were encountered: