Skip to content

Commit 7553cc9

Browse files
committed
Move shortenDottedString into kibana_utils
1 parent 96ac1aa commit 7553cc9

10 files changed

Lines changed: 5 additions & 71 deletions

File tree

src/legacy/core_plugins/kibana/common/utils/__tests__/shorten_dotted_string.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/legacy/core_plugins/kibana/common/utils/shorten_dotted_string.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/legacy/core_plugins/kibana/public/discover/kibana_services.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ export { wrapInI18nContext } from 'ui/i18n';
5353
import { search } from '../../../../../plugins/data/public';
5454
export const { getRequestInspectorStats, getResponseInspectorStats, tabifyAggResponse } = search;
5555
// @ts-ignore
56-
export { shortenDottedString } from '../../common/utils/shorten_dotted_string';
57-
// @ts-ignore
5856
export { intervalOptions } from 'ui/agg_types';
5957
export { subscribeWithScope } from '../../../../../plugins/kibana_legacy/public';
6058
// @ts-ignore
6159
export { timezoneProvider } from 'ui/vis/lib/timezone';
6260
export { unhashUrl } from '../../../../../plugins/kibana_utils/public';
61+
export { shortenDottedString } from '../../../../../plugins/kibana_utils/common';
6362
export {
6463
ensureDefaultIndexPattern,
6564
formatMsg,

src/plugins/data/common/field_formats/converters/source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { template, escape, keys } from 'lodash';
21-
import { shortenDottedString } from '../../utils';
21+
import { shortenDottedString } from '../../../../kibana_utils/common';
2222
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
2323
import { FieldFormat } from '../field_format';
2424
import { TextContextTypeConvert, HtmlContextTypeConvert, FIELD_FORMAT_IDS } from '../types';

src/plugins/data/common/field_formats/converters/string.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { asPrettyString } from '../utils';
2222
import { KBN_FIELD_TYPES } from '../../kbn_field_types/types';
2323
import { FieldFormat } from '../field_format';
2424
import { TextContextTypeConvert, FIELD_FORMAT_IDS } from '../types';
25-
import { shortenDottedString } from '../../utils';
25+
import { shortenDottedString } from '../../../../kibana_utils/common';
2626

2727
const TRANSFORM_OPTIONS = [
2828
{

src/plugins/data/public/index_patterns/fields/field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { ObjDefine } from './obj_define';
2323
import { IndexPattern } from '../index_patterns';
2424
import { getNotifications, getFieldFormats } from '../../services';
2525
import { IFieldType, getKbnFieldType, IFieldSubType, FieldFormat } from '../../../common';
26-
import { shortenDottedString } from '../../../common/utils';
26+
import { shortenDottedString } from '../../../../kibana_utils/common';
2727

2828
export type FieldSpec = Record<string, any>;
2929

src/plugins/kibana_utils/common/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ export { url } from './url';
2828
export { now } from './now';
2929
export { calculateObjectHash } from './calculate_object_hash';
3030
export { defaultFeedbackMessage } from './default_feedback_message';
31+
export { shortenDottedString } from './utils';

src/plugins/data/common/utils/index.ts renamed to src/plugins/kibana_utils/common/utils/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@
1717
* under the License.
1818
*/
1919

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

src/plugins/data/common/utils/shorten_dotted_string.test.ts renamed to src/plugins/kibana_utils/common/utils/shorten_dotted_string.test.ts

File renamed without changes.

src/plugins/data/common/utils/shorten_dotted_string.ts renamed to src/plugins/kibana_utils/common/utils/shorten_dotted_string.ts

File renamed without changes.

0 commit comments

Comments
 (0)