Skip to content

Commit

Permalink
[TSVB] Remove deprecated IFieldType (#110404)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
DianaDerevyankina and kibanamachine committed Aug 30, 2021
1 parent 709bc13 commit fdd39f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ import { aggToComponent } from '../lib/agg_to_component';
import { isMetricEnabled } from '../../lib/check_ui_restrictions';
import { UnsupportedAgg } from './unsupported_agg';
import { TemporaryUnsupportedAgg } from './temporary_unsupported_agg';
import type { Metric, Panel, Series } from '../../../../common/types';
import type { Metric, Panel, Series, SanitizedFieldType } from '../../../../common/types';
import { DragHandleProps } from '../../../types';
import { TimeseriesUIRestrictions } from '../../../../common/ui_restrictions';
import { IFieldType } from '../../../../../data/common/index_patterns/fields';

interface AggProps extends HTMLAttributes<HTMLElement> {
disableDelete: boolean;
fields: IFieldType[];
fields: Record<string, SanitizedFieldType[]>;
model: Metric;
panel: Panel;
series: Series;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@ import { Agg } from './agg';
import { seriesChangeHandler } from '../lib/series_change_handler';
import { handleAdd, handleDelete } from '../lib/collection_actions';
import { newMetricAggFn } from '../lib/new_metric_agg_fn';
import type { Panel, Series } from '../../../../common/types';
import type { Panel, Series, SanitizedFieldType } from '../../../../common/types';
import type { TimeseriesUIRestrictions } from '../../../../common/ui_restrictions';
import { IFieldType } from '../../../../../data/common/index_patterns/fields';

const DROPPABLE_ID = 'aggs_dnd';

export interface AggsProps {
name: keyof Series;
panel: Panel;
model: Series;
fields: IFieldType[];
fields: Record<string, SanitizedFieldType[]>;
uiRestrictions: TimeseriesUIRestrictions;
onChange(): void;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { IndexPatternsService } from '../../../../../data/common';

import { from } from 'rxjs';
import { AbstractSearchStrategy } from './abstract_search_strategy';
import type { IFieldType } from '../../../../../data/common';
import type { FieldSpec } from '../../../../../data/common';
import type { CachedIndexPatternFetcher } from '../lib/cached_index_pattern_fetcher';
import type {
VisTypeTimeseriesRequestHandlerContext,
Expand All @@ -21,7 +21,7 @@ class FooSearchStrategy extends AbstractSearchStrategy {}

describe('AbstractSearchStrategy', () => {
let abstractSearchStrategy: AbstractSearchStrategy;
let mockedFields: IFieldType[];
let mockedFields: FieldSpec[];
let requestContext: VisTypeTimeseriesRequestHandlerContext;

beforeEach(() => {
Expand Down

0 comments on commit fdd39f5

Please sign in to comment.