Open shanilpa opened 3 months ago
If support for multiple queries to appear on the page does eventually come for Discover, how will the datasource selector support all of that? Is it meant to act as an introductory filter for every query that would appear on the page? Would it make more sense to provide every query with its own datasource selector?
Overview
As OpenSearch Dashboards expands to support new data sources (Multiple Data Source, Apache Spark integration, S3 via OpenSearch Observability) there is a growing need to offer a more robust and transparent data selection experience above the simple selector proposed here.
Advanced Data Selection
The advanced data selector aims to solve these key challenges based on the context above:
https://github.com/opensearch-project/OpenSearch-Dashboards/assets/113368824/db629318-46d8-4994-af58-2a874698ef1b
Aid in data understanding
Allowing users to inspect a data set to understand meta data such as the total number of fields, field names, and types to aid in the data selection process![image](https://github.com/opensearch-project/OpenSearch-Dashboards/assets/113368824/367d5b5c-509d-4091-9715-4554f462cf30)
Quick selection through favorites and recently selected
Users are able to more quickly select data through favorites (data sources they frequently selected) and recently selected items. Users can add favorites through the star action or via the selected tab for a group of selections.
![image](https://github.com/opensearch-project/OpenSearch-Dashboards/assets/113368824/6ff1ce49-bac5-4af2-9707-999db87e24f0)
Contextual index pattern creation
Users no longer have to navigate out of Discover to create an index pattern (however if they would like they still can) - they can simply enter a wild card (*) to match indexes that follow the pattern. The index pattern is created on data selection with a default timestamp auto-selected based on some heuristics. Users can leverage the index pattern feature under Dashboards Management to perform index pattern operations.![image](https://github.com/opensearch-project/OpenSearch-Dashboards/assets/113368824/1b8b0463-23e7-4f49-b617-3d4f46b46595)
States
If data connections are not setup users are presented with an empty state to either refresh or deep link to the data source configuration page to setup connections![image](https://github.com/opensearch-project/OpenSearch-Dashboards/assets/113368824/d1204676-43f3-4a45-8433-59128b07b5aa)
In the event data for a specific connection can not be retrieved we present users with an error callout![image](https://github.com/opensearch-project/OpenSearch-Dashboards/assets/113368824/7c56c1b9-2fde-4a9c-9971-c4f3be5cb4cf)