OpenSearch-Dashboards icon indicating copy to clipboard operation
OpenSearch-Dashboards copied to clipboard

[BUG] Comma Seperated Filter Values

Open landon-lengyel opened this issue 1 year ago • 3 comments

Describe the bug When using the multi-value filters ("is one of", "is not one of") I found that pasting multiple comma separated values resulted in some strange behavior. Hitting enter only inputs the last value (and results in issues searching). Clicking on the dropdown which says "Add each item separated by ," does nothing.

To Reproduce Steps to reproduce the behavior:

  1. Go to Dashboards, Discover
  2. Have a few comma separated values in your clipboard. Such as: 1234,123,12
  3. Add a filter, choose a field, and an multi-value operator ("is one of", "is not one of")
  4. Paste your values and hit enter, or click on the dropdown.

Expected behavior The UI would seem to imply based on the text and newline symbol that simply hitting the 'enter' key, or clicking on the dropdown which says "Add each item separated by ," will result in those values being added as separate values. In reality, only clicking away from the operator selection box does that.

OpenSearch Version 2.13.0

Dashboards Version 2.13.0

Plugins

  • OpenSearch Security

Screenshots Screenshot 2024-04-29 083639 Screenshot 2024-04-29 083945

Host/Environment (please complete the following information):

  • OS: Windows 11
  • Browser and version: Firefox 125.0.2

Additional context

landon-lengyel avatar Apr 29 '24 14:04 landon-lengyel

Was able to reproduce this error during triage

abbyhu2000 avatar May 14 '24 17:05 abbyhu2000

This does not happen in OUI and is an OSD specific bug. https://oui.opensearch.org/1.6/#/forms/combo-box

ashwin-pc avatar May 14 '24 17:05 ashwin-pc

There is a different kind of issue with OUI: Adding 1, 2, 3 to OUIComboBox with delimiter, none of them are added to the options list (in the drop down) but if we delete the pill for the last one, 3, it is added to the options list. However, deleting the other ones, 1 and 2, does not add them to the options list.

AMoo-Miki avatar May 14 '24 17:05 AMoo-Miki