Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[visualize] use IndexPattern instead of IIndexPattern #107193

Merged
merged 1 commit into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Subscription } from 'rxjs';
import { i18n } from '@kbn/i18n';
import { VISUALIZE_EMBEDDABLE_TYPE } from './constants';
import {
IIndexPattern,
IndexPattern,
TimeRange,
Query,
esFilters,
Expand Down Expand Up @@ -47,7 +47,7 @@ const getKeys = <T extends {}>(o: T): Array<keyof T> => Object.keys(o) as Array<

export interface VisualizeEmbeddableConfiguration {
vis: Vis;
indexPatterns?: IIndexPattern[];
indexPatterns?: IndexPattern[];
editPath: string;
editUrl: string;
capabilities: { visualizeSave: boolean; dashboardSave: boolean };
Expand All @@ -69,7 +69,7 @@ export interface VisualizeOutput extends EmbeddableOutput {
editPath: string;
editApp: string;
editUrl: string;
indexPatterns?: IIndexPattern[];
indexPatterns?: IndexPattern[];
visTypeName: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/visualizations/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class VisualizationsPlugin
showNewVisModal,
/**
* creates new instance of Vis
* @param {IIndexPattern} indexPattern - index pattern to use
* @param {IndexPattern} indexPattern - index pattern to use
* @param {VisState} visState - visualization configuration
*/
createVis: async (visType: string, visState: SerializedVis) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { updateOldState } from '../legacy/vis_update_state';
import { extractReferences, injectReferences } from './saved_visualization_references';
import { createSavedSearchesLoader } from '../../../discover/public';
import type { SavedObjectsClientContract } from '../../../../core/public';
import type { IIndexPattern, IndexPatternsContract } from '../../../../plugins/data/public';
import type { IndexPatternsContract } from '../../../../plugins/data/public';
import type { ISavedVis, SerializedVis } from '../types';

export interface SavedVisServices {
Expand Down Expand Up @@ -93,7 +93,7 @@ export function createSavedVisClass(services: SavedVisServices) {
extractReferences,
injectReferences,
id: (opts.id as string) || '',
indexPattern: opts.indexPattern as IIndexPattern,
indexPattern: opts.indexPattern,
defaults: {
title: '',
visState,
Expand Down