From 6567f35660311c8ff02d57f44c6e337332300c7b Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Thu, 22 Mar 2018 16:59:02 -0700 Subject: [PATCH] Fix bug with discover time interval IconTip not interpolating values. (#17359) --- .../kibana/public/discover/controllers/discover.js | 7 +++++++ src/core_plugins/kibana/public/discover/index.html | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core_plugins/kibana/public/discover/controllers/discover.js b/src/core_plugins/kibana/public/discover/controllers/discover.js index f3ade7c5b15b..590c6effc998 100644 --- a/src/core_plugins/kibana/public/discover/controllers/discover.js +++ b/src/core_plugins/kibana/public/discover/controllers/discover.js @@ -281,6 +281,13 @@ function discoverController( $state.index = $scope.indexPattern.id; $state.sort = getSort.array($state.sort, $scope.indexPattern); + $scope.getBucketIntervalToolTipText = () => { + return ( + `This interval creates ${$scope.bucketInterval.scale > 1 ? 'buckets that are too large' : 'too many buckets'} + to show in the selected time range, so it has been scaled to ${$scope.bucketInterval.description }` + ); + }; + $scope.$watchCollection('state.columns', function () { $state.save(); }); diff --git a/src/core_plugins/kibana/public/discover/index.html b/src/core_plugins/kibana/public/discover/index.html index 4ad16c90b46e..cddb522ee5a0 100644 --- a/src/core_plugins/kibana/public/discover/index.html +++ b/src/core_plugins/kibana/public/discover/index.html @@ -119,7 +119,7 @@ Scaled to {{ bucketInterval.description }}