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

WzSearchBar component malfunction with suggestions that contain " and " or " or " #3325

Closed
Tracked by #4312
Desvelao opened this issue Jun 2, 2021 · 2 comments
Closed
Tracked by #4312
Assignees
Labels
component/search-bar Issues related to the App's search bar component type/enhancement Enhancement issue

Comments

@Desvelao
Copy link
Member

Desvelao commented Jun 2, 2021

Wazuh Elastic Rev
4.x 7.x 400x

Description
The WzSearchBar component can't search when the suggestions values contain the " and " or " or " string.

It is because the query is split by these strings into substrings and provokes a malfunction in the search bar. As consequence, it displays bad suggestions and can't search because thinks the query is not completed.

This could be caused by the regular expression in https://github.com/wazuh/wazuh-kibana-app/blob/4.2-7.10/public/components/wz-search-bar/lib/q-interpreter.ts#L34

Steps to reproduce

  1. Go to Agents and type in the search bar something like name=wazuh and
  2. Check the suggestion or try to do the search

Screenshots
image

@Desvelao Desvelao added the type/bug Bug issue label Jun 2, 2021
@Desvelao Desvelao changed the title WzSearchBar component malfunction with suggestions that contains " and " or " or " WzSearchBar component malfunction with suggestions that contain " and " or " or " Jun 4, 2021
@asteriscos asteriscos assigned asteriscos and unassigned asteriscos Jun 29, 2021
@asteriscos asteriscos added 4.4 and removed 4.3 labels Nov 17, 2021
@AlexRuiz7 AlexRuiz7 added type/enhancement Enhancement issue and removed type/bug Bug issue labels Mar 2, 2022
@snaow snaow moved this to Triage in Release 4.4.0 Jun 13, 2022
@AlexRuiz7 AlexRuiz7 added the component/search-bar Issues related to the App's search bar component label Jul 20, 2022
@AlexRuiz7
Copy link
Member

Might be resolved by #4088

@snaow snaow moved this from Triage to Todo in Release 4.4.0 Aug 24, 2022
@vikman90 vikman90 added this to the Release 4.4.0 milestone Aug 31, 2022
@Machi3mfl
Copy link
Member

This issue was resolved in #4326

Repository owner moved this from Todo to Done in Release 4.4.0 Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/search-bar Issues related to the App's search bar component type/enhancement Enhancement issue
Projects
No open projects
Status: Done
Development

No branches or pull requests

7 participants