From 5ef8871edc455647172fe9fcce9dec615c9c9e12 Mon Sep 17 00:00:00 2001 From: Aleh Zasypkin Date: Thu, 29 Nov 2018 14:18:46 +0100 Subject: [PATCH] [core_plugins/kibana] fix paths. --- .../kibana/common/field_formats/types/__tests__/boolean.js | 2 +- .../kibana/common/field_formats/types/__tests__/bytes.js | 2 +- .../kibana/common/field_formats/types/__tests__/color.js | 2 +- .../kibana/common/field_formats/types/__tests__/date.js | 2 +- .../kibana/common/field_formats/types/__tests__/duration.js | 2 +- .../kibana/common/field_formats/types/__tests__/ip.js | 2 +- .../kibana/common/field_formats/types/__tests__/number.js | 2 +- .../kibana/common/field_formats/types/__tests__/percent.js | 2 +- .../common/field_formats/types/__tests__/relative_date.js | 2 +- .../kibana/common/field_formats/types/__tests__/string.js | 2 +- .../kibana/common/field_formats/types/__tests__/truncate.js | 2 +- .../kibana/common/field_formats/types/__tests__/url.js | 2 +- .../kibana/public/field_formats/__tests__/_conformance.js | 2 +- .../kibana/public/management/sections/objects/_view.js | 2 +- .../core_plugins/kibana/public/visualize/editor/editor.js | 2 +- .../core_plugins/kibana/server/lib/__tests__/manage_uuid.js | 4 ++-- .../routes/api/management/saved_objects/relationships.js | 2 +- test/functional/apps/dashboard/_create_and_add_embeddables.js | 2 +- test/functional/apps/dashboard/_dashboard_state.js | 2 +- test/functional/apps/dashboard/_panel_controls.js | 2 +- test/functional/page_objects/dashboard_page.js | 2 +- test/functional/page_objects/visualize_page.js | 2 +- 22 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/boolean.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/boolean.js index a96409bbce44..12366aed2637 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/boolean.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/boolean.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createBoolFormat } from '../boolean'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const BoolFormat = createBoolFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/bytes.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/bytes.js index f0ece59128e0..e4e3ffb39287 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/bytes.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/bytes.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createBytesFormat } from '../bytes'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const BytesFormat = createBytesFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/color.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/color.js index e00c4c9cb455..394432618d47 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/color.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/color.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createColorFormat } from '../color'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const ColorFormat = createColorFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/date.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/date.js index 45748d086045..a4ef18151f81 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/date.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/date.js @@ -20,7 +20,7 @@ import expect from 'expect.js'; import moment from 'moment-timezone'; import { createDateFormat } from '../date'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const DateFormat = createDateFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/duration.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/duration.js index 620668fa9416..79f6860c15dd 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/duration.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/duration.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createDurationFormat } from '../duration'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const DurationFormat = createDurationFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/ip.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/ip.js index ff3af3b2e301..0b513d756bf9 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/ip.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/ip.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createIpFormat } from '../ip'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const IpFormat = createIpFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/number.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/number.js index 100f035ac7d4..63418899acc9 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/number.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/number.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createNumberFormat } from '../number'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const NumberFormat = createNumberFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/percent.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/percent.js index ad2ba502d605..e7ef14625cdd 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/percent.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/percent.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createPercentFormat } from '../percent'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const PercentFormat = createPercentFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/relative_date.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/relative_date.js index 551da872c77f..7134b963efbe 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/relative_date.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/relative_date.js @@ -20,7 +20,7 @@ import expect from 'expect.js'; import moment from 'moment-timezone'; import { createRelativeDateFormat } from '../relative_date'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const RelativeDateFormat = createRelativeDateFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/string.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/string.js index 74fb0e1f886b..ed2d3d28462b 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/string.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/string.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createStringFormat } from '../string'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const StringFormat = createStringFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/truncate.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/truncate.js index ca52dfd01000..0533701df293 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/truncate.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/truncate.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createTruncateFormat } from '../truncate'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const TruncateFormat = createTruncateFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/url.js b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/url.js index 45fc4ed3dae1..393ffc4516c5 100644 --- a/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/url.js +++ b/src/legacy/core_plugins/kibana/common/field_formats/types/__tests__/url.js @@ -19,7 +19,7 @@ import expect from 'expect.js'; import { createUrlFormat } from '../url'; -import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../../ui/field_formats/field_format'; const UrlFormat = createUrlFormat(FieldFormat); diff --git a/src/legacy/core_plugins/kibana/public/field_formats/__tests__/_conformance.js b/src/legacy/core_plugins/kibana/public/field_formats/__tests__/_conformance.js index 9e1f6015bd35..9887dd4bbf76 100644 --- a/src/legacy/core_plugins/kibana/public/field_formats/__tests__/_conformance.js +++ b/src/legacy/core_plugins/kibana/public/field_formats/__tests__/_conformance.js @@ -21,7 +21,7 @@ import _ from 'lodash'; import expect from 'expect.js'; import chrome from 'ui/chrome'; import { fieldFormats } from 'ui/registry/field_formats'; -import { FieldFormat } from '../../../../../ui/field_formats/field_format'; +import { FieldFormat } from '../../../../../../ui/field_formats/field_format'; const config = chrome.getUiSettingsClient(); diff --git a/src/legacy/core_plugins/kibana/public/management/sections/objects/_view.js b/src/legacy/core_plugins/kibana/public/management/sections/objects/_view.js index 86b2e0d5599c..413be5c0b32f 100644 --- a/src/legacy/core_plugins/kibana/public/management/sections/objects/_view.js +++ b/src/legacy/core_plugins/kibana/public/management/sections/objects/_view.js @@ -26,7 +26,7 @@ import uiRoutes from 'ui/routes'; import { uiModules } from 'ui/modules'; import { fatalError, toastNotifications } from 'ui/notify'; import 'ui/accessibility/kbn_ui_ace_keyboard_mode'; -import { castEsToKbnFieldTypeName } from '../../../../../../utils'; +import { castEsToKbnFieldTypeName } from '../../../../../../../utils'; import { SavedObjectsClientProvider } from 'ui/saved_objects'; import { isNumeric } from 'ui/utils/numeric'; diff --git a/src/legacy/core_plugins/kibana/public/visualize/editor/editor.js b/src/legacy/core_plugins/kibana/public/visualize/editor/editor.js index b501d84f10ac..5f1de5cd2955 100644 --- a/src/legacy/core_plugins/kibana/public/visualize/editor/editor.js +++ b/src/legacy/core_plugins/kibana/public/visualize/editor/editor.js @@ -42,7 +42,7 @@ import { absoluteToParsedUrl } from 'ui/url/absolute_to_parsed_url'; import { migrateLegacyQuery } from 'ui/utils/migrate_legacy_query'; import { recentlyAccessed } from 'ui/persisted_log'; import { timefilter } from 'ui/timefilter'; -import { getVisualizeLoader } from '../../../../../ui/public/visualize/loader'; +import { getVisualizeLoader } from '../../../../../../ui/public/visualize/loader'; import { showShareContextMenu, ShareContextMenuExtensionsRegistryProvider } from 'ui/share'; import { getUnhashableStatesProvider } from 'ui/state_management/state_hashing'; import { showSaveModal } from 'ui/saved_objects/show_saved_object_save_modal'; diff --git a/src/legacy/core_plugins/kibana/server/lib/__tests__/manage_uuid.js b/src/legacy/core_plugins/kibana/server/lib/__tests__/manage_uuid.js index 2aa3953a78bd..80fa79ab64f5 100644 --- a/src/legacy/core_plugins/kibana/server/lib/__tests__/manage_uuid.js +++ b/src/legacy/core_plugins/kibana/server/lib/__tests__/manage_uuid.js @@ -19,10 +19,10 @@ import expect from 'expect.js'; import sinon from 'sinon'; -import { startTestServers } from '../../../../../test_utils/kbn_server'; +import { startTestServers } from '../../../../../../test_utils/kbn_server'; import manageUuid from '../manage_uuid'; -describe('core_plugins/kibana/server/lib', function () { +describe('legacy/core_plugins/kibana/server/lib', function () { describe('manage_uuid', function () { const testUuid = 'c4add484-0cba-4e05-86fe-4baa112d9e53'; let kbnServer; diff --git a/src/legacy/core_plugins/kibana/server/routes/api/management/saved_objects/relationships.js b/src/legacy/core_plugins/kibana/server/routes/api/management/saved_objects/relationships.js index 2525fbebd696..d88cc05c97f8 100644 --- a/src/legacy/core_plugins/kibana/server/routes/api/management/saved_objects/relationships.js +++ b/src/legacy/core_plugins/kibana/server/routes/api/management/saved_objects/relationships.js @@ -20,7 +20,7 @@ import Boom from 'boom'; import Joi from 'joi'; import { findRelationships } from '../../../../lib/management/saved_objects/relationships'; -import { isNotFoundError } from '../../../../../../../server/saved_objects/service/lib/errors'; +import { isNotFoundError } from '../../../../../../../../server/saved_objects/service/lib/errors'; export function registerRelationships(server) { server.route({ diff --git a/test/functional/apps/dashboard/_create_and_add_embeddables.js b/test/functional/apps/dashboard/_create_and_add_embeddables.js index ef0334c18089..c138e3462e80 100644 --- a/test/functional/apps/dashboard/_create_and_add_embeddables.js +++ b/test/functional/apps/dashboard/_create_and_add_embeddables.js @@ -21,7 +21,7 @@ import expect from 'expect.js'; import { VisualizeConstants -} from '../../../../src/core_plugins/kibana/public/visualize/visualize_constants'; +} from '../../../../src/legacy/core_plugins/kibana/public/visualize/visualize_constants'; export default function ({ getService, getPageObjects }) { const retry = getService('retry'); diff --git a/test/functional/apps/dashboard/_dashboard_state.js b/test/functional/apps/dashboard/_dashboard_state.js index a3c0b61d33b5..3125e69d2e20 100644 --- a/test/functional/apps/dashboard/_dashboard_state.js +++ b/test/functional/apps/dashboard/_dashboard_state.js @@ -22,7 +22,7 @@ import expect from 'expect.js'; import { PIE_CHART_VIS_NAME, AREA_CHART_VIS_NAME } from '../../page_objects/dashboard_page'; import { DEFAULT_PANEL_WIDTH, -} from '../../../../src/core_plugins/kibana/public/dashboard/dashboard_constants'; +} from '../../../../src/legacy/core_plugins/kibana/public/dashboard/dashboard_constants'; export default function ({ getService, getPageObjects }) { const PageObjects = getPageObjects(['dashboard', 'visualize', 'header', 'discover']); diff --git a/test/functional/apps/dashboard/_panel_controls.js b/test/functional/apps/dashboard/_panel_controls.js index 1c9a6eea2916..39f1eca46494 100644 --- a/test/functional/apps/dashboard/_panel_controls.js +++ b/test/functional/apps/dashboard/_panel_controls.js @@ -22,7 +22,7 @@ import expect from 'expect.js'; import { PIE_CHART_VIS_NAME } from '../../page_objects/dashboard_page'; import { VisualizeConstants -} from '../../../../src/core_plugins/kibana/public/visualize/visualize_constants'; +} from '../../../../src/legacy/core_plugins/kibana/public/visualize/visualize_constants'; export default function ({ getService, getPageObjects }) { const kibanaServer = getService('kibanaServer'); diff --git a/test/functional/page_objects/dashboard_page.js b/test/functional/page_objects/dashboard_page.js index 0c175ce1b90a..86a98ac4ce9e 100644 --- a/test/functional/page_objects/dashboard_page.js +++ b/test/functional/page_objects/dashboard_page.js @@ -19,7 +19,7 @@ import _ from 'lodash'; -import { DashboardConstants } from '../../../src/core_plugins/kibana/public/dashboard/dashboard_constants'; +import { DashboardConstants } from '../../../src/legacy/core_plugins/kibana/public/dashboard/dashboard_constants'; export const PIE_CHART_VIS_NAME = 'Visualization PieChart'; export const AREA_CHART_VIS_NAME = 'Visualization漢字 AreaChart'; diff --git a/test/functional/page_objects/visualize_page.js b/test/functional/page_objects/visualize_page.js index 7f3ccf9dceb8..8bf93b97c7cc 100644 --- a/test/functional/page_objects/visualize_page.js +++ b/test/functional/page_objects/visualize_page.js @@ -17,7 +17,7 @@ * under the License. */ -import { VisualizeConstants } from '../../../src/core_plugins/kibana/public/visualize/visualize_constants'; +import { VisualizeConstants } from '../../../src/legacy/core_plugins/kibana/public/visualize/visualize_constants'; import Bluebird from 'bluebird'; import expect from 'expect.js'; import Keys from 'leadfoot/keys';