x} />
+ );
component.find('[data-test-subj="refreshIndicesButton"]').simulate('click');
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/empty_state/empty_state.tsx b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/empty_state/empty_state.tsx
index 676f4d38f409b..3ee5d1a0e96f1 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/empty_state/empty_state.tsx
+++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/components/empty_state/empty_state.tsx
@@ -22,8 +22,15 @@ import React from 'react';
import { EuiCallOut, EuiTextColor, EuiLink, EuiButton } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
+import { IBasePath } from 'kibana/public';
-export const EmptyState = ({ onRefresh }: { onRefresh: () => void }) => (
+export const EmptyState = ({
+ onRefresh,
+ prependBasePath,
+}: {
+ onRefresh: () => void;
+ prependBasePath: IBasePath['prepend'];
+}) => (
void }) => (
),
learnHowLink: (
-
+
void }) => (
),
getStartedLink: (
-
+
x),
};
describe('CreateIndexPatternWizard', () => {
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/create_index_pattern_wizard.tsx b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/create_index_pattern_wizard.tsx
index 4166d48349d35..a1a263fe88923 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/create_index_pattern_wizard.tsx
+++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/create_index_pattern_wizard.tsx
@@ -35,6 +35,7 @@ import {
SavedObjectsClient,
IUiSettingsClient,
OverlayStart,
+ IBasePath,
} from '../../../../../../../../core/public';
import { DataPublicPluginStart } from '../../../../../../../../plugins/data/public';
import { IndexPatternCreationConfig } from '../../../../../../../../plugins/index_pattern_management/public';
@@ -50,6 +51,7 @@ interface CreateIndexPatternWizardProps {
uiSettings: IUiSettingsClient;
changeUrl: (url: string) => void;
openConfirm: OverlayStart['openConfirm'];
+ prependBasePath: IBasePath['prepend'];
};
}
@@ -235,7 +237,12 @@ export class CreateIndexPatternWizard extends Component<
const hasDataIndices = allIndices.some(({ name }: MatchedIndex) => !name.startsWith('.'));
if (!hasDataIndices && !isIncludingSystemIndices && !remoteClustersExist) {
- return ;
+ return (
+
+ );
}
if (step === 1) {
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/index.js b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/index.js
index ed1fc026c560c..2762a4f6e8726 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/index.js
+++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/index.js
@@ -45,6 +45,7 @@ uiRoutes.when('/management/kibana/index_pattern', {
$scope.$evalAsync(() => kbnUrl.changePath(url));
},
openConfirm: npStart.core.overlays.openConfirm,
+ prependBasePath: npStart.core.http.basePath.prepend,
};
const initialQuery = $routeParams.id ? decodeURIComponent($routeParams.id) : undefined;
diff --git a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/tabs.tsx b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/tabs.tsx
index 51c0bf438ad38..c727dcd3e3c65 100644
--- a/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/tabs.tsx
+++ b/src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/tabs.tsx
@@ -50,14 +50,18 @@ interface TabsProps extends Pick {
};
}
+const searchAriaLabel = i18n.translate('kbn.management.editIndexPattern.fields.searchAria', {
+ defaultMessage: 'Search fields',
+});
+
const filterAriaLabel = i18n.translate('kbn.management.editIndexPattern.fields.filterAria', {
- defaultMessage: 'Filter',
+ defaultMessage: 'Filter field types',
});
const filterPlaceholder = i18n.translate(
'kbn.management.editIndexPattern.fields.filterPlaceholder',
{
- defaultMessage: 'Filter',
+ defaultMessage: 'Search',
}
);
@@ -109,7 +113,7 @@ export function Tabs({ config, indexPattern, fields, services, history, location
value={fieldFilter}
onChange={e => setFieldFilter(e.target.value)}
data-test-subj="indexPatternFieldFilter"
- aria-label={filterAriaLabel}
+ aria-label={searchAriaLabel}
/>
{type === TAB_INDEXED_FIELDS && indexedFieldTypes.length > 0 && (
@@ -119,6 +123,7 @@ export function Tabs({ config, indexPattern, fields, services, history, location
value={indexedFieldTypeFilter}
onChange={e => setIndexedFieldTypeFilter(e.target.value)}
data-test-subj="indexedFieldTypeFilterDropdown"
+ aria-label={filterAriaLabel}
/>
)}
diff --git a/src/legacy/core_plugins/kibana/server/lib/__tests__/relationships.js b/src/legacy/core_plugins/kibana/server/lib/__tests__/relationships.js
index b06a5b443e709..e5d43fec4e59c 100644
--- a/src/legacy/core_plugins/kibana/server/lib/__tests__/relationships.js
+++ b/src/legacy/core_plugins/kibana/server/lib/__tests__/relationships.js
@@ -85,7 +85,7 @@ const savedObjectsManagement = getManagementaMock({
},
getInAppUrl(obj) {
return {
- path: `/app/kibana#/visualize/edit/${encodeURIComponent(obj.id)}`,
+ path: `/app/visualize#/edit/${encodeURIComponent(obj.id)}`,
uiCapabilitiesPath: 'visualize.show',
};
},
@@ -101,7 +101,7 @@ const savedObjectsManagement = getManagementaMock({
},
getInAppUrl(obj) {
return {
- path: `/app/kibana#/discover/${encodeURIComponent(obj.id)}`,
+ path: `/app/discover#//${encodeURIComponent(obj.id)}`,
uiCapabilitiesPath: 'discover.show',
};
},
@@ -200,7 +200,7 @@ describe('findRelationships', () => {
title: 'Foo',
editUrl: '/management/kibana/objects/savedVisualizations/1',
inAppUrl: {
- path: '/app/kibana#/visualize/edit/1',
+ path: '/app/visualize#/edit/1',
uiCapabilitiesPath: 'visualize.show',
},
},
@@ -214,7 +214,7 @@ describe('findRelationships', () => {
title: 'Bar',
editUrl: '/management/kibana/objects/savedVisualizations/2',
inAppUrl: {
- path: '/app/kibana#/visualize/edit/2',
+ path: '/app/visualize#/edit/2',
uiCapabilitiesPath: 'visualize.show',
},
},
@@ -228,7 +228,7 @@ describe('findRelationships', () => {
title: 'FooBar',
editUrl: '/management/kibana/objects/savedVisualizations/3',
inAppUrl: {
- path: '/app/kibana#/visualize/edit/3',
+ path: '/app/visualize#/edit/3',
uiCapabilitiesPath: 'visualize.show',
},
},
@@ -453,7 +453,7 @@ describe('findRelationships', () => {
title: 'Foo',
editUrl: '/management/kibana/objects/savedVisualizations/1',
inAppUrl: {
- path: '/app/kibana#/visualize/edit/1',
+ path: '/app/visualize#/edit/1',
uiCapabilitiesPath: 'visualize.show',
},
},
@@ -467,7 +467,7 @@ describe('findRelationships', () => {
title: 'Bar',
editUrl: '/management/kibana/objects/savedVisualizations/2',
inAppUrl: {
- path: '/app/kibana#/visualize/edit/2',
+ path: '/app/visualize#/edit/2',
uiCapabilitiesPath: 'visualize.show',
},
},
@@ -481,7 +481,7 @@ describe('findRelationships', () => {
title: 'FooBar',
editUrl: '/management/kibana/objects/savedVisualizations/3',
inAppUrl: {
- path: '/app/kibana#/visualize/edit/3',
+ path: '/app/visualize#/edit/3',
uiCapabilitiesPath: 'visualize.show',
},
},
@@ -567,7 +567,7 @@ describe('findRelationships', () => {
title: 'Foo',
editUrl: '/management/kibana/objects/savedVisualizations/1',
inAppUrl: {
- path: '/app/kibana#/visualize/edit/1',
+ path: '/app/visualize#/edit/1',
uiCapabilitiesPath: 'visualize.show',
},
},
@@ -581,7 +581,7 @@ describe('findRelationships', () => {
title: 'Bar',
editUrl: '/management/kibana/objects/savedVisualizations/2',
inAppUrl: {
- path: '/app/kibana#/visualize/edit/2',
+ path: '/app/visualize#/edit/2',
uiCapabilitiesPath: 'visualize.show',
},
},
@@ -595,7 +595,7 @@ describe('findRelationships', () => {
title: 'FooBar',
editUrl: '/management/kibana/objects/savedVisualizations/3',
inAppUrl: {
- path: '/app/kibana#/visualize/edit/3',
+ path: '/app/visualize#/edit/3',
uiCapabilitiesPath: 'visualize.show',
},
},
@@ -609,7 +609,7 @@ describe('findRelationships', () => {
title: 'My Saved Search',
editUrl: '/management/kibana/objects/savedSearches/1',
inAppUrl: {
- path: '/app/kibana#/discover/1',
+ path: '/app/discover#//1',
uiCapabilitiesPath: 'discover.show',
},
},
diff --git a/src/legacy/core_plugins/kibana/server/ui_setting_defaults.js b/src/legacy/core_plugins/kibana/server/ui_setting_defaults.js
index f1dd607527676..275f1cb687e22 100644
--- a/src/legacy/core_plugins/kibana/server/ui_setting_defaults.js
+++ b/src/legacy/core_plugins/kibana/server/ui_setting_defaults.js
@@ -69,7 +69,7 @@ export function getUiSettingDefaults() {
name: i18n.translate('kbn.advancedSettings.defaultRoute.defaultRouteTitle', {
defaultMessage: 'Default route',
}),
- value: '/app/kibana',
+ value: '/app/home',
schema: schema.string({
validate(value) {
if (!value.startsWith('/') || !isRelativeUrl(value)) {
diff --git a/src/legacy/core_plugins/timelion/index.ts b/src/legacy/core_plugins/timelion/index.ts
index 31926f658ec13..9c8ab156d1a79 100644
--- a/src/legacy/core_plugins/timelion/index.ts
+++ b/src/legacy/core_plugins/timelion/index.ts
@@ -62,7 +62,6 @@ const timelionPluginInitializer: LegacyPluginInitializer = ({ Plugin }: LegacyPl
},
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
hacks: [resolve(__dirname, 'public/legacy')],
- mappings: require('./mappings.json'),
uiSettingDefaults: {
'timelion:showTutorial': {
name: i18n.translate('timelion.uiSettings.showTutorialLabel', {
diff --git a/src/legacy/core_plugins/timelion/mappings.json b/src/legacy/core_plugins/timelion/mappings.json
deleted file mode 100644
index eb761cfe46212..0000000000000
--- a/src/legacy/core_plugins/timelion/mappings.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "timelion-sheet": {
- "properties": {
- "description": {
- "type": "text"
- },
- "hits": {
- "type": "integer"
- },
- "kibanaSavedObjectMeta": {
- "properties": {
- "searchSourceJSON": {
- "type": "text"
- }
- }
- },
- "timelion_chart_height": {
- "type": "integer"
- },
- "timelion_columns": {
- "type": "integer"
- },
- "timelion_interval": {
- "type": "keyword"
- },
- "timelion_other_interval": {
- "type": "keyword"
- },
- "timelion_rows": {
- "type": "integer"
- },
- "timelion_sheet": {
- "type": "text"
- },
- "title": {
- "type": "text"
- },
- "version": {
- "type": "integer"
- }
- }
- }
-}
diff --git a/src/legacy/core_plugins/ui_metric/index.ts b/src/legacy/core_plugins/ui_metric/index.ts
deleted file mode 100644
index 2e5be3d7b0a39..0000000000000
--- a/src/legacy/core_plugins/ui_metric/index.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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.
- */
-
-import { resolve } from 'path';
-
-// eslint-disable-next-line import/no-default-export
-export default function(kibana: any) {
- return new kibana.Plugin({
- id: 'ui_metric',
- require: ['kibana', 'elasticsearch'],
- publicDir: resolve(__dirname, 'public'),
- init() {},
- });
-}
diff --git a/src/legacy/core_plugins/ui_metric/package.json b/src/legacy/core_plugins/ui_metric/package.json
deleted file mode 100644
index 3ddcac4eec47f..0000000000000
--- a/src/legacy/core_plugins/ui_metric/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "ui_metric",
- "version": "kibana"
-}
diff --git a/src/legacy/core_plugins/ui_metric/public/index.ts b/src/legacy/core_plugins/ui_metric/public/index.ts
deleted file mode 100644
index 19246b571cb84..0000000000000
--- a/src/legacy/core_plugins/ui_metric/public/index.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * 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 { createUiStatsReporter } from './services/telemetry_analytics';
-export { METRIC_TYPE, UiStatsMetricType } from '@kbn/analytics';
diff --git a/src/legacy/core_plugins/ui_metric/public/services/telemetry_analytics.ts b/src/legacy/core_plugins/ui_metric/public/services/telemetry_analytics.ts
deleted file mode 100644
index 0e517e6ff2244..0000000000000
--- a/src/legacy/core_plugins/ui_metric/public/services/telemetry_analytics.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * 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.
- */
-import { npSetup } from 'ui/new_platform';
-
-export const createUiStatsReporter = (appName: string) => {
- const { usageCollection } = npSetup.plugins;
- return usageCollection.reportUiStats.bind(usageCollection, appName);
-};
diff --git a/src/legacy/server/config/schema.js b/src/legacy/server/config/schema.js
index a66d3b24732f0..87db8c184ad36 100644
--- a/src/legacy/server/config/schema.js
+++ b/src/legacy/server/config/schema.js
@@ -264,7 +264,7 @@ export default () =>
.allow(''),
emsFileApiUrl: Joi.string().default('https://vector.maps.elastic.co'),
emsTileApiUrl: Joi.string().default('https://tiles.maps.elastic.co'),
- emsLandingPageUrl: Joi.string().default('https://maps.elastic.co/v7.7'),
+ emsLandingPageUrl: Joi.string().default('https://maps.elastic.co/v7.8'),
emsFontLibraryUrl: Joi.string().default(
'https://tiles.maps.elastic.co/fonts/{fontstack}/{range}.pbf'
),
diff --git a/src/legacy/ui/public/_index.scss b/src/legacy/ui/public/_index.scss
index f10718ba58c2c..15a70e0ef7f5a 100644
--- a/src/legacy/ui/public/_index.scss
+++ b/src/legacy/ui/public/_index.scss
@@ -11,7 +11,5 @@
@import './accessibility/index';
@import './directives/index';
@import './error_url_overflow/index';
-@import './exit_full_screen/index';
@import './field_editor/index';
-@import './style_compile/index';
@import '../../../plugins/management/public/components/index';
diff --git a/src/legacy/ui/public/autoload/modules.js b/src/legacy/ui/public/autoload/modules.js
index b40f051a5ec10..94929c8ca26d3 100644
--- a/src/legacy/ui/public/autoload/modules.js
+++ b/src/legacy/ui/public/autoload/modules.js
@@ -25,7 +25,6 @@ import '../private';
import '../promises';
import '../state_management/app_state';
import '../state_management/global_state';
-import '../style_compile';
import '../url';
import '../directives/watch_multi';
import '../react_components';
diff --git a/src/legacy/ui/public/chrome/api/__tests__/nav.js b/src/legacy/ui/public/chrome/api/__tests__/nav.js
index 853ef4ad0b3dc..877da3539828f 100644
--- a/src/legacy/ui/public/chrome/api/__tests__/nav.js
+++ b/src/legacy/ui/public/chrome/api/__tests__/nav.js
@@ -112,66 +112,28 @@ describe('chrome nav apis', function() {
});
});
- describe('internals.trackPossibleSubUrl()', function() {
- it('injects the globalState of the current url to all links for the same app', function() {
- const appUrlStore = new StubBrowserStorage();
- fakedLinks = [
- {
- id: 'kibana:discover',
- baseUrl: `${baseUrl}/app/kibana#discover`,
- subUrlBase: '/app/kibana#discover',
- legacy: true,
- },
- {
- id: 'kibana:visualize',
- baseUrl: `${baseUrl}/app/kibana#visualize`,
- subUrlBase: '/app/kibana#visualize',
- legacy: true,
- },
- {
- id: 'kibana:dashboard',
- baseUrl: `${baseUrl}/app/kibana#dashboards`,
- subUrlBase: '/app/kibana#dashboard',
- legacy: true,
- },
- ];
-
- const { internals } = init({ appUrlStore });
- internals.trackPossibleSubUrl(`${baseUrl}/app/kibana#dashboard?_g=globalstate`);
-
- expect(fakedLinks[0].url).to.be(`${baseUrl}/app/kibana#discover?_g=globalstate`);
- expect(fakedLinks[0].active).to.be(false);
-
- expect(fakedLinks[1].url).to.be(`${baseUrl}/app/kibana#visualize?_g=globalstate`);
- expect(fakedLinks[1].active).to.be(false);
-
- expect(fakedLinks[2].url).to.be(`${baseUrl}/app/kibana#dashboard?_g=globalstate`);
- expect(fakedLinks[2].active).to.be(true);
- });
- });
-
describe('chrome.trackSubUrlForApp()', function() {
it('injects a manual app url', function() {
const appUrlStore = new StubBrowserStorage();
fakedLinks = [
{
- id: 'kibana:visualize',
- baseUrl: `${baseUrl}/app/kibana#visualize`,
- url: `${baseUrl}/app/kibana#visualize`,
- subUrlBase: '/app/kibana#visualize',
+ id: 'visualize',
+ baseUrl: `${baseUrl}/app/visualize#`,
+ url: `${baseUrl}/app/visualize#`,
+ subUrlBase: '/app/visualize#',
legacy: true,
},
];
const { chrome } = init({ appUrlStore });
const kibanaParsedUrl = absoluteToParsedUrl(
- `${baseUrl}/xyz/app/kibana#visualize/1234?_g=globalstate`,
+ `${baseUrl}/xyz/app/visualize#/1234?_g=globalstate`,
'/xyz'
);
- chrome.trackSubUrlForApp('kibana:visualize', kibanaParsedUrl);
+ chrome.trackSubUrlForApp('visualize', kibanaParsedUrl);
expect(
- coreNavLinks.update.calledWith('kibana:visualize', {
- url: `${baseUrl}/xyz/app/kibana#visualize/1234?_g=globalstate`,
+ coreNavLinks.update.calledWith('visualize', {
+ url: `${baseUrl}/xyz/app/visualize#/1234?_g=globalstate`,
})
).to.be(true);
});
diff --git a/src/legacy/ui/public/new_platform/__mocks__/helpers.ts b/src/legacy/ui/public/new_platform/__mocks__/helpers.ts
index f9f4494929014..e3aa49baeae0d 100644
--- a/src/legacy/ui/public/new_platform/__mocks__/helpers.ts
+++ b/src/legacy/ui/public/new_platform/__mocks__/helpers.ts
@@ -32,6 +32,7 @@ import { chartPluginMock } from '../../../../../plugins/charts/public/mocks';
import { advancedSettingsMock } from '../../../../../plugins/advanced_settings/public/mocks';
import { savedObjectsManagementPluginMock } from '../../../../../plugins/saved_objects_management/public/mocks';
import { visualizationsPluginMock } from '../../../../../plugins/visualizations/public/mocks';
+import { discoverPluginMock } from '../../../../../plugins/discover/public/mocks';
/* eslint-enable @kbn/eslint/no-restricted-paths */
export const pluginsMock = {
@@ -48,6 +49,7 @@ export const pluginsMock = {
visualizations: visualizationsPluginMock.createSetupContract(),
kibanaLegacy: kibanaLegacyPluginMock.createSetupContract(),
savedObjectsManagement: savedObjectsManagementPluginMock.createSetupContract(),
+ discover: discoverPluginMock.createSetupContract(),
}),
createStart: () => ({
data: dataPluginMock.createStartContract(),
@@ -62,6 +64,7 @@ export const pluginsMock = {
visualizations: visualizationsPluginMock.createStartContract(),
kibanaLegacy: kibanaLegacyPluginMock.createStartContract(),
savedObjectsManagement: savedObjectsManagementPluginMock.createStartContract(),
+ discover: discoverPluginMock.createStartContract(),
}),
};
diff --git a/src/legacy/ui/public/new_platform/new_platform.karma_mock.js b/src/legacy/ui/public/new_platform/new_platform.karma_mock.js
index 3caba24748bfa..67422fa659439 100644
--- a/src/legacy/ui/public/new_platform/new_platform.karma_mock.js
+++ b/src/legacy/ui/public/new_platform/new_platform.karma_mock.js
@@ -357,9 +357,6 @@ export const npStart = {
registerRenderer: sinon.fake(),
registerType: sinon.fake(),
},
- devTools: {
- getSortedDevTools: () => [],
- },
kibanaLegacy: {
getApps: () => [],
getForwards: () => [],
@@ -515,6 +512,7 @@ export const npStart = {
docViews: {
DocViewer: () => null,
},
+ savedSearchLoader: {},
},
},
};
diff --git a/src/legacy/ui/public/new_platform/new_platform.ts b/src/legacy/ui/public/new_platform/new_platform.ts
index 1eb46e1a43895..ddf768495a9da 100644
--- a/src/legacy/ui/public/new_platform/new_platform.ts
+++ b/src/legacy/ui/public/new_platform/new_platform.ts
@@ -39,7 +39,7 @@ import {
Start as InspectorStart,
} from '../../../../plugins/inspector/public';
import { ChartsPluginSetup, ChartsPluginStart } from '../../../../plugins/charts/public';
-import { DevToolsSetup, DevToolsStart } from '../../../../plugins/dev_tools/public';
+import { DevToolsSetup } from '../../../../plugins/dev_tools/public';
import { KibanaLegacySetup, KibanaLegacyStart } from '../../../../plugins/kibana_legacy/public';
import { HomePublicPluginSetup } from '../../../../plugins/home/public';
import { SharePluginSetup, SharePluginStart } from '../../../../plugins/share/public';
@@ -105,7 +105,6 @@ export interface PluginsStart {
inspector: InspectorStart;
uiActions: UiActionsStart;
navigation: NavigationPublicPluginStart;
- devTools: DevToolsStart;
kibanaLegacy: KibanaLegacyStart;
share: SharePluginStart;
management: ManagementStart;
diff --git a/src/legacy/ui/public/new_platform/set_services.ts b/src/legacy/ui/public/new_platform/set_services.ts
index 400f31e73ffa1..9d02ad67b3937 100644
--- a/src/legacy/ui/public/new_platform/set_services.ts
+++ b/src/legacy/ui/public/new_platform/set_services.ts
@@ -57,12 +57,14 @@ export function setStartServices(npStart: NpStart) {
dataServices.setIndexPatterns(npStart.plugins.data.indexPatterns);
dataServices.setQueryService(npStart.plugins.data.query);
dataServices.setSearchService(npStart.plugins.data.search);
+
visualizationsServices.setI18n(npStart.core.i18n);
visualizationsServices.setTypes(
pick(npStart.plugins.visualizations, ['get', 'all', 'getAliases'])
);
visualizationsServices.setCapabilities(npStart.core.application.capabilities);
visualizationsServices.setHttp(npStart.core.http);
+ visualizationsServices.setApplication(npStart.core.application);
visualizationsServices.setSavedObjects(npStart.core.savedObjects);
visualizationsServices.setIndexPatterns(npStart.plugins.data.indexPatterns);
visualizationsServices.setFilterManager(npStart.plugins.data.query.filterManager);
@@ -82,4 +84,5 @@ export function setStartServices(npStart: NpStart) {
visualizationTypes: visualizationsServices.getTypes(),
});
visualizationsServices.setSavedVisualizationsLoader(savedVisualizationsLoader);
+ visualizationsServices.setSavedSearchLoader(npStart.plugins.discover.savedSearchLoader);
}
diff --git a/src/legacy/ui/public/style_compile/__tests__/style_compile.js b/src/legacy/ui/public/style_compile/__tests__/style_compile.js
deleted file mode 100644
index 329177f67539b..0000000000000
--- a/src/legacy/ui/public/style_compile/__tests__/style_compile.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * 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.
- */
-
-import $ from 'jquery';
-import expect from '@kbn/expect';
-import ngMock from 'ng_mock';
-describe('styleCompile directive', function() {
- let config;
- let $rootScope;
-
- beforeEach(ngMock.module('kibana'));
- beforeEach(
- ngMock.inject(function($injector) {
- config = $injector.get('config');
- $rootScope = $injector.get('$rootScope');
- })
- );
-
- it('exports a few config values as css', function() {
- const $style = $('#style-compile');
-
- config.set('truncate:maxHeight', 0);
- $rootScope.$apply();
- expect($style.html().trim()).to.be(
- [
- '.truncate-by-height {',
- ' max-height: none;',
- ' display: inline-block;',
- '}',
- '.truncate-by-height:before {',
- ' top: -15px;',
- '}',
- ].join('\n')
- );
-
- config.set('truncate:maxHeight', 15);
- $rootScope.$apply();
- expect($style.html().trim()).to.be(
- [
- '.truncate-by-height {',
- ' max-height: 15px !important;',
- ' display: inline-block;',
- '}',
- '.truncate-by-height:before {',
- ' top: 0px;',
- '}',
- ].join('\n')
- );
- });
-});
diff --git a/src/legacy/ui/public/style_compile/_index.scss b/src/legacy/ui/public/style_compile/_index.scss
deleted file mode 100644
index 6dd403d730314..0000000000000
--- a/src/legacy/ui/public/style_compile/_index.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-style-compile {
- display: none;
-}
diff --git a/src/legacy/ui/public/style_compile/index.js b/src/legacy/ui/public/style_compile/index.js
deleted file mode 100644
index 47496328b9bea..0000000000000
--- a/src/legacy/ui/public/style_compile/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * 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.
- */
-
-import './style_compile';
diff --git a/src/legacy/ui/public/style_compile/style_compile.css.tmpl b/src/legacy/ui/public/style_compile/style_compile.css.tmpl
deleted file mode 100644
index 943b459acc565..0000000000000
--- a/src/legacy/ui/public/style_compile/style_compile.css.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-.truncate-by-height {
- max-height: <%= truncateMaxHeight %>;
- display: inline-block;
-}
-.truncate-by-height:before {
- top: <%= truncateGradientTop %>;
-}
diff --git a/src/legacy/ui/public/style_compile/style_compile.js b/src/legacy/ui/public/style_compile/style_compile.js
deleted file mode 100644
index 5b53947e6eb00..0000000000000
--- a/src/legacy/ui/public/style_compile/style_compile.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * 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.
- */
-
-import _ from 'lodash';
-import $ from 'jquery';
-import '../config';
-import { uiModules } from '../modules';
-import cssTmpl from './style_compile.css.tmpl';
-
-const $style = $('