-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution]: Auto suggestion custom query filters are not displaying while user click on custom query filter bar. #144229
Comments
Pinging @elastic/security-solution (Team: SecuritySolution) |
@karanbirsingh-qasource Please review. |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Why was this upgraded from |
This significantly affects the UX in multiple parts of the app where we expose the query bar so I think it's important to address in this release. |
Related: #81299 |
After researching this issue, we can break it down in two parts:
Issue 1. will be resolved here by updating the format of the index pattern to include two additional fields Issue 2. is proving more difficult to resolve. I believe between the change introduced here where unified search switched from Now the issue here is twofold. One, we may not want values to be suggested from a data view with a title that matches or partially matches (although partial matching of titles does not seem to work) the multi-target index pattern provided to the autosuggest function. The more immediate issue is that since there is no After briefly examining the cypress tests I found this autosuggest value issue did not fail our cypress tests because our cypress tests are testing creating a rule with a data view. I did not see a test where we create a rule with a multi-target index pattern. I will point out that the autosuggest does work when the data source selected is a data view (unless the selected data view is the security solution default dataview which contains the .alerts index, that fails for the same reasons described above). Selecting a data view directly from the create rules app succeeds because it follows a different code path (outlined here) So when a string "title" is provided the @rylnd @marshallmain @peluja1012 any suggestions for resolving this issue? Happy to jump on a call and walk everyone through the code as well. |
Also in regards to @marshallmain comment here
After testing locally, it seems to me that every place in the app which utilizes the unified search bar is running into this issue. Briefly looking at the code I believe the autosuggest values for overview / timeline page are coming from a bsearch in timeline but I could be mistaken. Either way it might be good to have the other areas in threat hunting corroborate these findings. |
We have tested this issue on 8.6.0-BC1 build and have checked all the pages where we can use the unified search bar and observed that the auto suggested fields are not populating on the below shared screenshot pages. Screenshot:
Please do let us know if anything else is required from our end. |
@dhurley14 please take a look at the above observations, thanks! |
Update from today: A few of us (cc: @stephmilovic @YulNaumenko @XavierM ) met today to look at the differences between the change needed for the rule query bar vs the query bar (SearchBar component) on the other app pages in the Security Solution. After inspecting the functional changes necessary for the SearchBar component to function in the Security Solution we decided it would be best to pursue a much smaller and less risky change in the unified search plugin code. The degree of difficulty to make the required changes in sourcerer is fairly high and would require extensive testing to reduce the likelihood of introducing new bugs. Seeing as this is functionality that is broken in 8.6 and with the second BC set to come tomorrow, the smaller and less risky choice makes the most sense when considering the time restrictions we are operating under. With that in mind, @mattkime said he would take a look at it over the next day or so and try to determine an optimal fix. For now, @stephmilovic has opened a draft PR available here. Currently, search remains broken across the app. |
@samratbhadra-qasource can you please confirm this fix? |
We have validated this issue on the latest 8.6.0-BC4 build and observed that the issue is fixed. Please find below the testing details: Build Details: Screen-Recording: Home.-.Elastic.-.Google.Chrome.2022-12-01.11-01-21.mp4Hence, closing this issue and marking it issue as QA Validated. cc: @MadameSheema |
Describe the bug:
Auto suggestion custom query filters are not displaying while user click on custom query filter bar.
Build Details:
Preconditions
Steps to Reproduce
Actual Result
Auto suggestion custom query filters are not displaying while user click on custom query filter bar.
Expected Result
Auto suggestion custom query filters should display while user click on custom query filter bar.
Screen-Recording:
Rules.-.Kibana.-.Google.Chrome.2022-10-31.14-18-06.mp4
The text was updated successfully, but these errors were encountered: