File tree Expand file tree Collapse file tree 4 files changed +3
-180
lines changed
x-pack/plugins/lens/public/indexpattern_datasource Expand file tree Collapse file tree 4 files changed +3
-180
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { CoreSetup } from 'kibana/public';
88import { Storage } from '../../../../../src/plugins/kibana_utils/public' ;
99import { getIndexPatternDatasource } from './indexpattern' ;
1010import { renameColumns } from './rename_columns' ;
11- import { getAutoDate } from './auto_date' ;
1211import { ExpressionsSetup } from '../../../../../src/plugins/expressions/public' ;
1312import {
1413 DataPublicPluginSetup ,
@@ -31,10 +30,9 @@ export class IndexPatternDatasource {
3130
3231 setup (
3332 core : CoreSetup < IndexPatternDatasourceStartPlugins > ,
34- { data : dataSetup , expressions, editorFrame } : IndexPatternDatasourceSetupPlugins
33+ { expressions, editorFrame } : IndexPatternDatasourceSetupPlugins
3534 ) {
3635 expressions . registerFunction ( renameColumns ) ;
37- expressions . registerFunction ( getAutoDate ( { data : dataSetup } ) ) ;
3836
3937 editorFrame . registerDatasource (
4038 core . getStartServices ( ) . then ( ( [ coreStart , { data } ] ) =>
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ function getExpressionForLayer(
7373 . map ( column =>
7474 column . operationType === dateHistogramOperation . type ? column . sourceField : null
7575 )
76- . filter ( field => Boolean ( field ) ) ;
76+ . filter ( ( field ) : field is string => Boolean ( field ) ) ;
7777
7878 return {
7979 type : 'expression' ,
@@ -87,20 +87,7 @@ function getExpressionForLayer(
8787 partialRows : [ false ] ,
8888 includeFormatHints : [ true ] ,
8989 timeField : allDateHistogramFields ,
90- aggConfigs : [
91- {
92- type : 'expression' ,
93- chain : [
94- {
95- type : 'function' ,
96- function : 'lens_auto_date' ,
97- arguments : {
98- aggConfigs : [ JSON . stringify ( aggs ) ] ,
99- } ,
100- } ,
101- ] ,
102- } ,
103- ] ,
90+ aggConfigs : [ JSON . stringify ( aggs ) ] ,
10491 } ,
10592 } ,
10693 {
You can’t perform that action at this time.
0 commit comments