-
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
[Lens] Allow filtering on metric vis #131601
Conversation
@elasticmachine merge upstream |
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
Pinging @elastic/kibana-app-services (Team:AppServicesSv) |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it's a nice functionality, but I feel like we should maybe add something to indicate what will happen when you click. User gets no message and it's sometimes tricky to see the filter appeared on the dashboard. Sometimes you might not even see the relationship between the click and the filter because the label doesn't match the field name. Even showing a little browser tooltip with 'click to filter' would feel better for me. Or (maybe too invasive though) showing some subtle notification 'filter successfully created!' 😀
May-09-2022.11-15-05.mp4
@ghudgins WDYT?
Apart from it, if we decide to go this route, a small nit:
Count metric can't be meaningfully filtered (it just doesn't create a filter at the moment)
Could we not change the cursor to the pointer when user hovers over the metric where there's no filter to create?
yeah, good point, I’m going to build that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app services changes LGTM
@elasticmachine merge upstream |
I tried to implement this but due to the way filters are wired up right now this is very difficult - it would require changes pretty deep within the filter handling of the data plugin. Due to that I would like to split out this part, what do you think?
|
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, thank you for looking into my comments - this is a great improvement :)
Due to that I would like to split out this part, what do you think?
Definietely, it's a small thing and doesn't happen a lot (probably just for count or formulas?) so I am ok with deprioritizing it. :) Adding to that, maybe you could also add aria
with a message select to filter
when the element is filterable? But that's a similar problem so totally can be left out for now.
Fixes #122879
Makes it possible to filter a single metric visualization:
Filters by "exists" on the selected field:
Kapture.2022-05-06.at.16.18.51.mp4
If the metric is a filtered metric ("filter by" advanced option), it will set that filter instead of exists:
Kapture.2022-05-06.at.16.19.45.mp4
This makes it possible to attach drilldowns to metric visualizations.
Considerations