-
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
[lens] lens embeddable continuously shows loading icon on failure #172996
Comments
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
Unfortunately, this is probably due to the Lens embeddable not notifying render complete when errors are shown. We got away with this until #171238 |
Would this impact reporting? Maybe the priority should be higher if it causes reporting to timeout |
Actually, I said render complete, but I think it is the kibana/src/plugins/embeddable/public/lib/embeddables/i_embeddable.ts Lines 20 to 25 in c86d437
|
## Summary Fix #172996 Basically, the embeddable output has three optional properties tracking the state of the child: `loading`, `rendered`, `error`. Child embeddables are currently using these relatively inconsistently, but for the purposes of hiding/showing the loader we can assume that the first time any embeddable sets `loading` to false, `rendered` to true, or `error` to some error, the loader shouldn't be shown anymore. ## Testing This is a dashboard that creates both a search error (runtime) and an embeddable stack error (missing reference). <img width="961" alt="Screenshot 2023-12-08 at 4 05 03 PM" src="https://github.com/elastic/kibana/assets/315764/b25a525f-99e3-4de2-bfdd-f2f70d5abdf3"> <details> ``` {"attributes":{"fieldFormatMap":"{\"hour_of_day\":{}}","name":"Kibana Sample Data Logs","runtimeFieldMap":"{\"hour_of_day\":{\"type\":\"long\",\"script\":{\"source\":\"emit(doc['timestamp'].value.getHour());\"}}}","timeFieldName":"timestamp","title":"kibana_sample_data_logs"},"coreMigrationVersion":"8.8.0","created_at":"2023-12-08T17:30:55.069Z","id":"90943e30-9a47-11e8-b64d-95841ca0b247","managed":false,"references":[],"type":"index-pattern","typeMigrationVersion":"8.0.0","updated_at":"2023-12-08T17:30:55.069Z","version":"WzExMCwzXQ=="} {"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[]}"},"optionsJSON":"{\"useMargins\":true,\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"hidePanelTitles\":false}","panelsJSON":"[{\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":0,\"w\":24,\"h\":15,\"i\":\"72110599-43d0-4e7e-8821-55e92670d181\"},\"panelIndex\":\"72110599-43d0-4e7e-8821-55e92670d181\",\"embeddableConfig\":{\"enhancements\":{}},\"panelRefName\":\"panel_72110599-43d0-4e7e-8821-55e92670d181\"},{\"type\":\"lens\",\"gridData\":{\"x\":24,\"y\":0,\"w\":24,\"h\":15,\"i\":\"bcd0181c-dbdf-4165-8011-b1211970232c\"},\"panelIndex\":\"bcd0181c-dbdf-4165-8011-b1211970232c\",\"embeddableConfig\":{\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"name\":\"indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c\"},{\"type\":\"index-pattern\",\"name\":\"568ef039-09f6-47e4-adae-30f449514d4b\",\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\"}],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"75249dd3-e213-44a7-ab24-e155c7bff23c\",\"accessors\":[\"968f9f62-722e-4c79-9675-390632f76a23\"],\"position\":\"top\",\"seriesType\":\"bar_stacked\",\"showGridlines\":false,\"layerType\":\"data\",\"xAccessor\":\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\"}]},\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"filters\":[{\"meta\":{\"index\":\"568ef039-09f6-47e4-adae-30f449514d4b\",\"type\":\"custom\",\"disabled\":false,\"negate\":false,\"alias\":null,\"key\":\"query\",\"value\":\"{\\\"error_query\\\":{\\\"indices\\\":[{\\\"error_type\\\":\\\"exception\\\",\\\"message\\\":\\\"local shard failure message 123\\\",\\\"name\\\":\\\"kibana_sample_data_logs\\\"}]}}\"},\"$state\":{\"store\":\"appState\"},\"query\":{\"error_query\":{\"indices\":[{\"error_type\":\"exception\",\"message\":\"local shard failure message 123\",\"name\":\"kibana_sample_data_logs\"}]}}}],\"datasourceStates\":{\"formBased\":{\"layers\":{\"75249dd3-e213-44a7-ab24-e155c7bff23c\":{\"columns\":{\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\":{\"label\":\"timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"timestamp\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"968f9f62-722e-4c79-9675-390632f76a23\":{\"label\":\"Median of bytes\",\"dataType\":\"number\",\"operationType\":\"median\",\"sourceField\":\"bytes\",\"isBucketed\":false,\"scale\":\"ratio\",\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\",\"968f9f62-722e-4c79-9675-390632f76a23\"],\"incompleteColumns\":{},\"sampling\":1}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{}}}]","timeRestore":false,"title":"My problem dash","version":1},"coreMigrationVersion":"8.8.0","created_at":"2023-12-08T23:02:45.161Z","id":"14469a24-5299-44f8-974a-69e66c48e9f4","managed":false,"references":[{"id":"67a260e2-01d2-44ae-8c3c-448829aebe0c","name":"72110599-43d0-4e7e-8821-55e92670d181:panel_72110599-43d0-4e7e-8821-55e92670d181","type":"lens"},{"id":"90943e30-9a47-11e8-b64d-95841ca0b247","name":"bcd0181c-dbdf-4165-8011-b1211970232c:indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c","type":"index-pattern"},{"id":"90943e30-9a47-11e8-b64d-95841ca0b247","name":"bcd0181c-dbdf-4165-8011-b1211970232c:568ef039-09f6-47e4-adae-30f449514d4b","type":"index-pattern"}],"type":"dashboard","typeMigrationVersion":"8.9.0","updated_at":"2023-12-08T23:02:45.161Z","version":"WzE0MSwzXQ=="} {"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":2,"missingRefCount":1,"missingReferences":[{"id":"67a260e2-01d2-44ae-8c3c-448829aebe0c","type":"lens"}]} ``` </details>
## Summary Fix elastic#172996 Basically, the embeddable output has three optional properties tracking the state of the child: `loading`, `rendered`, `error`. Child embeddables are currently using these relatively inconsistently, but for the purposes of hiding/showing the loader we can assume that the first time any embeddable sets `loading` to false, `rendered` to true, or `error` to some error, the loader shouldn't be shown anymore. ## Testing This is a dashboard that creates both a search error (runtime) and an embeddable stack error (missing reference). <img width="961" alt="Screenshot 2023-12-08 at 4 05 03 PM" src="https://github.com/elastic/kibana/assets/315764/b25a525f-99e3-4de2-bfdd-f2f70d5abdf3"> <details> ``` {"attributes":{"fieldFormatMap":"{\"hour_of_day\":{}}","name":"Kibana Sample Data Logs","runtimeFieldMap":"{\"hour_of_day\":{\"type\":\"long\",\"script\":{\"source\":\"emit(doc['timestamp'].value.getHour());\"}}}","timeFieldName":"timestamp","title":"kibana_sample_data_logs"},"coreMigrationVersion":"8.8.0","created_at":"2023-12-08T17:30:55.069Z","id":"90943e30-9a47-11e8-b64d-95841ca0b247","managed":false,"references":[],"type":"index-pattern","typeMigrationVersion":"8.0.0","updated_at":"2023-12-08T17:30:55.069Z","version":"WzExMCwzXQ=="} {"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[]}"},"optionsJSON":"{\"useMargins\":true,\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"hidePanelTitles\":false}","panelsJSON":"[{\"type\":\"lens\",\"gridData\":{\"x\":0,\"y\":0,\"w\":24,\"h\":15,\"i\":\"72110599-43d0-4e7e-8821-55e92670d181\"},\"panelIndex\":\"72110599-43d0-4e7e-8821-55e92670d181\",\"embeddableConfig\":{\"enhancements\":{}},\"panelRefName\":\"panel_72110599-43d0-4e7e-8821-55e92670d181\"},{\"type\":\"lens\",\"gridData\":{\"x\":24,\"y\":0,\"w\":24,\"h\":15,\"i\":\"bcd0181c-dbdf-4165-8011-b1211970232c\"},\"panelIndex\":\"bcd0181c-dbdf-4165-8011-b1211970232c\",\"embeddableConfig\":{\"attributes\":{\"title\":\"\",\"visualizationType\":\"lnsXY\",\"type\":\"lens\",\"references\":[{\"type\":\"index-pattern\",\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"name\":\"indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c\"},{\"type\":\"index-pattern\",\"name\":\"568ef039-09f6-47e4-adae-30f449514d4b\",\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\"}],\"state\":{\"visualization\":{\"legend\":{\"isVisible\":true,\"position\":\"right\"},\"valueLabels\":\"hide\",\"fittingFunction\":\"None\",\"axisTitlesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"tickLabelsVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"labelsOrientation\":{\"x\":0,\"yLeft\":0,\"yRight\":0},\"gridlinesVisibilitySettings\":{\"x\":true,\"yLeft\":true,\"yRight\":true},\"preferredSeriesType\":\"bar_stacked\",\"layers\":[{\"layerId\":\"75249dd3-e213-44a7-ab24-e155c7bff23c\",\"accessors\":[\"968f9f62-722e-4c79-9675-390632f76a23\"],\"position\":\"top\",\"seriesType\":\"bar_stacked\",\"showGridlines\":false,\"layerType\":\"data\",\"xAccessor\":\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\"}]},\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"filters\":[{\"meta\":{\"index\":\"568ef039-09f6-47e4-adae-30f449514d4b\",\"type\":\"custom\",\"disabled\":false,\"negate\":false,\"alias\":null,\"key\":\"query\",\"value\":\"{\\\"error_query\\\":{\\\"indices\\\":[{\\\"error_type\\\":\\\"exception\\\",\\\"message\\\":\\\"local shard failure message 123\\\",\\\"name\\\":\\\"kibana_sample_data_logs\\\"}]}}\"},\"$state\":{\"store\":\"appState\"},\"query\":{\"error_query\":{\"indices\":[{\"error_type\":\"exception\",\"message\":\"local shard failure message 123\",\"name\":\"kibana_sample_data_logs\"}]}}}],\"datasourceStates\":{\"formBased\":{\"layers\":{\"75249dd3-e213-44a7-ab24-e155c7bff23c\":{\"columns\":{\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\":{\"label\":\"timestamp\",\"dataType\":\"date\",\"operationType\":\"date_histogram\",\"sourceField\":\"timestamp\",\"isBucketed\":true,\"scale\":\"interval\",\"params\":{\"interval\":\"auto\",\"includeEmptyRows\":true,\"dropPartials\":false}},\"968f9f62-722e-4c79-9675-390632f76a23\":{\"label\":\"Median of bytes\",\"dataType\":\"number\",\"operationType\":\"median\",\"sourceField\":\"bytes\",\"isBucketed\":false,\"scale\":\"ratio\",\"params\":{\"emptyAsNull\":true}}},\"columnOrder\":[\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\",\"968f9f62-722e-4c79-9675-390632f76a23\"],\"incompleteColumns\":{},\"sampling\":1}}},\"indexpattern\":{\"layers\":{}},\"textBased\":{\"layers\":{}}},\"internalReferences\":[],\"adHocDataViews\":{}}},\"enhancements\":{}}}]","timeRestore":false,"title":"My problem dash","version":1},"coreMigrationVersion":"8.8.0","created_at":"2023-12-08T23:02:45.161Z","id":"14469a24-5299-44f8-974a-69e66c48e9f4","managed":false,"references":[{"id":"67a260e2-01d2-44ae-8c3c-448829aebe0c","name":"72110599-43d0-4e7e-8821-55e92670d181:panel_72110599-43d0-4e7e-8821-55e92670d181","type":"lens"},{"id":"90943e30-9a47-11e8-b64d-95841ca0b247","name":"bcd0181c-dbdf-4165-8011-b1211970232c:indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c","type":"index-pattern"},{"id":"90943e30-9a47-11e8-b64d-95841ca0b247","name":"bcd0181c-dbdf-4165-8011-b1211970232c:568ef039-09f6-47e4-adae-30f449514d4b","type":"index-pattern"}],"type":"dashboard","typeMigrationVersion":"8.9.0","updated_at":"2023-12-08T23:02:45.161Z","version":"WzE0MSwzXQ=="} {"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":2,"missingRefCount":1,"missingReferences":[{"id":"67a260e2-01d2-44ae-8c3c-448829aebe0c","type":"lens"}]} ``` </details> (cherry picked from commit 644c61c)
# Backport This will backport the following commits from `main` to `8.12`: - [[Embeddable] Fix embeddable panel loader (#173000)](#173000) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Drew Tate","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-12-11T18:52:46Z","message":"[Embeddable] Fix embeddable panel loader (#173000)\n\n## Summary\r\n\r\nFix https://github.com/elastic/kibana/issues/172996\r\n\r\nBasically, the embeddable output has three optional properties tracking\r\nthe state of the child: `loading`, `rendered`, `error`.\r\n\r\nChild embeddables are currently using these relatively inconsistently,\r\nbut for the purposes of hiding/showing the loader we can assume that the\r\nfirst time any embeddable sets `loading` to false, `rendered` to true,\r\nor `error` to some error, the loader shouldn't be shown anymore.\r\n\r\n## Testing\r\nThis is a dashboard that creates both a search error (runtime) and an\r\nembeddable stack error (missing reference).\r\n\r\n<img width=\"961\" alt=\"Screenshot 2023-12-08 at 4 05 03 PM\"\r\nsrc=\"https://github.com/elastic/kibana/assets/315764/b25a525f-99e3-4de2-bfdd-f2f70d5abdf3\">\r\n\r\n\r\n<details>\r\n\r\n```\r\n{\"attributes\":{\"fieldFormatMap\":\"{\\\"hour_of_day\\\":{}}\",\"name\":\"Kibana Sample Data Logs\",\"runtimeFieldMap\":\"{\\\"hour_of_day\\\":{\\\"type\\\":\\\"long\\\",\\\"script\\\":{\\\"source\\\":\\\"emit(doc['timestamp'].value.getHour());\\\"}}}\",\"timeFieldName\":\"timestamp\",\"title\":\"kibana_sample_data_logs\"},\"coreMigrationVersion\":\"8.8.0\",\"created_at\":\"2023-12-08T17:30:55.069Z\",\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"managed\":false,\"references\":[],\"type\":\"index-pattern\",\"typeMigrationVersion\":\"8.0.0\",\"updated_at\":\"2023-12-08T17:30:55.069Z\",\"version\":\"WzExMCwzXQ==\"}\r\n{\"attributes\":{\"description\":\"\",\"kibanaSavedObjectMeta\":{\"searchSourceJSON\":\"{\\\"query\\\":{\\\"query\\\":\\\"\\\",\\\"language\\\":\\\"kuery\\\"},\\\"filter\\\":[]}\"},\"optionsJSON\":\"{\\\"useMargins\\\":true,\\\"syncColors\\\":false,\\\"syncCursor\\\":true,\\\"syncTooltips\\\":false,\\\"hidePanelTitles\\\":false}\",\"panelsJSON\":\"[{\\\"type\\\":\\\"lens\\\",\\\"gridData\\\":{\\\"x\\\":0,\\\"y\\\":0,\\\"w\\\":24,\\\"h\\\":15,\\\"i\\\":\\\"72110599-43d0-4e7e-8821-55e92670d181\\\"},\\\"panelIndex\\\":\\\"72110599-43d0-4e7e-8821-55e92670d181\\\",\\\"embeddableConfig\\\":{\\\"enhancements\\\":{}},\\\"panelRefName\\\":\\\"panel_72110599-43d0-4e7e-8821-55e92670d181\\\"},{\\\"type\\\":\\\"lens\\\",\\\"gridData\\\":{\\\"x\\\":24,\\\"y\\\":0,\\\"w\\\":24,\\\"h\\\":15,\\\"i\\\":\\\"bcd0181c-dbdf-4165-8011-b1211970232c\\\"},\\\"panelIndex\\\":\\\"bcd0181c-dbdf-4165-8011-b1211970232c\\\",\\\"embeddableConfig\\\":{\\\"attributes\\\":{\\\"title\\\":\\\"\\\",\\\"visualizationType\\\":\\\"lnsXY\\\",\\\"type\\\":\\\"lens\\\",\\\"references\\\":[{\\\"type\\\":\\\"index-pattern\\\",\\\"id\\\":\\\"90943e30-9a47-11e8-b64d-95841ca0b247\\\",\\\"name\\\":\\\"indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c\\\"},{\\\"type\\\":\\\"index-pattern\\\",\\\"name\\\":\\\"568ef039-09f6-47e4-adae-30f449514d4b\\\",\\\"id\\\":\\\"90943e30-9a47-11e8-b64d-95841ca0b247\\\"}],\\\"state\\\":{\\\"visualization\\\":{\\\"legend\\\":{\\\"isVisible\\\":true,\\\"position\\\":\\\"right\\\"},\\\"valueLabels\\\":\\\"hide\\\",\\\"fittingFunction\\\":\\\"None\\\",\\\"axisTitlesVisibilitySettings\\\":{\\\"x\\\":true,\\\"yLeft\\\":true,\\\"yRight\\\":true},\\\"tickLabelsVisibilitySettings\\\":{\\\"x\\\":true,\\\"yLeft\\\":true,\\\"yRight\\\":true},\\\"labelsOrientation\\\":{\\\"x\\\":0,\\\"yLeft\\\":0,\\\"yRight\\\":0},\\\"gridlinesVisibilitySettings\\\":{\\\"x\\\":true,\\\"yLeft\\\":true,\\\"yRight\\\":true},\\\"preferredSeriesType\\\":\\\"bar_stacked\\\",\\\"layers\\\":[{\\\"layerId\\\":\\\"75249dd3-e213-44a7-ab24-e155c7bff23c\\\",\\\"accessors\\\":[\\\"968f9f62-722e-4c79-9675-390632f76a23\\\"],\\\"position\\\":\\\"top\\\",\\\"seriesType\\\":\\\"bar_stacked\\\",\\\"showGridlines\\\":false,\\\"layerType\\\":\\\"data\\\",\\\"xAccessor\\\":\\\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\\\"}]},\\\"query\\\":{\\\"query\\\":\\\"\\\",\\\"language\\\":\\\"lucene\\\"},\\\"filters\\\":[{\\\"meta\\\":{\\\"index\\\":\\\"568ef039-09f6-47e4-adae-30f449514d4b\\\",\\\"type\\\":\\\"custom\\\",\\\"disabled\\\":false,\\\"negate\\\":false,\\\"alias\\\":null,\\\"key\\\":\\\"query\\\",\\\"value\\\":\\\"{\\\\\\\"error_query\\\\\\\":{\\\\\\\"indices\\\\\\\":[{\\\\\\\"error_type\\\\\\\":\\\\\\\"exception\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"local shard failure message 123\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"kibana_sample_data_logs\\\\\\\"}]}}\\\"},\\\"$state\\\":{\\\"store\\\":\\\"appState\\\"},\\\"query\\\":{\\\"error_query\\\":{\\\"indices\\\":[{\\\"error_type\\\":\\\"exception\\\",\\\"message\\\":\\\"local shard failure message 123\\\",\\\"name\\\":\\\"kibana_sample_data_logs\\\"}]}}}],\\\"datasourceStates\\\":{\\\"formBased\\\":{\\\"layers\\\":{\\\"75249dd3-e213-44a7-ab24-e155c7bff23c\\\":{\\\"columns\\\":{\\\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\\\":{\\\"label\\\":\\\"timestamp\\\",\\\"dataType\\\":\\\"date\\\",\\\"operationType\\\":\\\"date_histogram\\\",\\\"sourceField\\\":\\\"timestamp\\\",\\\"isBucketed\\\":true,\\\"scale\\\":\\\"interval\\\",\\\"params\\\":{\\\"interval\\\":\\\"auto\\\",\\\"includeEmptyRows\\\":true,\\\"dropPartials\\\":false}},\\\"968f9f62-722e-4c79-9675-390632f76a23\\\":{\\\"label\\\":\\\"Median of bytes\\\",\\\"dataType\\\":\\\"number\\\",\\\"operationType\\\":\\\"median\\\",\\\"sourceField\\\":\\\"bytes\\\",\\\"isBucketed\\\":false,\\\"scale\\\":\\\"ratio\\\",\\\"params\\\":{\\\"emptyAsNull\\\":true}}},\\\"columnOrder\\\":[\\\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\\\",\\\"968f9f62-722e-4c79-9675-390632f76a23\\\"],\\\"incompleteColumns\\\":{},\\\"sampling\\\":1}}},\\\"indexpattern\\\":{\\\"layers\\\":{}},\\\"textBased\\\":{\\\"layers\\\":{}}},\\\"internalReferences\\\":[],\\\"adHocDataViews\\\":{}}},\\\"enhancements\\\":{}}}]\",\"timeRestore\":false,\"title\":\"My problem dash\",\"version\":1},\"coreMigrationVersion\":\"8.8.0\",\"created_at\":\"2023-12-08T23:02:45.161Z\",\"id\":\"14469a24-5299-44f8-974a-69e66c48e9f4\",\"managed\":false,\"references\":[{\"id\":\"67a260e2-01d2-44ae-8c3c-448829aebe0c\",\"name\":\"72110599-43d0-4e7e-8821-55e92670d181:panel_72110599-43d0-4e7e-8821-55e92670d181\",\"type\":\"lens\"},{\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"name\":\"bcd0181c-dbdf-4165-8011-b1211970232c:indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c\",\"type\":\"index-pattern\"},{\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"name\":\"bcd0181c-dbdf-4165-8011-b1211970232c:568ef039-09f6-47e4-adae-30f449514d4b\",\"type\":\"index-pattern\"}],\"type\":\"dashboard\",\"typeMigrationVersion\":\"8.9.0\",\"updated_at\":\"2023-12-08T23:02:45.161Z\",\"version\":\"WzE0MSwzXQ==\"}\r\n{\"excludedObjects\":[],\"excludedObjectsCount\":0,\"exportedCount\":2,\"missingRefCount\":1,\"missingReferences\":[{\"id\":\"67a260e2-01d2-44ae-8c3c-448829aebe0c\",\"type\":\"lens\"}]}\r\n```\r\n</details>","sha":"644c61cdc699799523cb62beaacad67d39b12de7","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Embedding","release_note:skip","backport:prev-minor","v8.13.0"],"number":173000,"url":"https://github.com/elastic/kibana/pull/173000","mergeCommit":{"message":"[Embeddable] Fix embeddable panel loader (#173000)\n\n## Summary\r\n\r\nFix https://github.com/elastic/kibana/issues/172996\r\n\r\nBasically, the embeddable output has three optional properties tracking\r\nthe state of the child: `loading`, `rendered`, `error`.\r\n\r\nChild embeddables are currently using these relatively inconsistently,\r\nbut for the purposes of hiding/showing the loader we can assume that the\r\nfirst time any embeddable sets `loading` to false, `rendered` to true,\r\nor `error` to some error, the loader shouldn't be shown anymore.\r\n\r\n## Testing\r\nThis is a dashboard that creates both a search error (runtime) and an\r\nembeddable stack error (missing reference).\r\n\r\n<img width=\"961\" alt=\"Screenshot 2023-12-08 at 4 05 03 PM\"\r\nsrc=\"https://github.com/elastic/kibana/assets/315764/b25a525f-99e3-4de2-bfdd-f2f70d5abdf3\">\r\n\r\n\r\n<details>\r\n\r\n```\r\n{\"attributes\":{\"fieldFormatMap\":\"{\\\"hour_of_day\\\":{}}\",\"name\":\"Kibana Sample Data Logs\",\"runtimeFieldMap\":\"{\\\"hour_of_day\\\":{\\\"type\\\":\\\"long\\\",\\\"script\\\":{\\\"source\\\":\\\"emit(doc['timestamp'].value.getHour());\\\"}}}\",\"timeFieldName\":\"timestamp\",\"title\":\"kibana_sample_data_logs\"},\"coreMigrationVersion\":\"8.8.0\",\"created_at\":\"2023-12-08T17:30:55.069Z\",\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"managed\":false,\"references\":[],\"type\":\"index-pattern\",\"typeMigrationVersion\":\"8.0.0\",\"updated_at\":\"2023-12-08T17:30:55.069Z\",\"version\":\"WzExMCwzXQ==\"}\r\n{\"attributes\":{\"description\":\"\",\"kibanaSavedObjectMeta\":{\"searchSourceJSON\":\"{\\\"query\\\":{\\\"query\\\":\\\"\\\",\\\"language\\\":\\\"kuery\\\"},\\\"filter\\\":[]}\"},\"optionsJSON\":\"{\\\"useMargins\\\":true,\\\"syncColors\\\":false,\\\"syncCursor\\\":true,\\\"syncTooltips\\\":false,\\\"hidePanelTitles\\\":false}\",\"panelsJSON\":\"[{\\\"type\\\":\\\"lens\\\",\\\"gridData\\\":{\\\"x\\\":0,\\\"y\\\":0,\\\"w\\\":24,\\\"h\\\":15,\\\"i\\\":\\\"72110599-43d0-4e7e-8821-55e92670d181\\\"},\\\"panelIndex\\\":\\\"72110599-43d0-4e7e-8821-55e92670d181\\\",\\\"embeddableConfig\\\":{\\\"enhancements\\\":{}},\\\"panelRefName\\\":\\\"panel_72110599-43d0-4e7e-8821-55e92670d181\\\"},{\\\"type\\\":\\\"lens\\\",\\\"gridData\\\":{\\\"x\\\":24,\\\"y\\\":0,\\\"w\\\":24,\\\"h\\\":15,\\\"i\\\":\\\"bcd0181c-dbdf-4165-8011-b1211970232c\\\"},\\\"panelIndex\\\":\\\"bcd0181c-dbdf-4165-8011-b1211970232c\\\",\\\"embeddableConfig\\\":{\\\"attributes\\\":{\\\"title\\\":\\\"\\\",\\\"visualizationType\\\":\\\"lnsXY\\\",\\\"type\\\":\\\"lens\\\",\\\"references\\\":[{\\\"type\\\":\\\"index-pattern\\\",\\\"id\\\":\\\"90943e30-9a47-11e8-b64d-95841ca0b247\\\",\\\"name\\\":\\\"indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c\\\"},{\\\"type\\\":\\\"index-pattern\\\",\\\"name\\\":\\\"568ef039-09f6-47e4-adae-30f449514d4b\\\",\\\"id\\\":\\\"90943e30-9a47-11e8-b64d-95841ca0b247\\\"}],\\\"state\\\":{\\\"visualization\\\":{\\\"legend\\\":{\\\"isVisible\\\":true,\\\"position\\\":\\\"right\\\"},\\\"valueLabels\\\":\\\"hide\\\",\\\"fittingFunction\\\":\\\"None\\\",\\\"axisTitlesVisibilitySettings\\\":{\\\"x\\\":true,\\\"yLeft\\\":true,\\\"yRight\\\":true},\\\"tickLabelsVisibilitySettings\\\":{\\\"x\\\":true,\\\"yLeft\\\":true,\\\"yRight\\\":true},\\\"labelsOrientation\\\":{\\\"x\\\":0,\\\"yLeft\\\":0,\\\"yRight\\\":0},\\\"gridlinesVisibilitySettings\\\":{\\\"x\\\":true,\\\"yLeft\\\":true,\\\"yRight\\\":true},\\\"preferredSeriesType\\\":\\\"bar_stacked\\\",\\\"layers\\\":[{\\\"layerId\\\":\\\"75249dd3-e213-44a7-ab24-e155c7bff23c\\\",\\\"accessors\\\":[\\\"968f9f62-722e-4c79-9675-390632f76a23\\\"],\\\"position\\\":\\\"top\\\",\\\"seriesType\\\":\\\"bar_stacked\\\",\\\"showGridlines\\\":false,\\\"layerType\\\":\\\"data\\\",\\\"xAccessor\\\":\\\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\\\"}]},\\\"query\\\":{\\\"query\\\":\\\"\\\",\\\"language\\\":\\\"lucene\\\"},\\\"filters\\\":[{\\\"meta\\\":{\\\"index\\\":\\\"568ef039-09f6-47e4-adae-30f449514d4b\\\",\\\"type\\\":\\\"custom\\\",\\\"disabled\\\":false,\\\"negate\\\":false,\\\"alias\\\":null,\\\"key\\\":\\\"query\\\",\\\"value\\\":\\\"{\\\\\\\"error_query\\\\\\\":{\\\\\\\"indices\\\\\\\":[{\\\\\\\"error_type\\\\\\\":\\\\\\\"exception\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"local shard failure message 123\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"kibana_sample_data_logs\\\\\\\"}]}}\\\"},\\\"$state\\\":{\\\"store\\\":\\\"appState\\\"},\\\"query\\\":{\\\"error_query\\\":{\\\"indices\\\":[{\\\"error_type\\\":\\\"exception\\\",\\\"message\\\":\\\"local shard failure message 123\\\",\\\"name\\\":\\\"kibana_sample_data_logs\\\"}]}}}],\\\"datasourceStates\\\":{\\\"formBased\\\":{\\\"layers\\\":{\\\"75249dd3-e213-44a7-ab24-e155c7bff23c\\\":{\\\"columns\\\":{\\\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\\\":{\\\"label\\\":\\\"timestamp\\\",\\\"dataType\\\":\\\"date\\\",\\\"operationType\\\":\\\"date_histogram\\\",\\\"sourceField\\\":\\\"timestamp\\\",\\\"isBucketed\\\":true,\\\"scale\\\":\\\"interval\\\",\\\"params\\\":{\\\"interval\\\":\\\"auto\\\",\\\"includeEmptyRows\\\":true,\\\"dropPartials\\\":false}},\\\"968f9f62-722e-4c79-9675-390632f76a23\\\":{\\\"label\\\":\\\"Median of bytes\\\",\\\"dataType\\\":\\\"number\\\",\\\"operationType\\\":\\\"median\\\",\\\"sourceField\\\":\\\"bytes\\\",\\\"isBucketed\\\":false,\\\"scale\\\":\\\"ratio\\\",\\\"params\\\":{\\\"emptyAsNull\\\":true}}},\\\"columnOrder\\\":[\\\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\\\",\\\"968f9f62-722e-4c79-9675-390632f76a23\\\"],\\\"incompleteColumns\\\":{},\\\"sampling\\\":1}}},\\\"indexpattern\\\":{\\\"layers\\\":{}},\\\"textBased\\\":{\\\"layers\\\":{}}},\\\"internalReferences\\\":[],\\\"adHocDataViews\\\":{}}},\\\"enhancements\\\":{}}}]\",\"timeRestore\":false,\"title\":\"My problem dash\",\"version\":1},\"coreMigrationVersion\":\"8.8.0\",\"created_at\":\"2023-12-08T23:02:45.161Z\",\"id\":\"14469a24-5299-44f8-974a-69e66c48e9f4\",\"managed\":false,\"references\":[{\"id\":\"67a260e2-01d2-44ae-8c3c-448829aebe0c\",\"name\":\"72110599-43d0-4e7e-8821-55e92670d181:panel_72110599-43d0-4e7e-8821-55e92670d181\",\"type\":\"lens\"},{\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"name\":\"bcd0181c-dbdf-4165-8011-b1211970232c:indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c\",\"type\":\"index-pattern\"},{\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"name\":\"bcd0181c-dbdf-4165-8011-b1211970232c:568ef039-09f6-47e4-adae-30f449514d4b\",\"type\":\"index-pattern\"}],\"type\":\"dashboard\",\"typeMigrationVersion\":\"8.9.0\",\"updated_at\":\"2023-12-08T23:02:45.161Z\",\"version\":\"WzE0MSwzXQ==\"}\r\n{\"excludedObjects\":[],\"excludedObjectsCount\":0,\"exportedCount\":2,\"missingRefCount\":1,\"missingReferences\":[{\"id\":\"67a260e2-01d2-44ae-8c3c-448829aebe0c\",\"type\":\"lens\"}]}\r\n```\r\n</details>","sha":"644c61cdc699799523cb62beaacad67d39b12de7"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173000","number":173000,"mergeCommit":{"message":"[Embeddable] Fix embeddable panel loader (#173000)\n\n## Summary\r\n\r\nFix https://github.com/elastic/kibana/issues/172996\r\n\r\nBasically, the embeddable output has three optional properties tracking\r\nthe state of the child: `loading`, `rendered`, `error`.\r\n\r\nChild embeddables are currently using these relatively inconsistently,\r\nbut for the purposes of hiding/showing the loader we can assume that the\r\nfirst time any embeddable sets `loading` to false, `rendered` to true,\r\nor `error` to some error, the loader shouldn't be shown anymore.\r\n\r\n## Testing\r\nThis is a dashboard that creates both a search error (runtime) and an\r\nembeddable stack error (missing reference).\r\n\r\n<img width=\"961\" alt=\"Screenshot 2023-12-08 at 4 05 03 PM\"\r\nsrc=\"https://github.com/elastic/kibana/assets/315764/b25a525f-99e3-4de2-bfdd-f2f70d5abdf3\">\r\n\r\n\r\n<details>\r\n\r\n```\r\n{\"attributes\":{\"fieldFormatMap\":\"{\\\"hour_of_day\\\":{}}\",\"name\":\"Kibana Sample Data Logs\",\"runtimeFieldMap\":\"{\\\"hour_of_day\\\":{\\\"type\\\":\\\"long\\\",\\\"script\\\":{\\\"source\\\":\\\"emit(doc['timestamp'].value.getHour());\\\"}}}\",\"timeFieldName\":\"timestamp\",\"title\":\"kibana_sample_data_logs\"},\"coreMigrationVersion\":\"8.8.0\",\"created_at\":\"2023-12-08T17:30:55.069Z\",\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"managed\":false,\"references\":[],\"type\":\"index-pattern\",\"typeMigrationVersion\":\"8.0.0\",\"updated_at\":\"2023-12-08T17:30:55.069Z\",\"version\":\"WzExMCwzXQ==\"}\r\n{\"attributes\":{\"description\":\"\",\"kibanaSavedObjectMeta\":{\"searchSourceJSON\":\"{\\\"query\\\":{\\\"query\\\":\\\"\\\",\\\"language\\\":\\\"kuery\\\"},\\\"filter\\\":[]}\"},\"optionsJSON\":\"{\\\"useMargins\\\":true,\\\"syncColors\\\":false,\\\"syncCursor\\\":true,\\\"syncTooltips\\\":false,\\\"hidePanelTitles\\\":false}\",\"panelsJSON\":\"[{\\\"type\\\":\\\"lens\\\",\\\"gridData\\\":{\\\"x\\\":0,\\\"y\\\":0,\\\"w\\\":24,\\\"h\\\":15,\\\"i\\\":\\\"72110599-43d0-4e7e-8821-55e92670d181\\\"},\\\"panelIndex\\\":\\\"72110599-43d0-4e7e-8821-55e92670d181\\\",\\\"embeddableConfig\\\":{\\\"enhancements\\\":{}},\\\"panelRefName\\\":\\\"panel_72110599-43d0-4e7e-8821-55e92670d181\\\"},{\\\"type\\\":\\\"lens\\\",\\\"gridData\\\":{\\\"x\\\":24,\\\"y\\\":0,\\\"w\\\":24,\\\"h\\\":15,\\\"i\\\":\\\"bcd0181c-dbdf-4165-8011-b1211970232c\\\"},\\\"panelIndex\\\":\\\"bcd0181c-dbdf-4165-8011-b1211970232c\\\",\\\"embeddableConfig\\\":{\\\"attributes\\\":{\\\"title\\\":\\\"\\\",\\\"visualizationType\\\":\\\"lnsXY\\\",\\\"type\\\":\\\"lens\\\",\\\"references\\\":[{\\\"type\\\":\\\"index-pattern\\\",\\\"id\\\":\\\"90943e30-9a47-11e8-b64d-95841ca0b247\\\",\\\"name\\\":\\\"indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c\\\"},{\\\"type\\\":\\\"index-pattern\\\",\\\"name\\\":\\\"568ef039-09f6-47e4-adae-30f449514d4b\\\",\\\"id\\\":\\\"90943e30-9a47-11e8-b64d-95841ca0b247\\\"}],\\\"state\\\":{\\\"visualization\\\":{\\\"legend\\\":{\\\"isVisible\\\":true,\\\"position\\\":\\\"right\\\"},\\\"valueLabels\\\":\\\"hide\\\",\\\"fittingFunction\\\":\\\"None\\\",\\\"axisTitlesVisibilitySettings\\\":{\\\"x\\\":true,\\\"yLeft\\\":true,\\\"yRight\\\":true},\\\"tickLabelsVisibilitySettings\\\":{\\\"x\\\":true,\\\"yLeft\\\":true,\\\"yRight\\\":true},\\\"labelsOrientation\\\":{\\\"x\\\":0,\\\"yLeft\\\":0,\\\"yRight\\\":0},\\\"gridlinesVisibilitySettings\\\":{\\\"x\\\":true,\\\"yLeft\\\":true,\\\"yRight\\\":true},\\\"preferredSeriesType\\\":\\\"bar_stacked\\\",\\\"layers\\\":[{\\\"layerId\\\":\\\"75249dd3-e213-44a7-ab24-e155c7bff23c\\\",\\\"accessors\\\":[\\\"968f9f62-722e-4c79-9675-390632f76a23\\\"],\\\"position\\\":\\\"top\\\",\\\"seriesType\\\":\\\"bar_stacked\\\",\\\"showGridlines\\\":false,\\\"layerType\\\":\\\"data\\\",\\\"xAccessor\\\":\\\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\\\"}]},\\\"query\\\":{\\\"query\\\":\\\"\\\",\\\"language\\\":\\\"lucene\\\"},\\\"filters\\\":[{\\\"meta\\\":{\\\"index\\\":\\\"568ef039-09f6-47e4-adae-30f449514d4b\\\",\\\"type\\\":\\\"custom\\\",\\\"disabled\\\":false,\\\"negate\\\":false,\\\"alias\\\":null,\\\"key\\\":\\\"query\\\",\\\"value\\\":\\\"{\\\\\\\"error_query\\\\\\\":{\\\\\\\"indices\\\\\\\":[{\\\\\\\"error_type\\\\\\\":\\\\\\\"exception\\\\\\\",\\\\\\\"message\\\\\\\":\\\\\\\"local shard failure message 123\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"kibana_sample_data_logs\\\\\\\"}]}}\\\"},\\\"$state\\\":{\\\"store\\\":\\\"appState\\\"},\\\"query\\\":{\\\"error_query\\\":{\\\"indices\\\":[{\\\"error_type\\\":\\\"exception\\\",\\\"message\\\":\\\"local shard failure message 123\\\",\\\"name\\\":\\\"kibana_sample_data_logs\\\"}]}}}],\\\"datasourceStates\\\":{\\\"formBased\\\":{\\\"layers\\\":{\\\"75249dd3-e213-44a7-ab24-e155c7bff23c\\\":{\\\"columns\\\":{\\\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\\\":{\\\"label\\\":\\\"timestamp\\\",\\\"dataType\\\":\\\"date\\\",\\\"operationType\\\":\\\"date_histogram\\\",\\\"sourceField\\\":\\\"timestamp\\\",\\\"isBucketed\\\":true,\\\"scale\\\":\\\"interval\\\",\\\"params\\\":{\\\"interval\\\":\\\"auto\\\",\\\"includeEmptyRows\\\":true,\\\"dropPartials\\\":false}},\\\"968f9f62-722e-4c79-9675-390632f76a23\\\":{\\\"label\\\":\\\"Median of bytes\\\",\\\"dataType\\\":\\\"number\\\",\\\"operationType\\\":\\\"median\\\",\\\"sourceField\\\":\\\"bytes\\\",\\\"isBucketed\\\":false,\\\"scale\\\":\\\"ratio\\\",\\\"params\\\":{\\\"emptyAsNull\\\":true}}},\\\"columnOrder\\\":[\\\"03a7a16a-0761-4e19-a3ff-ea412facc4f8\\\",\\\"968f9f62-722e-4c79-9675-390632f76a23\\\"],\\\"incompleteColumns\\\":{},\\\"sampling\\\":1}}},\\\"indexpattern\\\":{\\\"layers\\\":{}},\\\"textBased\\\":{\\\"layers\\\":{}}},\\\"internalReferences\\\":[],\\\"adHocDataViews\\\":{}}},\\\"enhancements\\\":{}}}]\",\"timeRestore\":false,\"title\":\"My problem dash\",\"version\":1},\"coreMigrationVersion\":\"8.8.0\",\"created_at\":\"2023-12-08T23:02:45.161Z\",\"id\":\"14469a24-5299-44f8-974a-69e66c48e9f4\",\"managed\":false,\"references\":[{\"id\":\"67a260e2-01d2-44ae-8c3c-448829aebe0c\",\"name\":\"72110599-43d0-4e7e-8821-55e92670d181:panel_72110599-43d0-4e7e-8821-55e92670d181\",\"type\":\"lens\"},{\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"name\":\"bcd0181c-dbdf-4165-8011-b1211970232c:indexpattern-datasource-layer-75249dd3-e213-44a7-ab24-e155c7bff23c\",\"type\":\"index-pattern\"},{\"id\":\"90943e30-9a47-11e8-b64d-95841ca0b247\",\"name\":\"bcd0181c-dbdf-4165-8011-b1211970232c:568ef039-09f6-47e4-adae-30f449514d4b\",\"type\":\"index-pattern\"}],\"type\":\"dashboard\",\"typeMigrationVersion\":\"8.9.0\",\"updated_at\":\"2023-12-08T23:02:45.161Z\",\"version\":\"WzE0MSwzXQ==\"}\r\n{\"excludedObjects\":[],\"excludedObjectsCount\":0,\"exportedCount\":2,\"missingRefCount\":1,\"missingReferences\":[{\"id\":\"67a260e2-01d2-44ae-8c3c-448829aebe0c\",\"type\":\"lens\"}]}\r\n```\r\n</details>","sha":"644c61cdc699799523cb62beaacad67d39b12de7"}}]}] BACKPORT--> Co-authored-by: Drew Tate <[email protected]>
Steps
Note: The issue only happens when filter is contained in the lens visualization. If you just add the filter to the dashboard, the problem does not exist.
The text was updated successfully, but these errors were encountered: