[Unified Search] Supports complex filters with AND/OR relationships#143928
[Unified Search] Supports complex filters with AND/OR relationships#143928
Conversation
There was a problem hiding this comment.
This looks great. Congrats for all this effort, it was hard I know! I tested:
- Visualize with complex filters and add this ti the dashboard
- TSVB with complex filters and add this ti the dashboard
- Maps with complex filters and add this ti the dashboard
- Vega with complex filters and add this ti the dashboard
- Migration of dashboard with filters from 8.6
- Migration of saved query from 8.6
- Enable and disable the courier:ignore... setting
Everything seems to work fine.
Before merging can we only fix this #143928 (comment)?
Also @lukasolson and @ppisljar are you also ok?
|
I noticed an issue with saved searches when using the new filter feature:
The filter values show up as It works if there's only one filter (also checked this works on Note this only happens with saved searches, it works great as expected when creating new filters on those pages in the search bar on the fly. Saved searches can also be used in Visualize Legacy, but the filter don't show up there, see in this GIF how they are missing from the Visualize Legacy view but reappear if you move to Discover: |
|
Great find @walterra In visualize works fine. Here is an unlinked saved search example, so I guess something goes wrong with the dataview in ml cc @Kunzetsov |
|
@walterra I think that the root cause of this problem lies in how the Let's move on to the ML code and My recommendation is to use the plus I see that with one filter, this also does not work quite right 😢 |
Thanks @alexwizp for the hint! I've created a new issue for ML here with the issues surrounding saved searches. Tested other functionalities of the filters (global pins) and ML changes LGTM. |
andreadelrio
left a comment
There was a problem hiding this comment.
Design changes LGTM, great job! Looking forward to iterating as needed. Pending: add Technical Preview badge.
|
@elasticmachine merge upstream |
|
@timductive, thanks for your review.
Autocomplete is possible only for keywords. Screen.Recording.2022-12-19.at.09.43.33.mov
That is a formatter for values of datetime format. If we'll change that formatter, it will affect all the Kibana.
I guess, that bug is related to the behavior of filters and can be reproducible on main. We have decided to fix it in a separate PR. Screen.Recording.2022-12-15.at.17.26.30.mov |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Any counts in public APIs
Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled in files
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @andreadelrio @Kunzetsov @nlatipov |
|
@timductive thanx a lot for taking the time to review it! To add to Yaroslav's comments:
We didn't do any changes here, we keep the logic that exists in main. I find a very good idea if @andreadelrio agrees. Def something we could consider an a follow up PR
Same here, we keep the logic that exists in main. We coud detect it, I am quite certain. I find it a great idea tbh. I created a enhancement request here #147745 |











Describe the feature:
Closes #144775
This PR allows users to create more than one filter at a time. It enhances the query builder by enabling users to create multiple filters simultaneously. It adds the capability to nest queries and use the logical OR operator in filter pills.
Tasks:
Vis-Editor;App-Services;App-Services;Edit as Query DSLin popover case the filter inside FiltersBuilder is combinedFilter -App-Services;Vis-Editor;FilterLabelcomponent after replaceFIlterBadgecomponent -Vis-Editor;Vis-Editor;Vis-Editor;Vis-Editor;