Fix searchable dropdown race condition when typing fast

What does this MR do and why?

Fix searchable dropdown race condition when typing fast

The debounce function was incorrectly created on every keystroke, causing multiple API calls and stale results. Now the debounced function is created once in created() and reused. I also added a spec to test the gap we had here.

References

Screenshots or screen recordings

Before After
Screenshot_2025-12-07_at_17.22.22 Screenshot_2025-12-07_at_17.24.53

How to set up and validate locally

  1. Visit the search page http://127.0.0.1:3000/search
  2. search and try to filter results by group or project

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Tomas Bulva

Merge request reports

Loading