-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Discover] Migrate async import of embeddable factory to embeddable class #70920
Merged
kertal
merged 3 commits into
elastic:master
from
kertal:kertal-pr-2020-06-07-discover-improve-embeddable-async-import
Jul 13, 2020
Merged
[Discover] Migrate async import of embeddable factory to embeddable class #70920
kertal
merged 3 commits into
elastic:master
from
kertal:kertal-pr-2020-06-07-discover-improve-embeddable-async-import
Jul 13, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kertal
added
Feature:Discover
Discover Application
release_note:fix
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
v8.0.0
v7.9.0
v7.8.2
labels
Jul 7, 2020
@elasticmachine merge upstream |
…ddable-async-import
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
…ddable-async-import
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / kibana-xpack-agent / Kibana Embedded in iframe with X-Pack Security.x-pack/test/functional_embedded/tests/iframe_embedded·ts.Kibana embedded in iframe should open Kibana for logged-in userStandard Out
Stack Trace
Build metrics@kbn/optimizer bundle module count
History
To update your PR or re-run it, just comment with: |
flash1293
approved these changes
Jul 13, 2020
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.
Tested in FF and works as expected even with delay in front of the new dynamic import. LGTM
kertal
added a commit
to kertal/kibana
that referenced
this pull request
Jul 13, 2020
kertal
added a commit
to kertal/kibana
that referenced
this pull request
Jul 13, 2020
…dable (elastic#70920) # Conflicts: # src/plugins/discover/public/application/embeddable/index.ts # src/plugins/discover/public/application/embeddable/search_embeddable.ts # src/plugins/discover/public/application/embeddable/search_embeddable_factory.ts # src/plugins/discover/public/application/embeddable/types.ts # src/plugins/discover/public/plugin.ts
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Jul 13, 2020
* master: (28 commits) skip flaky suite (elastic#71361) [Ingest Manager] Add UI to enroll standalone agent (elastic#71288) Node options from cfg file for production (elastic#62468) [APM] Improvements to the ML Settings page (elastic#71309) add old .chromium to gitignore to prevent it from being accidentally committed [Ingest Manager] Simplify add/edit package config (integration) form (elastic#71187) Ensure Other bucket works on scripted fields. (elastic#71329) [APM] Anomaly detection setup link with alert if job doesn't exist (elastic#71229) [APM] Anomaly detection integration with transaction duration chart (elastic#71230) inclusive language (elastic#71438) [Ingest Manager] During fleet setup create an enrollment for every config (elastic#71308) Improvements to our developer guide (elastic#67764) [SIEM][Detections] Fixes index patterns order (elastic#71270) [Metrics + Logs UI] Add test for logs and metrics telemetry (elastic#70858) [Maps] Inclusive language (elastic#71427) [Logs UI] Unskip log highlight api integration test (elastic#71058) [Security_Solution][Resolver] Style adjustments per UX (elastic#71179) [Functional test] Increase the timeout to click new vis function (elastic#71226) [Discover] Migrate async import of embeddable factory to actual embeddable (elastic#70920) fix overflow (elastic#70723) ...
kertal
added a commit
that referenced
this pull request
Jul 13, 2020
kertal
added a commit
that referenced
this pull request
Jul 13, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature:Discover
Discover Application
release_note:fix
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
v7.8.2
v7.9.0
v8.0.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Prevent a potential race condition when registering the Embeddable by migrating the import of the factory class from async to sync, while importing the Embeddable itself to async import so it's done on demand.
Fixes #70470
Testing
You can reproduce the race condition by adding a delay in the
registerEmbeddable
function of the Discover pluginThis will lead to the following screen on a dashboard containing a saved search
Since the new implementation isn't importing async, this can't happen
Checklist
Delete any items that are not applicable to this PR.
For maintainers