Skip to content

Commit

Permalink
[APM] Replace StaticIndexPattern with IIndexPattern (#51689)
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Dec 3, 2019
1 parent fbb0ad7 commit e9169b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { MemoryRouter } from 'react-router-dom';
import { UpdateBreadcrumbs } from '../UpdateBreadcrumbs';
import * as kibanaCore from '../../../../../../observability/public/context/kibana_core';

jest.mock('ui/index_patterns');
jest.mock('ui/new_platform');

const coreMock = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import moment from 'moment';
import { KibanaRequest } from 'src/core/server';
import { StaticIndexPattern } from 'ui/index_patterns';
import { IIndexPattern } from 'src/plugins/data/common';
import { APMConfig } from '../../../../../../plugins/apm/server';
import {
Expand All @@ -22,7 +21,7 @@ import { ProcessorEvent } from '../../../common/processor_event';
import { getDynamicIndexPattern } from '../index_pattern/get_dynamic_index_pattern';

function decodeUiFilters(
indexPattern: StaticIndexPattern | undefined,
indexPattern: IIndexPattern | undefined,
uiFiltersEncoded?: string
) {
if (!uiFiltersEncoded || !indexPattern) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { StaticIndexPattern } from 'ui/index_patterns';
import { APICaller } from 'src/core/server';
import LRU from 'lru-cache';
import {
Expand Down Expand Up @@ -51,7 +50,7 @@ export const getDynamicIndexPattern = async ({
pattern: patternIndices
});

const indexPattern: StaticIndexPattern = {
const indexPattern: IIndexPattern = {
fields,
title: indexPatternTitle
};
Expand Down

0 comments on commit e9169b1

Please sign in to comment.