Skip to content

Prevent search for when under 3 characters

Peter Hegman requested to merge peterhegman/search-less-than-3-characters into master

What does this MR do and why?

Follow-up to !100433 (comment 1138668413). For performance reasons the search does not return any results under 3 characters. This MR updates the search input so that it doesn't call the API under 3 characters.

Screenshots or screen recordings

Before After
Screen_Recording_2022-10-24_at_1.40.25_PM Screen_Recording_2022-10-24_at_12.33.32_PM

How to set up and validate locally

  1. Enable group_overview_tabs_vue feature flag
    • bin/rails console
    • Feature.enable(:group_overview_tabs_vue)
  2. Go to a group overview. e.g http://gdk.test:3000/flightjs
  3. Search in the first tab

MR acceptance checklist

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

Edited by Peter Hegman

Merge request reports