hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.05k stars 4.42k forks source link

bad search and sorting of box versions on https://app.vagrantup.com #13251

Open peterdd opened 11 months ago

peterdd commented 11 months ago

Please

  1. Fix sorting of box versions: 15.5.10.117 is newer and current version than 15.5.10.94 of opensuse leap 15.5
  2. Improve search 2.1 Match search words in box title string: pseudosql: ... where box.title ilike '%word1placeholder% and box.title ilike '%word2placeholder%' and ... 2.2 Eventually prefer exact account name matches like opensuse, debian, generic, bento
  3. Add a real pagination navigation for the result list containing: count of results, position of the pagination.

Related: https://github.com/openSUSE/vagrant/issues/48

Reproduction information

Current behavior of https://app.vagrantup.com/boxes/search

Steps to reproduce

  1. Search for 'opensuse leap 15.5' on https://app.vagrantup.com/boxes/search

  2. Resultlist should show all leap 15.5 boxes, but only one result is shown. The account 'opensuse' should be even more prominent in the result list. vagrantup_unsufficientsearchresult Pressing the 'Next' button ends with a no result message which is wrong. The logic should be a tiny bit more clever to figure it out if there are n-results<'pagination size' at least to hide the next button or fallback to first page or something similiar. Showing the 'select count(*)' and the current page number of the pagination can also help there. vagrantup_noresultbut1result

  3. Search for 'opensuse leap' on https://app.vagrantup.com/boxes/search, Sorting 'Recently Updated'

  4. Resultlist should now show up with opensuse official leap 15.5 versions. But it lists the old 15.5.0.94 there instead of current uploaded 15.5.10.117 But as it can be seen, there exist boxes of official opensuse account that have 'opensuse', 'leap', and '15.5' in their title: vagrantup_leaponly

  5. Open https://app.vagrantup.com/opensuse/boxes/Leap-15.5.x86_64

  6. The real current version is listed at the bottom, while 15.5.0.94 is at top and marked as current version. vagrantup_oldcurrentversion