-
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
Honor custom label, if set, in percentile and median metric visualizations #7021
Conversation
})); | ||
|
||
it('uses the custom label if it is set', function () { | ||
let vis = new Vis(indexPattern, {}); |
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.
We should use const
instead of let
wherever possible, which is in most places. The only variables in this file that need let
are the three at the top of the initial describe.
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.
Good catch. Fixing this and others in this file as well. Thanks!
This should probably be applied to "percentile ranks" as well. But rather than block this PR further, why don't we get this thing merged so it can go out with alpha2 and then address percentile ranks as a follow up PR? |
LGTM |
@ycombinator Do you think this is backportable to 4.6? |
@ycombinator can you backport this fix to 4.6? |
--------- **Commit 1:** Honor custom label, if set, in percentile and median metric visualizations * Original sha: 4680853 * Authored by Shaunak Kashyap <[email protected]> on 2016-04-22T02:15:31Z **Commit 2:** Using custom label to replace field name * Original sha: b0e8d7c * Authored by Shaunak Kashyap <[email protected]> on 2016-04-22T19:00:23Z **Commit 3:** Using consts instead of lets * Original sha: 7534b38 * Authored by Shaunak Kashyap <[email protected]> on 2016-04-27T18:42:24Z
[backport] PR #7021 to 4.6 - Honor custom label, if set, in percentile and median metric visualizations
For #6246