You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the poc, we demonstrate how to enable visualizations to retrieve and render data from any user-configured datasource on demand. However there are some visualizations from sample dataset[e-commerce], that failed to render. We’ll dive deep into the reason it fails, and go over all viz types. Finally we either propose a more generic solution, or we decide if we want to exclude certain viz types from phase 1 implementation, but providing a path for future dev.
Failed Visualization Types and saved_search embeddable
The above statement is incorrect. Timeline targets index pattern level. We can onboarding Timeline in a similar way as other viz types. First, find the index pattern, then adding logic to specify “ext-searchStrategy” [code ref (https://github.com/opensearch-project/opensearch-dashboards/blob/caaa0efd898c95525c27e25530e894e5c306eafa/src/plugins/vis_type_timeline/server/series_functions/opensearch/index.js#L140-L158)]
[Done] Search embeddable
Discover works with datasource, but when adding the saved search to dashboards it fails to render.
Need to find the place to set dataSource field of searchSource, similar to Discover.js
if (indexPattern.dataSource) {
console.log('zhongnan set datasource from search_emabeddable');
searchSource.dataSource = indexPattern.dataSource;
}
Summary
Search embeddable is based on index pattern, with minor change on the browser side logic, they can fit into the current Poc solution.
Failed visualizations has one thing in common, from the expressions they generated, we can see that they don’t go through opensearchaggs to create the searchSource obj, and call high level search API. Instead, they retrieve the index pattern, build the OpenSearch query from their plugin and directly query OpenSearch by calling the data plugin low level search API. Therefore, we have 2 proposals.
We do special handing inside each viz plugins, to send search request with datasourceId as “searchOption“, based on if “datasource” appears in index pattern, and then apply to the search API call.
A more ideal solution is, we create searchSource from those viz plugins and replace the data plugin Search API calls with searchSource.search(). And since the logic to use different strategy is already added to SearchSource, this will align with it. But this needs more research and even a poc to prove that any user input from those viz types can be transformed into searchSource.
Notes: About High level and low level search API [ref (https://github.com/elastic/kibana/blob/main/src/plugins/data/README.mdx#search)]
The text was updated successfully, but these errors were encountered:
In the poc, we demonstrate how to enable visualizations to retrieve and render data from any user-configured datasource on demand. However there are some visualizations from sample dataset[e-commerce], that failed to render. We’ll dive deep into the reason it fails, and go over all viz types. Finally we either propose a more generic solution, or we decide if we want to exclude certain viz types from phase 1 implementation, but providing a path for future dev.
Failed Visualization Types and saved_search embeddable
[Done]TVSB:
OpenSearch-Dashboards/src/plugins/vis_type_timeseries/server/lib/vis_data/get_table_data.js
Line 47 in e3b34df
[Done with issue]Vega:
[Done]Timeline:
[Done] Search embeddable
Summary
The text was updated successfully, but these errors were encountered: