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

[Timelion] Communicate the index pattern to the dashboard #90623

Merged
merged 10 commits into from
Feb 11, 2021

Conversation

alexwizp
Copy link
Contributor

@alexwizp alexwizp commented Feb 8, 2021

Closes #86418

Summary

Describe the feature:

We want the timelion visualization to communicate its index patterns to the dashboard in order for the dashboard filters to work. Right now, if I have a dashboard with timelion visualizations that don't use the default index pattern, the filters don't work correctly as they only allow the users to filter by the default index pattern and not the actual index pattern.

Screenshot 2020-12-18 at 10 17 31 AM

Here, I have a timelion vis with a non default index pattern, but this is not communicated to the filters. Filters only display fields from the default one.

Other notes:

  • /src/plugins/vis_type_timelion/public/_generated_/ was moved to /src/plugins/vis_type_timelion/common/_generated_/;
  • instead of runtime generating a peg code on NodeJS side now we using the same approach as we used for client code;
  • types were improved and unified.

@alexwizp
Copy link
Contributor Author

alexwizp commented Feb 9, 2021

@elasticmachine merge upstream

@alexwizp alexwizp self-assigned this Feb 9, 2021
@alexwizp alexwizp added v7.12.0 v8.0.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Timelion Timelion app and visualization release_note:enhancement labels Feb 9, 2021
@alexwizp alexwizp marked this pull request as ready for review February 9, 2021 12:39
@alexwizp alexwizp requested a review from a team February 9, 2021 12:39
@alexwizp alexwizp requested a review from a team as a code owner February 9, 2021 12:39
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Member

@jbudz jbudz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file sizes LGTM

@alexwizp
Copy link
Contributor Author

alexwizp commented Feb 9, 2021

@elasticmachine merge upstream

@alexwizp
Copy link
Contributor Author

alexwizp commented Feb 9, 2021

@elasticmachine merge upstream

Copy link
Contributor

@VladLasitsa VladLasitsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexwizp
Copy link
Contributor Author

@elasticmachine merge upstream

@stratoula
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested locally in Chrome. Index pattern is now communicated correctly

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome UI Functional Tests.test/functional/apps/console/_console·ts.console app console app "before all" hook for "should show the default request"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: console app
[00:00:00]           └-> "before all" hook in "console app"
[00:00:00]           └-> "before all" hook in "console app"
[00:00:00]           └-: console app
[00:00:00]             └-> "before all" hook for "should show the default request"
[00:00:00]             └-> "before all" hook for "should show the default request"
[00:00:00]               │ debg navigateTo console
[00:00:00]               │ debg navigating to console url: http://localhost:6181/app/dev_tools#/console
[00:00:00]               │ debg navigate to: http://localhost:6181/app/dev_tools#/console
[00:00:00]               │ debg browser[INFO] http://localhost:6181/app/dev_tools?_t=1613035232158#/console 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:00]               │
[00:00:00]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:00]               │ debg ... sleep(700) start
[00:00:01]               │ debg ... sleep(700) end
[00:00:01]               │ debg returned from get, calling refresh
[00:00:03]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:158464 Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE].
[00:00:03]               │          at ui_actions_service_UiActionsService.attachAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:39479)
[00:00:03]               │          at ui_actions_service_UiActionsService.addTriggerAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:40258)
[00:00:03]               │          at plugin_DataPublicPlugin.setup (http://localhost:6181/40372/bundles/plugin/data/data.plugin.js:8:193639)
[00:00:03]               │          at plugin_PluginWrapper.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:196514)
[00:00:03]               │          at plugins_service_PluginsService.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:200348)
[00:00:03]               │          at core_system_CoreSystem.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:273253)
[00:00:03]               │          at async Module.__kbnBootstrap__ (http://localhost:6181/40372/bundles/core/core.entry.js:13:279379)
[00:00:03]               │ debg browser[INFO] http://localhost:6181/app/dev_tools?_t=1613035232158#/console 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:03]               │
[00:00:03]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:03]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:158464 Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE].
[00:00:03]               │          at ui_actions_service_UiActionsService.attachAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:39479)
[00:00:03]               │          at ui_actions_service_UiActionsService.addTriggerAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:40258)
[00:00:03]               │          at plugin_DataPublicPlugin.setup (http://localhost:6181/40372/bundles/plugin/data/data.plugin.js:8:193639)
[00:00:03]               │          at plugin_PluginWrapper.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:196514)
[00:00:03]               │          at plugins_service_PluginsService.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:200348)
[00:00:03]               │          at core_system_CoreSystem.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:273253)
[00:00:03]               │          at async Module.__kbnBootstrap__ (http://localhost:6181/40372/bundles/core/core.entry.js:13:279379)
[00:00:03]               │ debg browser[INFO] http://localhost:6181/40372/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 397:79790 "Version 9 of Highlight.js has reached EOL and is no longer supported.
[00:00:03]               │      Please upgrade or ask whatever dependency you are using to upgrade.
[00:00:03]               │      https://github.com/highlightjs/highlight.js/issues/2877"
[00:00:03]               │ debg browser[INFO] http://localhost:6181/40372/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:00:03]               │      Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE]."
[00:00:03]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:279522 Uncaught Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exis…ttaching action [actionId = ACTION_SELECT_RANGE].
[00:00:03]               │ debg currentUrl = http://localhost:6181/app/dev_tools#/console
[00:00:03]               │          appUrl = http://localhost:6181/app/dev_tools#/console
[00:00:03]               │ debg TestSubjects.find(kibanaChrome)
[00:00:03]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:03]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:01:03]               │      Wait timed out after 60105ms
[00:01:04]               │ debg navigate to: http://localhost:6181/app/dev_tools#/console
[00:01:04]               │ debg browser[INFO] http://localhost:6181/app/dev_tools?_t=1613035296257#/console 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:04]               │
[00:01:04]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:04]               │ debg ... sleep(700) start
[00:01:05]               │ debg ... sleep(700) end
[00:01:05]               │ debg returned from get, calling refresh
[00:01:06]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:158464 Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE].
[00:01:06]               │          at ui_actions_service_UiActionsService.attachAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:39479)
[00:01:06]               │          at ui_actions_service_UiActionsService.addTriggerAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:40258)
[00:01:06]               │          at plugin_DataPublicPlugin.setup (http://localhost:6181/40372/bundles/plugin/data/data.plugin.js:8:193639)
[00:01:06]               │          at plugin_PluginWrapper.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:196514)
[00:01:06]               │          at plugins_service_PluginsService.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:200348)
[00:01:06]               │          at core_system_CoreSystem.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:273253)
[00:01:06]               │          at async Module.__kbnBootstrap__ (http://localhost:6181/40372/bundles/core/core.entry.js:13:279379)
[00:01:06]               │ debg browser[INFO] http://localhost:6181/app/dev_tools?_t=1613035296257#/console 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:06]               │
[00:01:06]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:06]               │ debg currentUrl = http://localhost:6181/app/dev_tools#/console
[00:01:06]               │          appUrl = http://localhost:6181/app/dev_tools#/console
[00:01:06]               │ debg TestSubjects.find(kibanaChrome)
[00:01:06]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:06]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:158464 Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE].
[00:01:06]               │          at ui_actions_service_UiActionsService.attachAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:39479)
[00:01:06]               │          at ui_actions_service_UiActionsService.addTriggerAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:40258)
[00:01:06]               │          at plugin_DataPublicPlugin.setup (http://localhost:6181/40372/bundles/plugin/data/data.plugin.js:8:193639)
[00:01:06]               │          at plugin_PluginWrapper.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:196514)
[00:01:06]               │          at plugins_service_PluginsService.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:200348)
[00:01:06]               │          at core_system_CoreSystem.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:273253)
[00:01:06]               │          at async Module.__kbnBootstrap__ (http://localhost:6181/40372/bundles/core/core.entry.js:13:279379)
[00:01:06]               │ debg browser[INFO] http://localhost:6181/40372/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 397:79790 "Version 9 of Highlight.js has reached EOL and is no longer supported.
[00:01:06]               │      Please upgrade or ask whatever dependency you are using to upgrade.
[00:01:06]               │      https://github.com/highlightjs/highlight.js/issues/2877"
[00:01:06]               │ debg browser[INFO] http://localhost:6181/40372/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:01:06]               │      Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE]."
[00:01:06]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:279522 Uncaught Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exis…ttaching action [actionId = ACTION_SELECT_RANGE].
[00:02:06]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:06]               │      Wait timed out after 60021ms
[00:02:06]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:06]               │      Wait timed out after 60021ms
[00:02:06]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:02:06]               │          at runMicrotasks (<anonymous>)
[00:02:06]               │          at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:02:07]               │ debg navigate to: http://localhost:6181/app/dev_tools#/console
[00:02:07]               │ debg browser[INFO] http://localhost:6181/app/dev_tools?_t=1613035359297#/console 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:07]               │
[00:02:07]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:07]               │ debg ... sleep(700) start
[00:02:08]               │ debg ... sleep(700) end
[00:02:08]               │ debg returned from get, calling refresh
[00:02:08]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:158464 Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE].
[00:02:08]               │          at ui_actions_service_UiActionsService.attachAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:39479)
[00:02:08]               │          at ui_actions_service_UiActionsService.addTriggerAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:40258)
[00:02:08]               │          at plugin_DataPublicPlugin.setup (http://localhost:6181/40372/bundles/plugin/data/data.plugin.js:8:193639)
[00:02:08]               │          at plugin_PluginWrapper.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:196514)
[00:02:08]               │          at plugins_service_PluginsService.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:200348)
[00:02:08]               │          at core_system_CoreSystem.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:273253)
[00:02:08]               │          at async Module.__kbnBootstrap__ (http://localhost:6181/40372/bundles/core/core.entry.js:13:279379)
[00:02:08]               │ debg browser[INFO] http://localhost:6181/40372/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 397:79790 "Version 9 of Highlight.js has reached EOL and is no longer supported.
[00:02:08]               │      Please upgrade or ask whatever dependency you are using to upgrade.
[00:02:08]               │      https://github.com/highlightjs/highlight.js/issues/2877"
[00:02:08]               │ debg browser[INFO] http://localhost:6181/40372/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:02:08]               │      Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE]."
[00:02:08]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:279522 Uncaught Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exis…ttaching action [actionId = ACTION_SELECT_RANGE].
[00:02:08]               │ debg browser[INFO] http://localhost:6181/app/dev_tools?_t=1613035359297#/console 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:08]               │
[00:02:08]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:08]               │ debg currentUrl = http://localhost:6181/app/dev_tools#/console
[00:02:08]               │          appUrl = http://localhost:6181/app/dev_tools#/console
[00:02:08]               │ debg TestSubjects.find(kibanaChrome)
[00:02:08]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:09]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:158464 Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE].
[00:02:09]               │          at ui_actions_service_UiActionsService.attachAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:39479)
[00:02:09]               │          at ui_actions_service_UiActionsService.addTriggerAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:40258)
[00:02:09]               │          at plugin_DataPublicPlugin.setup (http://localhost:6181/40372/bundles/plugin/data/data.plugin.js:8:193639)
[00:02:09]               │          at plugin_PluginWrapper.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:196514)
[00:02:09]               │          at plugins_service_PluginsService.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:200348)
[00:02:09]               │          at core_system_CoreSystem.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:273253)
[00:02:09]               │          at async Module.__kbnBootstrap__ (http://localhost:6181/40372/bundles/core/core.entry.js:13:279379)
[00:02:09]               │ debg browser[INFO] http://localhost:6181/40372/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 397:79790 "Version 9 of Highlight.js has reached EOL and is no longer supported.
[00:02:09]               │      Please upgrade or ask whatever dependency you are using to upgrade.
[00:02:09]               │      https://github.com/highlightjs/highlight.js/issues/2877"
[00:02:09]               │ debg browser[INFO] http://localhost:6181/40372/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:02:09]               │      Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE]."
[00:02:09]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:279522 Uncaught Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exis…ttaching action [actionId = ACTION_SELECT_RANGE].
[00:03:08]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:03:08]               │      Wait timed out after 60134ms
[00:03:09]               │ debg navigate to: http://localhost:6181/app/dev_tools#/console
[00:03:09]               │ debg browser[INFO] http://localhost:6181/app/dev_tools?_t=1613035421070#/console 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:03:09]               │
[00:03:09]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:09]               │ debg ... sleep(700) start
[00:03:09]               │ debg ... sleep(700) end
[00:03:09]               │ debg returned from get, calling refresh
[00:03:10]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:158464 Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE].
[00:03:10]               │          at ui_actions_service_UiActionsService.attachAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:39479)
[00:03:10]               │          at ui_actions_service_UiActionsService.addTriggerAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:40258)
[00:03:10]               │          at plugin_DataPublicPlugin.setup (http://localhost:6181/40372/bundles/plugin/data/data.plugin.js:8:193639)
[00:03:10]               │          at plugin_PluginWrapper.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:196514)
[00:03:10]               │          at plugins_service_PluginsService.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:200348)
[00:03:10]               │          at core_system_CoreSystem.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:273253)
[00:03:10]               │          at async Module.__kbnBootstrap__ (http://localhost:6181/40372/bundles/core/core.entry.js:13:279379)
[00:03:10]               │ debg browser[INFO] http://localhost:6181/40372/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 397:79790 "Version 9 of Highlight.js has reached EOL and is no longer supported.
[00:03:10]               │      Please upgrade or ask whatever dependency you are using to upgrade.
[00:03:10]               │      https://github.com/highlightjs/highlight.js/issues/2877"
[00:03:10]               │ debg browser[INFO] http://localhost:6181/40372/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:03:10]               │      Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE]."
[00:03:10]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:279522 Uncaught Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exis…ttaching action [actionId = ACTION_SELECT_RANGE].
[00:03:10]               │ debg browser[INFO] http://localhost:6181/app/dev_tools?_t=1613035421070#/console 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:03:10]               │
[00:03:10]               │ debg browser[INFO] http://localhost:6181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:10]               │ debg currentUrl = http://localhost:6181/app/dev_tools#/console
[00:03:10]               │          appUrl = http://localhost:6181/app/dev_tools#/console
[00:03:10]               │ debg TestSubjects.find(kibanaChrome)
[00:03:10]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:10]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:158464 Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE].
[00:03:10]               │          at ui_actions_service_UiActionsService.attachAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:39479)
[00:03:10]               │          at ui_actions_service_UiActionsService.addTriggerAction (http://localhost:6181/40372/bundles/plugin/uiActions/uiActions.plugin.js:1:40258)
[00:03:10]               │          at plugin_DataPublicPlugin.setup (http://localhost:6181/40372/bundles/plugin/data/data.plugin.js:8:193639)
[00:03:10]               │          at plugin_PluginWrapper.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:196514)
[00:03:10]               │          at plugins_service_PluginsService.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:200348)
[00:03:10]               │          at core_system_CoreSystem.setup (http://localhost:6181/40372/bundles/core/core.entry.js:13:273253)
[00:03:10]               │          at async Module.__kbnBootstrap__ (http://localhost:6181/40372/bundles/core/core.entry.js:13:279379)
[00:03:10]               │ debg browser[INFO] http://localhost:6181/40372/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 397:79790 "Version 9 of Highlight.js has reached EOL and is no longer supported.
[00:03:10]               │      Please upgrade or ask whatever dependency you are using to upgrade.
[00:03:10]               │      https://github.com/highlightjs/highlight.js/issues/2877"
[00:03:10]               │ debg browser[INFO] http://localhost:6181/40372/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:03:10]               │      Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exists, for attaching action [actionId = ACTION_SELECT_RANGE]."
[00:03:10]               │ERROR browser[SEVERE] http://localhost:6181/40372/bundles/core/core.entry.js 12:279522 Uncaught Error: No trigger [triggerId = SELECT_RANGE_TRIGGER] exis…ttaching action [actionId = ACTION_SELECT_RANGE].
[00:04:10]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:10]               │      Wait timed out after 60125ms
[00:04:11]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:11]               │      Wait timed out after 60125ms
[00:04:11]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:11]               │          at runMicrotasks (<anonymous>)
[00:04:11]               │          at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:04:11]               │ info Taking screenshot "/dev/shm/workspace/parallel/8/kibana/test/functional/screenshots/failure/console app console app _before all_ hook for _should show the default request_.png"
[00:04:11]               │ info Current URL is: http://localhost:6181/app/dev_tools#/console
[00:04:11]               │ info Saving page source to: /dev/shm/workspace/parallel/8/kibana/test/functional/failure_debug/html/console app console app _before all_ hook for _should show the default request_.html
[00:04:11]               └- ✖ fail: console app console app "before all" hook for "should show the default request"
[00:04:11]               │      retry.tryForTime timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:11]               │ Wait timed out after 60125ms
[00:04:11]               │     at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:11]               │     at runMicrotasks (<anonymous>)
[00:04:11]               │     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:04:11]               │     at onFailure (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:04:11]               │     at retryForSuccess (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:04:11]               │     at Retry.try (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry.ts:32:14)
[00:04:11]               │     at /dev/shm/workspace/parallel/8/kibana/test/functional/page_objects/common_page.ts:227:23
[00:04:11]               │     at runAttempt (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:04:11]               │     at retryForSuccess (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:04:11]               │     at Retry.tryForTime (/dev/shm/workspace/parallel/8/kibana/test/common/services/retry/retry.ts:23:14)
[00:04:11]               │     at CommonPage.navigateToApp (/dev/shm/workspace/parallel/8/kibana/test/functional/page_objects/common_page.ts:226:7)
[00:04:11]               │     at Context.<anonymous> (/dev/shm/workspace/parallel/8/kibana/test/functional/apps/console/_console.ts:33:7)
[00:04:11]               │     at Object.apply (/dev/shm/workspace/parallel/8/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:04:11]               │   Error: retry.tryForTime timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:11]               │   Wait timed out after 60125ms
[00:04:11]               │       at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:11]               │       at runMicrotasks (<anonymous>)
[00:04:11]               │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:04:11]               │       at onFailure (test/common/services/retry/retry_for_success.ts:17:9)
[00:04:11]               │       at retryForSuccess (test/common/services/retry/retry_for_success.ts:57:13)
[00:04:11]               │       at Retry.try (test/common/services/retry/retry.ts:32:14)
[00:04:11]               │       at /dev/shm/workspace/parallel/8/kibana/test/functional/page_objects/common_page.ts:227:23
[00:04:11]               │       at runAttempt (test/common/services/retry/retry_for_success.ts:27:15)
[00:04:11]               │       at retryForSuccess (test/common/services/retry/retry_for_success.ts:66:21)
[00:04:11]               │       at Retry.tryForTime (test/common/services/retry/retry.ts:23:14)
[00:04:11]               │       at CommonPage.navigateToApp (test/functional/page_objects/common_page.ts:226:7)
[00:04:11]               │       at Context.<anonymous> (test/functional/apps/console/_console.ts:33:7)
[00:04:11]               │       at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:04:11]               │       at onFailure (test/common/services/retry/retry_for_success.ts:17:9)
[00:04:11]               │       at retryForSuccess (test/common/services/retry/retry_for_success.ts:57:13)
[00:04:11]               │       at Retry.tryForTime (test/common/services/retry/retry.ts:23:14)
[00:04:11]               │       at CommonPage.navigateToApp (test/functional/page_objects/common_page.ts:226:7)
[00:04:11]               │       at Context.<anonymous> (test/functional/apps/console/_console.ts:33:7)
[00:04:11]               │       at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:04:11]               │ 
[00:04:11]               │ 

Stack Trace

Error: retry.tryForTime timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
Wait timed out after 60125ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at onFailure (test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.try (test/common/services/retry/retry.ts:32:14)
    at /dev/shm/workspace/parallel/8/kibana/test/functional/page_objects/common_page.ts:227:23
    at runAttempt (test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:66:21)
    at Retry.tryForTime (test/common/services/retry/retry.ts:23:14)
    at CommonPage.navigateToApp (test/functional/page_objects/common_page.ts:226:7)
    at Context.<anonymous> (test/functional/apps/console/_console.ts:33:7)
    at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.tryForTime (test/common/services/retry/retry.ts:23:14)
    at CommonPage.navigateToApp (test/functional/page_objects/common_page.ts:226:7)
    at Context.<anonymous> (test/functional/apps/console/_console.ts:33:7)
    at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
visTypeTimelion 46 47 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
visTypeTimelion 76.1KB 49.9KB -26.2KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
visTypeTimelion 25.3KB 52.6KB +27.3KB

History

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

@alexwizp alexwizp merged commit aa468c1 into elastic:master Feb 11, 2021
alexwizp added a commit to alexwizp/kibana that referenced this pull request Feb 11, 2021
)

* [Timelion] Communicate the index pattern to the dashboard

Closes elastic#86418

* update types / limits.yml

* Update timelion_vis_type.tsx

* fix typo

* remove extra await

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
alexwizp added a commit that referenced this pull request Feb 11, 2021
…91112)

* [Timelion] Communicate the index pattern to the dashboard

Closes #86418

* update types / limits.yml

* Update timelion_vis_type.tsx

* fix typo

* remove extra await

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Timelion Timelion app and visualization release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Timelion] Communicate the index pattern to the dashboard
6 participants