Skip to content
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

Support cancellation of ajax requests for search for outdated search query #26

Open
luceos opened this issue Oct 15, 2021 · 0 comments
Open

Comments

@luceos
Copy link
Member

luceos commented Oct 15, 2021

Bug Report

Current Behavior

Whenever you do a search and the search query is more or equal than three characters it will dispatch an ajax request to all search sources after 250ms. By default these are two: discussions and users.

Each next mutation of the search query will add two new ajax requests. Because we do not keep track of the previously triggered ajax requests we do not cancel those.

Expected Behavior

Ajax requests for older query search should be cancelled to preserve server capacity.

Environment

  • Flarum version: v1.1.0
@askvortsov1 askvortsov1 transferred this issue from flarum/framework Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant