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

Cancel underlying query when switching context in Kibana or old query is replaced #17845

Closed
alexfrancoeur opened this issue Apr 23, 2018 · 1 comment · Fixed by #42035
Closed
Labels
enhancement New value added to drive a business result Feature:Search Querying infrastructure in Kibana

Comments

@alexfrancoeur
Copy link

alexfrancoeur commented Apr 23, 2018

We see a number of users changing context to move to Discover or even another dashboard while an underlying search is still being queried. If you are switching context and the underlying query is no longer relevant, we should automatically cancel that query.

There are also other scenarios when a query will become unnecessary, because it's replaced by a different query, e.g. you resize a visualization. That should cancel the previous running query in case a new query is executed due to the resize.

Utilizing the new ability to associate an ID with tasks (elastic/elasticsearch#27764) and the task management API, we should be able to automatically cancel a running query if the context has changed.

Related to #14544, #17265, #17844, #17846, elastic/elasticsearch#43332

@alexfrancoeur
Copy link
Author

Related to:
[Management] List / Terminate Running Tasks #18829
add search ids to requests made to elasticsearch #16493

@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed :Discovery labels Sep 16, 2018
@timroes timroes changed the title Cancel underlying query when switching context in Kibana Cancel underlying query when switching context in Kibana or old query is replaced Jan 28, 2019
@timroes timroes added :AppArch and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Search Querying infrastructure in Kibana
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants