Skip to content

Commit

Permalink
adding to contract and reexporting in ui/agg_response
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Feb 12, 2020
1 parent d5233e0 commit be12e4b
Show file tree
Hide file tree
Showing 8 changed files with 557 additions and 530 deletions.
2 changes: 1 addition & 1 deletion src/legacy/core_plugins/data/common/tabify/_get_columns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { groupBy } from 'lodash';
import { IAggConfig } from '../../agg_types';
import { IAggConfig } from '../../public/search/aggs/agg_config';

export interface AggColumn {
aggConfig: IAggConfig;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@
* under the License.
*/

// @ts-ignore
export { tabifyAggResponse } from './tabify';
export { tabifyGetColumns } from './_get_columns';
3 changes: 3 additions & 0 deletions src/legacy/core_plugins/data/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,7 @@ export {
// search_source
getRequestInspectorStats,
getResponseInspectorStats,
// tabify
tabifyAggResponse,
tabifyGetColumns,
} from './search';
2 changes: 2 additions & 0 deletions src/legacy/core_plugins/data/public/search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
export * from './aggs';
export { getRequestInspectorStats, getResponseInspectorStats } from './utils';
export { serializeAggConfig } from './expressions/utils';
// @ts-ignore
export { tabifyAggResponse, tabifyGetColumns } from '../../common/tabify';
2 changes: 1 addition & 1 deletion src/legacy/ui/public/agg_response/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { buildHierarchicalData } from './hierarchical/build_hierarchical_data';
import { buildPointSeriesData } from './point_series/point_series';
import { tabifyAggResponse } from './tabify/tabify';
import { tabifyAggResponse } from '../../../core_plugins/data/public';

export const aggResponseIndex = {
hierarchical: buildHierarchicalData,
Expand Down
20 changes: 20 additions & 0 deletions src/legacy/ui/public/agg_response/tabify/_get_columns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

export { tabifyGetColumns } from '../../../../core_plugins/data/public';
528 changes: 264 additions & 264 deletions x-pack/plugins/translations/translations/ja-JP.json

Large diffs are not rendered by default.

528 changes: 264 additions & 264 deletions x-pack/plugins/translations/translations/zh-CN.json

Large diffs are not rendered by default.

0 comments on commit be12e4b

Please sign in to comment.