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

Fix "Dashboard doesn't display results if user navigates to open dashboard from discover" - Option 1 #64998

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented May 1, 2020

Summary

This fixes: #64709
by backporting: #63320
and functional test from: #64964

Option 2 fix with less file changes

Explanation:

In 7.7 branch both courier:enableBatch: true / false are going through this code path:
https://github.com/elastic/kibana/blob/7.7/src/plugins/data/public/search/fetch/fetch_soon.ts#L64

In case of courier:enableBatch: false ms = 0. The assumption was that no request grouping could happen, but if requests were fired in scope of one micro task, then we still were batching requests. (delay used setTimeout).

This was causing problems in case of request cancelations. If 1 request in group was canceled, we were canceling other requests also.

For example. in this dashboard, https://github.com/elastic/kibana/files/4558779/minimal.reproduction.zip, bar chart canceled pie chart's requests.

This backport is making courier:enableBatch: false search to not get into fetchSoon at all.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

LeeDr and others added 6 commits April 30, 2020 16:03
* move old code to legacy folder

* Use search service directly from search source

* Move get search params to fetch folder

* Delete search strategy folder

* Doc update

* Minor cleanups

* Moved es client to legacy folder

* Clean up some unused code (isViable, old search function)

* Updated tests

* strings update

* Fix jest test

* re-arrange runSearch function

* re-arrange runSearch function

* fix jest tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/data/public/search/search_service.ts
#	src/plugins/data/public/search/search_source/search_source.test.ts
#	src/plugins/data/public/search/search_source/search_source.ts
#	x-pack/legacy/plugins/rollup/public/search/rollup_search_strategy.ts
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@Dosant Dosant added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes labels May 1, 2020
@Dosant Dosant requested review from lukasolson and LeeDr May 1, 2020 11:07
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Dosant
Copy link
Contributor Author

Dosant commented May 4, 2020

Closing in favor of: #64999

@Dosant Dosant closed this May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Search Querying infrastructure in Kibana release_note:skip Skip the PR/issue when compiling release notes v7.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants