elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.68k stars 8.23k forks source link

[Discover] Filter editor doesn't allow adding top-level boolean conditions when all top-level conditions have sub-conditions #198745

Open smokris opened 3 weeks ago

smokris commented 3 weeks ago

Steps to reproduce

The structured filter editor panel now looks like this:

Discover filter editor with 2 top-level boolean-or conditions, each having 2 boolean-and conditions

At this point, I'd like to add another top-level boolean-or condition, but the only way to do that is to delete one of the existing sub-conditions. (It's simple enough to delete and re-create empty conditions, but imagine I have already created a complex set of conditions with many is one of options selected — deleting and recreating that would be tedious.)

Proposed solution

Add a button to create another top-level condition of the same type as the existing top-level conditions:

proposed button to add top-level condition

Clicking that button would add another top-level condition:

result of pressing proposed button
elasticmachine commented 3 weeks ago

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

elasticmachine commented 3 weeks ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)