[maps] fix geo line source not loaded unless maps application is opened#159432
[maps] fix geo line source not loaded unless maps application is opened#159432nreese merged 10 commits intoelastic:mainfrom
Conversation
…-ref HEAD~1..HEAD --fix'
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
ThomThomson
left a comment
There was a problem hiding this comment.
Reproduced this with the instructions from the issue, then switched to your branch and it's fixed! This is also a nice cleanup, and I especially appreciate the test to cover the registry. I left a couple tiny nits but LGTM!
| getMapsCapabilities() { | ||
| return { save: true }; | ||
| }, | ||
| getEMSSettings() { |
There was a problem hiding this comment.
nit: I wonder if it's possible to have a common / default mock of the kibana_services so that you don't need to update so many files every time something new needs to be added.
There was a problem hiding this comment.
I am not sure since you can not include variables inside mocked import scope.
There was a problem hiding this comment.
Definitely not something to change in this PR (potentially not something to change at all), but we usually do it in Dashboard by providing a sensible default for the mock in jest_setup example. Then for any test that needs a variable injected we override the service with a jest.fn() example.
It works pretty well, but I'm not sure how easily that would be applicable to the maps service infrastructure.
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…ed (elastic#159432) closes elastic#159408 PR consolidates source registry into a single file to ensure that all sources are registered when only map embeddable is loaded. To prevent regression, unit test added to ensure that all SOURCE_TYPES enum values are contained in registry. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit cb7c5b3)
…ed (elastic#159432) closes elastic#159408 PR consolidates source registry into a single file to ensure that all sources are registered when only map embeddable is loaded. To prevent regression, unit test added to ensure that all SOURCE_TYPES enum values are contained in registry. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit cb7c5b3)
…ed (elastic#159432) closes elastic#159408 PR consolidates source registry into a single file to ensure that all sources are registered when only map embeddable is loaded. To prevent regression, unit test added to ensure that all SOURCE_TYPES enum values are contained in registry. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
|
8.8 backport #159532 |
* main: (199 commits) [Lens] Add custom formatter within the Lens editor (elastic#158468) [Uptime] Hide app if no data is available (elastic#159118) [CodeEditor] Add grok highlighting (elastic#159334) Expose decoded cloudId components from the cloud plugin's contract (elastic#159442) [Profiling] Use collector and symbolizer integrations in the add data page (elastic#159481) [Infrastructure UI] Hosts View: Unified Search bar with auto-refresh enabled (elastic#157011) [APM] Add feature flag for not available apm schema (elastic#158911) [Lens] Remove deprecated componentWillReceiveProps usage (elastic#159502) [api-docs] 2023-06-13 Daily api_docs build (elastic#159536) [data views] Use versioned router for REST routes (elastic#158608) [maps] fix geo line source not loaded unless maps application is opened (elastic#159432) [Enterprise Search][Search application]Fix Create Api key url (elastic#159519) [Security Solution] Increase timeout for indexing hosts (elastic#159518) dashboard Reset button disable (elastic#159430) [Security Solution] Unskip Endpoint API tests after package fix (elastic#159484) [Synthetics] adjust alert timing (elastic#159511) [ResponseOps][rule registry] Remove usages of `refresh: true` (elastic#159252) Revert "Remove unused package (elastic#158597)" [Serverless] Adding config to disable authentication on task manager background worker utilization API (elastic#159505) Remove unused package (elastic#158597) ...
closes #159408
PR consolidates source registry into a single file to ensure that all sources are registered when only map embeddable is loaded. To prevent regression, unit test added to ensure that all SOURCE_TYPES enum values are contained in registry.