Limit data returned from quick-search API requests.

Review Request #12484 — Created July 25, 2022 and submitted

Information

Review Board
release-5.0.x

Reviewers

The search box in the upper right uses the search API for its
auto-complete. This was just doing the API request with the query and
then pulling out the information it needs, but the results from that API
request includes a whole lot of stuff that we really don't care about.
This change adds limiting to that API request so we only get the data
which is used to display the search results in the drop-down, along with
the URL.

  • Did a bunch of quick searches to verify that review requests, users,
    and groups were all displayed correctly and opened the correct URLs
    when clicked.
  • Ran js-tests.
Summary ID
Limit data returned from quick-search API requests.
The search box in the upper right uses the search API for its auto-complete. This was just doing the API request with the query and then pulling out the information it needs, but the results from that API request includes a whole lot of stuff that we really don't care about. This change adds limiting to that API request so we only get the data which is used to display the search results in the drop-down, along with the URL. Testing Done: - Did a bunch of quick searches to verify that review requests, users, and groups were all displayed correctly and opened the correct URLs when clicked. - Ran js-tests.
713d0452c45830e62617b166a4c56a298c2e9f31
chipx86
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.0.x (bd22205)