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

Allow more control over how new filters are added to the filter bar #14272

Closed
Bargs opened this issue Oct 3, 2017 · 5 comments
Closed

Allow more control over how new filters are added to the filter bar #14272

Bargs opened this issue Oct 3, 2017 · 5 comments
Labels
Feature:Filters Feature:Visualizations Generic visualization features (in case no more specific feature label is available) impact:low Addressing this issue will have a low level of impact on the quality/strength of our product.

Comments

@Bargs
Copy link
Contributor

Bargs commented Oct 3, 2017

Related to #14104

Currently a click or brush on a visualization will always create a new filter pill which is combined with existing filters with an AND. Instead of adding a new filter users often just want to add another optional value to an existing is one of filter. This need becomes particularly acute when input controls are in use because there's currently no way to combine a filter created via a visualization with the filters controlled by the input controls. The input controls try to get around this by automatically merging all filters for the target field but we're getting rid of that to solve #14104.

So to give users more control over how new filters are added to the filter bar we're considering adding a modal that will pop up whenever you create a filter that targets the same field as an existing filter. It will give you the option to create a new filter or merge it with an existing one. Below is a rough sketch of what we're thinking.

filteradd

@Bargs Bargs added :Discovery Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Oct 3, 2017
@trevan
Copy link
Contributor

trevan commented Oct 3, 2017

It would also be nice to negate and remove filters as well. Clicking on graphs will sometimes add multiple filters. Some of those filters, you don't actually want (in my case, I usually remove the time filter but have also removed "higher" filters). Some of the filters you want negated. Right now, they go to the top of the screen which requires you to scroll back up to the top, remove the items, run the search, negate the item, re-run the search. Having it in a pop up before it goes into affect would simplify the workflow and reduce the load on elasticsearch.

@ddrake17
Copy link

ddrake17 commented Feb 9, 2018

+1 for this issue.

I also agree about having an apply dialog where ever the user is in the screen although that sounds like it belongs on a different issue.

@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Filters and removed :Discovery labels Sep 16, 2018
@markharwood
Copy link
Contributor

markharwood commented Apr 29, 2019

We have a more fundamental issue here.
We always assume with filters that we are ANDing filters with any free-text input that may exist in the Lucene/KQL bar. This is a false assumption.
As an example, If I'm searching github commits relating to GIS I may start with a free-text query, "maps". I might look at the results of significant_terms analysis on the structured dirs field to find directories in the repo with a high-concentration of these types of commits e.g, the maps and gis directories. In Sculptor that discovery would look like this:

Kibana

Having selected the gis and maps directories I would then drag these selections alongside the free-text query to make ORs:

Kibana

So now we match commits that say explicitly in the commit message they are something to do with "maps" OR are implicitly something to do with maps because they are making changes in key directories that we established are associated with maps functionality.

There's often more than one way of saying something so ORing structured criteria with unstructured criteria is a basic requirement of a query/filter builder.

@timroes timroes added Team:AppArch and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Mar 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Jun 2, 2021
@exalate-issue-sync exalate-issue-sync bot removed the loe:small Small Level of Effort label May 16, 2022
@ppisljar
Copy link
Member

ppisljar commented Aug 9, 2022

Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment.

@ppisljar ppisljar closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Filters Feature:Visualizations Generic visualization features (in case no more specific feature label is available) impact:low Addressing this issue will have a low level of impact on the quality/strength of our product.
Projects
None yet
Development

No branches or pull requests

7 participants