Skip to content

Commit

Permalink
Code revire #1 @lukeelmers
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Jul 31, 2019
1 parent 3959d82 commit 7989aa5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/legacy/core_plugins/data/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
* under the License.
*/

// /// Define plguin function
// /// Define plugin function
import { DataPlugin as Plugin } from './plugin';

export function plugin() {
return new Plugin();
}

// /// Export types
// /// Export types & static code

/** @public types */
export { ExpressionRenderer, ExpressionRendererProps, ExpressionRunner } from './expressions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@
* under the License.
*/
import React from 'react';

// @ts-ignore
import { GaugeSeries } from './series';
import { mountWithIntl } from 'test_utils/enzyme_helpers';

jest.mock('plugins/data', () => {
return {
QueryBarInput: () => <div className="queryBarInput"></div>,
QueryBarInput: () => <div className="queryBarInput" />,
};
});

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

import React from 'react';
// @ts-ignore
import { MetricSeries } from './series';
import { mountWithIntl } from 'test_utils/enzyme_helpers';

jest.mock('plugins/data', () => {
return {
QueryBarInput: () => <div className="queryBarInput"></div>,
QueryBarInput: () => <div className="queryBarInput" />,
};
});

Expand Down
4 changes: 2 additions & 2 deletions src/legacy/ui/public/agg_types/buckets/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import { i18n } from '@kbn/i18n';

import chrome from 'ui/chrome';
import { buildEsQuery } from '@kbn/es-query';
import { setup } from '../../../../core_plugins/data/public/legacy';
import { setup as data } from '../../../../core_plugins/data/public/legacy';

const { getQueryLog } = setup.query.helpers;
const { getQueryLog } = data.query.helpers;
const config = chrome.getUiSettingsClient();

export const filtersBucketAgg = new BucketAggType({
Expand Down
4 changes: 2 additions & 2 deletions x-pack/legacy/plugins/maps/public/kibana_services.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { uiModules } from 'ui/modules';
import { SearchSourceProvider } from 'ui/courier';
import { getRequestInspectorStats, getResponseInspectorStats } from 'ui/courier/utils/courier_inspector_utils';
export { xpackInfo } from 'plugins/xpack_main/services/xpack_info';
import { setup } from '../../../../../src/legacy/core_plugins/data/public/legacy';
import { setup as data } from '../../../../../src/legacy/core_plugins/data/public/legacy';

export const indexPatternService = setup.indexPatterns.indexPatterns;
export const indexPatternService = data.indexPatterns.indexPatterns;

export let SearchSource;

Expand Down

0 comments on commit 7989aa5

Please sign in to comment.