Original install method (e.g. download page, yum, from source, etc.): source
Describe the bug:
ExploratoryViewEmbeddable uses static data views defined at x-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.ts. These are created upon the first navigation on the default space.
When user tries to load exploratory view or UX dashboard on a space other than default, data view cannot be retrieved, created or updated through savedObjects client. The first request will fail, but the object will be cached in the browser nonetheless, so the error can only be reproduced once after loading:
Steps to reproduce:
Create a custom space and activate it.
Navigate to UX.
Click on top right menu, Explore data.
Depending on how fast the action is performed, it might be able to load data. If it does, refresh the page.
Notice data view cannot be loaded.
Expected behavior:
ExploratoryViewEmbeddable should be able to load data views regardless of the space. @shahzad31 has suggested migrating from static views to adhoc data views, now supported by lens: https://github.com/elastic/kibana/pull/138732
Kibana version: main
Original install method (e.g. download page, yum, from source, etc.): source
Describe the bug:
ExploratoryViewEmbeddable
uses static data views defined atx-pack/plugins/observability/public/utils/observability_data_views/observability_data_views.ts
. These are created upon the first navigation on thedefault
space.When user tries to load exploratory view or UX dashboard on a space other than
default
, data view cannot be retrieved, created or updated throughsavedObjects
client. The first request will fail, but the object will be cached in the browser nonetheless, so the error can only be reproduced once after loading:Steps to reproduce:
Explore data
.Expected behavior:
ExploratoryViewEmbeddable should be able to load data views regardless of the space. @shahzad31 has suggested migrating from static views to adhoc data views, now supported by lens: https://github.com/elastic/kibana/pull/138732