Skip to content

feat: add debounce logic to autocomplete and filter search #510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 11, 2025

Conversation

k-gerner
Copy link
Contributor

@k-gerner k-gerner commented Apr 11, 2025

This adds debouncing to the autocomplete and filter search calls. Currently, this is set to 200ms. This means that we will not fire autocomplete or filter search requests until 200ms has elapsed since the last keystroke, in order to save on unnecessary queries while the user is still actively typing. This number was chosen based on the average typing speed being roughly 4-5 characters per second.

The relevant tests were modified by adding intentional pauses during execution of some tests, in order to allow the debouncing logic to have time to execute

J=WAT-4708

@k-gerner k-gerner requested a review from a team as a code owner April 11, 2025 00:26
Copy link
Contributor

github-actions bot commented Apr 11, 2025

Current unit coverage is 92.07173194903257%
Current visual coverage is 79.19642857142857%
Current combined coverage is 92.54716981132076%

@coveralls
Copy link

coveralls commented Apr 11, 2025

Coverage Status

coverage: 87.83% (+0.08%) from 87.746%
when pulling e265986 on dev/debounce-autocomplete-filtersearch
into 055c51d on hotfix/v1.8.3.

@k-gerner k-gerner merged commit c231b25 into hotfix/v1.8.3 Apr 11, 2025
20 checks passed
@k-gerner k-gerner deleted the dev/debounce-autocomplete-filtersearch branch April 11, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants