Skip to content

Enforce a character limit of 2 in autocomplete search

Madelein van Niekerk requested to merge 403325-min-char-in-autocomplete into master

What does this MR do and why?

From Add min char limitation to search autocomplete ... (#403325 - closed):

Enforce the min character limit for resources autocomplete data since that hits the database and Elasticsearch. The search_autocomplete_opts method has three filter types (search, generic, and default) which return a variety of data.

Screenshots or screen recordings

Before

Now

How to set up and validate locally

  1. Type 1 character into the search bar and note that nothing is returned for projects, groups, issues and users.
  2. Type 2 characters into the search bar and note that results are returned for projects, groups, issues and users.
  3. Type 3 characters into the search bar and note that results are returned for projects, groups, issues and users.

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 #403325 (closed)

Edited by Madelein van Niekerk

Merge request reports

Loading