Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Sep 3, 2021
1 parent 9417d34 commit fdd5e4c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugins/lens/common/expressions/datatable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ export * from './datatable';
export * from './summary';
export * from './transpose_helpers';
export * from './utils';

export type { DatatableProps } from './types';
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ import type { ExpressionFunctionDefinition } from '../../../../../../src/plugins
import type { LensMultiTable } from '../../types';
import type { MetricConfig } from './types';

interface MetricChartProps {
data: LensMultiTable;
args: MetricConfig;
}

interface MetricRender {
type: 'render';
as: 'lens_metric_chart_renderer';
value: MetricChartProps;
}

export interface MetricChartProps {
data: LensMultiTable;
args: MetricConfig;
}

export const metricChart: ExpressionFunctionDefinition<
'lens_metric_chart',
LensMultiTable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/

import moment from 'moment';
import { Datatable } from 'src/plugins/expressions/public';
import { TimeRange } from 'src/plugins/data/public';
import type { Datatable } from 'src/plugins/expressions/public';
import type { TimeRange } from 'src/plugins/data/public';
import { functionWrapper } from 'src/plugins/expressions/common/expression_functions/specs/tests/utils';

// mock the specific inner variable:
Expand All @@ -22,7 +22,8 @@ jest.mock('../../../../../../src/plugins/data/common/query/timefilter/get_time',
};
});

import { getTimeScale, TimeScaleArgs } from './time_scale';
import { getTimeScale } from './time_scale';
import type { TimeScaleArgs } from './types';

describe('time_scale', () => {
let timeScaleWrapped: (input: Datatable, args: TimeScaleArgs) => Promise<Datatable>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from '@elastic/eui';
import type { LensFilterEvent, LensTableRowContextMenuEvent } from '../../types';
import type { FormatFactory } from '../../../common';
import { LensGridDirection } from '../../../common/expressions';
import type { LensGridDirection } from '../../../common/expressions';
import { VisualizationContainer } from '../../visualization_container';
import { EmptyPlaceholder, findMinMaxByColumnId } from '../../shared_components';
import { LensIconChartDatatable } from '../../assets/chart_datatable';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/

import React, { FC, useEffect } from 'react';
import { CoreStart } from 'kibana/public';
import { UiActionsStart } from 'src/plugins/ui_actions/public';
import type { CoreStart } from 'kibana/public';
import type { UiActionsStart } from 'src/plugins/ui_actions/public';
import type { Start as InspectorStartContract } from 'src/plugins/inspector/public';
import { EuiLoadingChart } from '@elastic/eui';
import {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/lens/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ import type { FormatFactory } from '../common/types';
import type { VisualizationType } from './types';
import { getLensAliasConfig } from './vis_type_alias';
import { visualizeFieldAction } from './trigger_actions/visualize_field_actions';
import { getSearchProvider } from './search_provider';

import type { LensEmbeddableInput } from './embeddable';
import { EmbeddableFactory, LensEmbeddableStartServices } from './embeddable/embeddable_factory';
Expand All @@ -83,6 +82,7 @@ import type { SaveModalContainerProps } from './app_plugin/save_modal_container'
import { createStartServicesGetter } from '../../../../src/plugins/kibana_utils/public';
import { getTimeZone } from './utils';
import { setupExpressions } from './expressions';
import { getSearchProvider } from './search_provider';

export interface LensPluginSetupDependencies {
urlForwarding: UrlForwardingSetup;
Expand Down

0 comments on commit fdd5e4c

Please sign in to comment.