dashboards-search-relevance icon indicating copy to clipboard operation
dashboards-search-relevance copied to clipboard

[FEATURE] Sort Index Dropdown

Open sejli opened this issue 1 year ago • 7 comments

Is your feature request related to a problem?

On domains with a large number of indexes, it may be difficult to find a specific index since the indices list is not sorted, simply displayed what is returned from the backend. image

What solution would you like?

Sort the index array before displaying them. This should be a simple change here.

What alternatives have you considered?

Combing through large dropdown menus is the only other option, but is inconvenient for users.

Do you have any additional context?

The ML Playground has a similar fix implemented.

sejli avatar Sep 20 '23 21:09 sejli

I can pick up this issue.

frankschlehofer avatar Sep 28 '23 14:09 frankschlehofer

For this, please use ComboBox with singleSelection={{ asPlainText: true }} instead of Select. This will also make the index list searchable.

kgcreative avatar Oct 10 '23 22:10 kgcreative

@ashwin-pc -> would this be a good candidate to utilize the new data source component?

kgcreative avatar Oct 10 '23 22:10 kgcreative

@kgcreative yes, the new component should solve this issue. @frankschlehofer there is a new DataSources component thats exposed by the data plugin that should allow the user to use filter the datasource that they need from a long list. https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/plugins/data/public/data_sources/datasource_selector/datasource_selectable.tsx

ashwin-pc avatar Oct 12 '23 00:10 ashwin-pc

Hi @ashwin-pc, would the DataSources component replace the ComboBox entirely, or would it be used in addition to the ComboBox. I got the ComboBox without the DataSources working now, so I'm just a little unsure what the DataSources component would be doing exactly. Thanks!

frankschlehofer avatar Oct 26 '23 20:10 frankschlehofer

The current implementation is a combo box. @shanilpa is working on the future iteration of the datasource selector. He is the best person to ask this question to :)

ashwin-pc avatar Dec 13 '23 03:12 ashwin-pc

For now let's align on combo box as an incremental improvement. We can consider the data source component once the future iteration is a bit more defined

kgcreative avatar Dec 13 '23 06:12 kgcreative

[Search Triage] @frankschlehofer Hey, Are you still working on this?

sandeshkr419 avatar Jan 08 '25 17:01 sandeshkr419