Skip to content

Change the order of search autocomplete items

Dmitry Gruzd requested to merge 361520-search-autocomplete-fix-sort-order into master

What does this MR do and why?

In !93106 (merged) we inadvertently changed the order of the results from SearchController#autocomplete. This MR restores the original ordering, so that Recent items go before the rest of the results.

Screenshots or screen recordings

before after
SCR-20220801-q00 SCR-20220801-q08

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Change the titles of a project and an issue to include a specific term (test for example)
  2. Type test in the search field at the navbar
  3. Recent issues should be located before the project

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #361520 (closed)

Edited by Dmitry Gruzd

Merge request reports

Loading