Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Comma Seperated Filter Values #6670

Open
landon-lengyel opened this issue Apr 29, 2024 · 3 comments
Open

[BUG] Comma Seperated Filter Values #6670

landon-lengyel opened this issue Apr 29, 2024 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@landon-lengyel
Copy link

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 landon-lengyel added bug Something isn't working untriaged labels Apr 29, 2024
@abbyhu2000 abbyhu2000 added good first issue Good for newcomers and removed untriaged labels May 14, 2024
@abbyhu2000
Copy link
Member

Was able to reproduce this error during triage

@ashwin-pc
Copy link
Member

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

@AMoo-Miki
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants