Skip to content

Commit

Permalink
convert deep imports to top level imports (#112201)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime authored and kibanamachine committed Sep 15, 2021
1 parent 64d99bb commit b78a249
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { debounce } from 'lodash';
import { fromKueryExpression, luceneStringToDsl, toElasticsearchQuery } from '@kbn/es-query';
import { estypes } from '@elastic/elasticsearch';
import { Dictionary } from '../../../../../../../common/types/common';
import { IIndexPattern } from '../../../../../../../../../../src/plugins/data/common/index_patterns';
import { IIndexPattern } from '../../../../../../../../../../src/plugins/data/common';
import { Query, QueryStringInput } from '../../../../../../../../../../src/plugins/data/public';

import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { EuiCode, EuiInputPopover } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { fromKueryExpression, luceneStringToDsl, toElasticsearchQuery } from '@kbn/es-query';
import { Query, QueryStringInput } from '../../../../../../../../src/plugins/data/public';
import { IIndexPattern } from '../../../../../../../../src/plugins/data/common/index_patterns';
import { IIndexPattern } from '../../../../../../../../src/plugins/data/common';
import { SEARCH_QUERY_LANGUAGE, ErrorMessage } from '../../../../../common/constants/search';
import { explorerService } from '../../explorer_dashboard_service';
import { InfluencersFilterQuery } from '../../../../../common/types/es_client';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import React from 'react';
import { CustomUrlEditor } from './editor';
import { TIME_RANGE_TYPE, URL_TYPE } from './constants';
import { CustomUrlSettings } from './utils';
import { IIndexPattern } from '../../../../../../../../src/plugins/data/common/index_patterns';
import { IIndexPattern } from '../../../../../../../../src/plugins/data/common';

function prepareTest(customUrl: CustomUrlSettings, setEditCustomUrlFn: (url: UrlConfig) => void) {
const savedCustomUrls = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { isValidLabel } from '../../../util/custom_url_utils';

import { TIME_RANGE_TYPE, URL_TYPE } from './constants';
import { UrlConfig } from '../../../../../common/types/custom_urls';
import { IIndexPattern } from '../../../../../../../../src/plugins/data/common/index_patterns';
import { IIndexPattern } from '../../../../../../../../src/plugins/data/common';

function getLinkToOptions() {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { loadSavedDashboards, loadIndexPatterns } from '../edit_utils';
import { openCustomUrlWindow } from '../../../../../util/custom_url_utils';
import { Job } from '../../../../../../../common/types/anomaly_detection_jobs';
import { UrlConfig } from '../../../../../../../common/types/custom_urls';
import { IIndexPattern } from '../../../../../../../../../../src/plugins/data/common/index_patterns';
import { IIndexPattern } from '../../../../../../../../../../src/plugins/data/common';
import { MlKibanaReactContextValue } from '../../../../../contexts/kibana';

const MAX_NUMBER_DASHBOARDS = 1000;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import { IUiSettingsClient } from 'kibana/public';
import { IIndexPattern } from '../../../../../../../../src/plugins/data/common/index_patterns';
import { IIndexPattern } from '../../../../../../../../src/plugins/data/common';
import { SavedSearchSavedObject } from '../../../../../common/types/kibana';
import { createSearchItems } from './new_job_utils';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
AnomalyChartsEmbeddableOutput,
AnomalyChartsServices,
} from '..';
import type { IndexPattern } from '../../../../../../src/plugins/data/common/index_patterns';
import type { IndexPattern } from '../../../../../../src/plugins/data/common';
import { EmbeddableLoading } from '../common/components/embeddable_loading_fallback';
export const getDefaultExplorerChartsPanelTitle = (jobIds: JobId[]) =>
i18n.translate('xpack.ml.anomalyChartsEmbeddable.title', {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/ml/public/embeddables/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
ANOMALY_SWIMLANE_EMBEDDABLE_TYPE,
} from './constants';
import { MlResultsService } from '../application/services/results_service';
import { IndexPattern } from '../../../../../src/plugins/data/common/index_patterns/index_patterns';
import { IndexPattern } from '../../../../../src/plugins/data/common';

export interface AnomalySwimlaneEmbeddableCustomInput {
jobIds: JobId[];
Expand Down

0 comments on commit b78a249

Please sign in to comment.