1) install sample web logs
2) create new canvas work pad
3) Click "Add from library" and add "[Logs] Total Requests and Bytes" map to workpad
4) Click panel actions button and select "Edit map"
5) Add query "bytes > 5000" to map and click "Save and return".
6) notice how the map is no longer rendered.
Problem
Filter notification action opens a popover to show filters and queries applied to the panel.
parentApi is undefined for legacy embeddables so dataViews is set to undefined. For new react embeddables, parentApi is defined by the results of useCanvasApi. parentApi does not implement getAllDataViews, resulting in the failure.
Steps
1) install sample web logs 2) create new canvas work pad 3) Click "Add from library" and add "[Logs] Total Requests and Bytes" map to workpad 4) Click panel actions button and select "Edit map" 5) Add query "bytes > 5000" to map and click "Save and return". 6) notice how the map is no longer rendered.
Problem
Filter notification action opens a popover to show filters and queries applied to the panel.
Filter popover retrieves data views with the following code snippet from https://github.com/elastic/kibana/blob/8.15/src/plugins/dashboard/public/dashboard_actions/filters_notification_popover.tsx#L59
parentApi
is undefined for legacy embeddables sodataViews
is set to undefined. For new react embeddables,parentApi
is defined by the results of useCanvasApi.parentApi
does not implementgetAllDataViews
, resulting in the failure.In 8.15, map embeddable was converted to the new embeddable system causing the regresion.