Skip to content

Commit

Permalink
Move shortenDottedString into kibana_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sulemanof committed Mar 16, 2020
1 parent 96ac1aa commit 7553cc9
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 71 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,12 @@ export { wrapInI18nContext } from 'ui/i18n';
import { search } from '../../../../../plugins/data/public';
export const { getRequestInspectorStats, getResponseInspectorStats, tabifyAggResponse } = search;
// @ts-ignore
export { shortenDottedString } from '../../common/utils/shorten_dotted_string';
// @ts-ignore
export { intervalOptions } from 'ui/agg_types';
export { subscribeWithScope } from '../../../../../plugins/kibana_legacy/public';
// @ts-ignore
export { timezoneProvider } from 'ui/vis/lib/timezone';
export { unhashUrl } from '../../../../../plugins/kibana_utils/public';
export { shortenDottedString } from '../../../../../plugins/kibana_utils/common';
export {
ensureDefaultIndexPattern,
formatMsg,
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/common/field_formats/converters/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { template, escape, keys } from 'lodash';
import { shortenDottedString } from '../../utils';
import { shortenDottedString } from '../../../../kibana_utils/common';
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
import { FieldFormat } from '../field_format';
import { TextContextTypeConvert, HtmlContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/common/field_formats/converters/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { asPrettyString } from '../utils';
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
import { FieldFormat } from '../field_format';
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
import { shortenDottedString } from '../../utils';
import { shortenDottedString } from '../../../../kibana_utils/common';

const TRANSFORM_OPTIONS = [
{
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/index_patterns/fields/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { ObjDefine } from './obj_define';
import { IndexPattern } from '../index_patterns';
import { getNotifications, getFieldFormats } from '../../services';
import { IFieldType, getKbnFieldType, IFieldSubType, FieldFormat } from '../../../common';
import { shortenDottedString } from '../../../common/utils';
import { shortenDottedString } from '../../../../kibana_utils/common';

export type FieldSpec = Record<string, any>;

Expand Down
1 change: 1 addition & 0 deletions src/plugins/kibana_utils/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ export { url } from './url';
export { now } from './now';
export { calculateObjectHash } from './calculate_object_hash';
export { defaultFeedbackMessage } from './default_feedback_message';
export { shortenDottedString } from './utils';
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@
* under the License.
*/

/** @internal */
export { shortenDottedString } from './shorten_dotted_string';

0 comments on commit 7553cc9

Please sign in to comment.