Open bhavyarm opened 1 month ago
Pinging @elastic/kibana-visualizations (Team:Visualizations)
Hey @Heenawter , do you have an idea what is going on there? do you believe is something that we are wrongly sending/calling on our end?
Based on the console error, it seems like the "convert to Lens" action is somehow dropping the events
key from the dynamicActionsState
- i.e. the dynamic actions state looks something like dynamicActions: {}
which is causing the isCompatible
check to fail because it always assumes that dynamicActions
has an events
key.
Once the Lens embeddable gets converted and it uses startDynamicActions
, I imagine this will be resolved - but in the mean time, we could change the isCompatible
method to treat the events
key as optional... i.e. make the following change:
public async isCompatible({ embeddable }: EmbeddableApiContext) {
if (!isApiCompatible(embeddable) || getInheritedViewMode(embeddable) !== 'edit') return false;
return (embeddable.dynamicActionsState$.getValue()?.dynamicActions?.events ?? []).length > 0;
}
cc @nreese
Kibana version: 8.16.0 BC2/serverless main QA
Browser version: chrome latest
Browser OS version: OS X
Original install method (e.g. download page, yum, from source, etc.): from staging
Describe the bug: Clicking on edit on upgraded dashboard and then converting one the panels to lens and discarding the change in dashboard makes the panel options for visualize go blank(?)
I am attaching the saved object for the dashboard. In this dashboard -> I clicked on edit -> clicked on convert to lens on "Logstash area chart" -> lens-> save and return to dashboard -> switch to view mode -> the panel options on all the visualize panels went blank.
This is the error in browser console:
saved object export: export_dashboard_6.8.ndjson.zip