-
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
Custom legends can be specified for filter aggregates #3621
Conversation
@@ -29,7 +29,7 @@ define(function (require) { | |||
|
|||
decorateQuery(query); | |||
|
|||
var label = _.deepGet(query, 'query_string.query') || angular.toJson(query); | |||
var label = filter.label ? filter.label : (_.deepGet(query, 'query_string.query') || angular.toJson(query)); |
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.
Can you not use a ternary here? Make this hard to read.
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.
Done.
I added a |
Should be better now. |
@@ -153,6 +153,14 @@ | |||
font-weight: bold; | |||
} | |||
|
|||
&-growing { |
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.
Not sure on this class naming? Also, this really isn't any kind of vis-editor-agg-header
I updated the CSS definition. |
Looks good, I expect to merge this right after we cut 4.1 |
Great, thanks for your patience :) |
Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then say 'jenkins, test it'. |
Custom legends can be specified for filter aggregates
Saw this merge. Even tested it out on master. Thanks! Extremely helpful! However, as of today, I'm seeing commits going to master requiring Elasticsearch 2.0.0 to run Kibana. Any plan to splice out a 4.2 Kibana release that still supports 1.4.x? |
Has this been in a release? |
^ +1. is this released? Using kibana 4.1.1 build 7489. This is really useful for simplifying dashboards for management types. |
Closes #2245
This PR allows the user to define custom labels in filter aggregates, as shown:
.
It's still WIP and this should also be implemented for range aggregates but it already works.
Let me know what you think :)