Skip to content

Commit

Permalink
remove StaticIndexPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Jul 22, 2019
1 parent 9bd8719 commit 78bf464
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/core/server/saved_objects/service/lib/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export class SavedObjectsRepository {
search,
defaultSearchOperator,
searchFields,
type: types,
type: allowedTypes,
sortField,
sortOrder,
namespace,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* under the License.
*/

import { StaticIndexPattern } from 'ui/index_patterns';
import { schemaMock } from '../../../schema/schema.mock';
import { SavedObjectsIndexPattern } from '../../saved_objects_client';
import { getQueryParams } from './query_params';

const SCHEMA = schemaMock.create();
Expand Down Expand Up @@ -62,7 +62,7 @@ const MAPPINGS = {
},
},
};
const INDEX_PATTERN: StaticIndexPattern = {
const INDEX_PATTERN: SavedObjectsIndexPattern = {
fields: [
{
aggregatable: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
* under the License.
*/

import { StaticIndexPattern } from 'ui/index_patterns';

import { getRootPropertiesObjects, IndexMapping } from '../../../mappings';
import { SavedObjectsSchema } from '../../../schema';
import { SavedObjectsIndexPattern } from '../../saved_objects_client';
import { convertKueryToElasticSearchQuery } from '../kuery_utils';

/**
Expand Down Expand Up @@ -94,7 +93,7 @@ interface QueryParams {
defaultSearchOperator?: string;
hasReference?: HasReferenceQueryParams;
filter?: string;
indexPattern?: StaticIndexPattern;
indexPattern?: SavedObjectsIndexPattern;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
*/

import Boom from 'boom';
import { StaticIndexPattern } from 'ui/index_patterns';

import { IndexMapping } from '../../../mappings';
import { SavedObjectsSchema } from '../../../schema';
import { SavedObjectsIndexPattern } from '../../saved_objects_client';
import { getQueryParams } from './query_params';
import { getSortingParams } from './sorting_params';

Expand All @@ -38,7 +38,7 @@ interface GetSearchDslOptions {
id: string;
};
filter?: string;
indexPattern?: StaticIndexPattern;
indexPattern?: SavedObjectsIndexPattern;
}

export function getSearchDsl(
Expand Down

0 comments on commit 78bf464

Please sign in to comment.