-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Elasticsearch: Queries no longer executed while typing #87652
Conversation
Even if this implementation doesn't fully work, the fix is around this code and doesn't look too complex. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
0ea1176
to
1bc5b81
Compare
onChange(query); | ||
onRunQuery(); | ||
if (query.query === prevQuery.query || prevQuery.query === undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anecdotically, running the query when it was previously undefined was required to make a test case pass, which was the correct implementation. This highlights again how important is to have quality unit tests, not only to prevent regressions, but to allow for refactors that don't break functionality.
7f1b2be
to
11bb5e4
Compare
With this change, the query is no longer immediately run while it's being typed. This was a simple way, without a bigger impact, to achieve this result.
Which issue(s) does this PR fix?:
Fixes #79463
Special notes for your reviewer:
Please check that:
Demo:
Demo.mov