diff --git a/src/plugins/timelion/public/directives/timelion_help/timelion_help.js b/src/plugins/timelion/public/directives/timelion_help/timelion_help.js
index 27f29f3a740b..367adc35b6af 100644
--- a/src/plugins/timelion/public/directives/timelion_help/timelion_help.js
+++ b/src/plugins/timelion/public/directives/timelion_help/timelion_help.js
@@ -18,7 +18,7 @@
*/
import template from './timelion_help.html';
-import { i18n } from '@kbn/i18n';
+import { i18n } from '@osd/i18n';
import _ from 'lodash';
import moment from 'moment';
@@ -65,19 +65,19 @@ export function initTimelionHelpDirective(app) {
notValidAdvancedSettingsPath: i18n.translate(
'timelion.help.configuration.notValid.advancedSettingsPathText',
{
- defaultMessage: 'Management / Kibana / Advanced Settings',
+ defaultMessage: 'Management / OpenSearch Dashboards / Advanced Settings',
}
),
validAdvancedSettingsPath: i18n.translate(
'timelion.help.configuration.valid.advancedSettingsPathText',
{
- defaultMessage: 'Management/Kibana/Advanced Settings',
+ defaultMessage: 'Management/OpenSearch Dashboards/Advanced Settings',
}
),
esAsteriskQueryDescription: i18n.translate(
'timelion.help.querying.esAsteriskQueryDescriptionText',
{
- defaultMessage: 'hey Elasticsearch, find everything in my default index',
+ defaultMessage: 'hey OpenSearch, find everything in my default index',
}
),
esIndexQueryDescription: i18n.translate(
@@ -116,7 +116,7 @@ export function initTimelionHelpDirective(app) {
};
getFunctions();
- checkElasticsearch();
+ checkOpenSearch();
}
function getFunctions() {
@@ -124,14 +124,14 @@ export function initTimelionHelpDirective(app) {
$scope.functions.list = resp.data;
});
}
- $scope.recheckElasticsearch = function () {
+ $scope.recheckOpenSearch = function () {
$scope.es.valid = null;
- checkElasticsearch().then(function (valid) {
+ checkOpenSearch().then(function (valid) {
if (!valid) $scope.es.invalidCount++;
});
};
- function checkElasticsearch() {
+ function checkOpenSearch() {
return $http.get('../api/timelion/validate/es').then(function (resp) {
if (resp.data.ok) {
$scope.es.valid = true;
diff --git a/src/plugins/timelion/public/index.html b/src/plugins/timelion/public/index.html
index 0cf64287a3bd..27d95f8a8a81 100644
--- a/src/plugins/timelion/public/index.html
+++ b/src/plugins/timelion/public/index.html
@@ -11,7 +11,7 @@
-
-
+
diff --git a/src/plugins/timelion/public/index.ts b/src/plugins/timelion/public/index.ts
index 6b4213588465..4c2b196b1ca7 100644
--- a/src/plugins/timelion/public/index.ts
+++ b/src/plugins/timelion/public/index.ts
@@ -17,7 +17,7 @@
* under the License.
*/
-import { PluginInitializerContext } from 'kibana/public';
+import { PluginInitializerContext } from 'opensearch-dashboards/public';
import { TimelionPlugin as Plugin } from './plugin';
export function plugin(initializerContext: PluginInitializerContext) {
diff --git a/src/plugins/timelion/public/panels/panel.ts b/src/plugins/timelion/public/panels/panel.ts
index 3512cd96a959..cc4030cf5991 100644
--- a/src/plugins/timelion/public/panels/panel.ts
+++ b/src/plugins/timelion/public/panels/panel.ts
@@ -17,7 +17,7 @@
* under the License.
*/
-import { i18n } from '@kbn/i18n';
+import { i18n } from '@osd/i18n';
interface PanelConfig {
help?: string;
diff --git a/src/plugins/timelion/public/panels/timechart/schema.ts b/src/plugins/timelion/public/panels/timechart/schema.ts
index d874f0d32c9d..081a577b6a31 100644
--- a/src/plugins/timelion/public/panels/timechart/schema.ts
+++ b/src/plugins/timelion/public/panels/timechart/schema.ts
@@ -105,7 +105,7 @@ export function timechartFn(dependencies: TimelionVisualizationDependencies) {
const numberSpan = document.createElement('span');
wrapperSpan.setAttribute('class', 'ngLegendValue');
- wrapperSpan.setAttribute('kbn-accessible-click', '');
+ wrapperSpan.setAttribute('osd-accessible-click', '');
wrapperSpan.setAttribute('ng-click', `toggleSeries(${series._id})`);
wrapperSpan.setAttribute('ng-focus', `focusSeries(${series._id})`);
wrapperSpan.setAttribute('ng-mouseover', `highlightSeries(${series._id})`);
diff --git a/src/plugins/timelion/public/partials/save_sheet.html b/src/plugins/timelion/public/partials/save_sheet.html
index a0e0727f3ec8..0e1656e0b34e 100644
--- a/src/plugins/timelion/public/partials/save_sheet.html
+++ b/src/plugins/timelion/public/partials/save_sheet.html
@@ -9,7 +9,7 @@
class="list-group-item-text"
i18n-id="timelion.topNavMenu.save.saveEntireSheetDescription"
i18n-default-message="You want this option if you mostly use Timelion expressions from within
- the Timelion app and don't need to add Timelion charts to Kibana
+ the Timelion app and don't need to add Timelion charts to OpenSearch Dashboards
dashboards. You may also want this if you make use of references to
other panels."
>
@@ -53,14 +53,14 @@
{
) {
const timelionPanels: Map = new Map();
- const { appMounted, appUnMounted, stop: stopUrlTracker } = createKbnUrlTracker({
+ const { appMounted, appUnMounted, stop: stopUrlTracker } = createOsdUrlTracker({
baseUrl: core.http.basePath.prepend('/app/timelion'),
defaultSubUrl: '#/',
storageKey: `lastUrl:${core.http.basePath.get()}:timelion`,
@@ -76,7 +76,7 @@ export class TimelionPlugin implements Plugin {
toastNotifications: core.notifications.toasts,
stateParams: [
{
- kbnUrlKey: '_g',
+ osdUrlKey: '_g',
stateUpdate$: data.query.state$.pipe(
filter(
({ changes }) => !!(changes.globalFilters || changes.time || changes.refreshInterval)
@@ -102,7 +102,7 @@ export class TimelionPlugin implements Plugin {
order: 8000,
defaultPath: '#/',
euiIconType: 'logoKibana',
- category: DEFAULT_APP_CATEGORIES.kibana,
+ category: DEFAULT_APP_CATEGORIES.opensearchDashboards,
navLinkStatus:
visTypeTimelion.isUiEnabled === false ? AppNavLinkStatus.hidden : AppNavLinkStatus.default,
mount: async (params: AppMountParameters) => {
@@ -133,8 +133,8 @@ export class TimelionPlugin implements Plugin {
});
}
- public start(core: CoreStart, { kibanaLegacy }: { kibanaLegacy: KibanaLegacyStart }) {
- kibanaLegacy.loadFontAwesome();
+ public start(core: CoreStart, { opensearchDashboardsLegacy }: { opensearchDashboardsLegacy: OpenSearchDashboardsLegacyStart }) {
+ opensearchDashboardsLegacy.loadFontAwesome();
}
public stop(): void {
diff --git a/src/plugins/timelion/public/services/_saved_sheet.ts b/src/plugins/timelion/public/services/_saved_sheet.ts
index 0958cce86012..0d2a69e145d9 100644
--- a/src/plugins/timelion/public/services/_saved_sheet.ts
+++ b/src/plugins/timelion/public/services/_saved_sheet.ts
@@ -17,12 +17,12 @@
* under the License.
*/
-import { IUiSettingsClient } from 'kibana/public';
-import { createSavedObjectClass, SavedObjectKibanaServices } from '../../../saved_objects/public';
+import { IUiSettingsClient } from 'opensearch-dashboards/public';
+import { createSavedObjectClass, SavedObjectOpenSearchDashboardsServices } from '../../../saved_objects/public';
// Used only by the savedSheets service, usually no reason to change this
export function createSavedSheetClass(
- services: SavedObjectKibanaServices,
+ services: SavedObjectOpenSearchDashboardsServices,
config: IUiSettingsClient
) {
const SavedObjectClass = createSavedObjectClass(services);
diff --git a/src/plugins/timelion/public/timelion_app_state.ts b/src/plugins/timelion/public/timelion_app_state.ts
index 43382adbf8f8..889c6e6aa7cd 100644
--- a/src/plugins/timelion/public/timelion_app_state.ts
+++ b/src/plugins/timelion/public/timelion_app_state.ts
@@ -17,19 +17,19 @@
* under the License.
*/
-import { createStateContainer, syncState, IKbnUrlStateStorage } from '../../kibana_utils/public';
+import { createStateContainer, syncState, IOsdUrlStateStorage } from '../../opensearch_dashboards_utils/public';
import { TimelionAppState, TimelionAppStateTransitions } from './types';
const STATE_STORAGE_KEY = '_a';
interface Arguments {
- kbnUrlStateStorage: IKbnUrlStateStorage;
+ osdUrlStateStorage: IOsdUrlStateStorage;
stateDefaults: TimelionAppState;
}
-export function initTimelionAppState({ stateDefaults, kbnUrlStateStorage }: Arguments) {
- const urlState = kbnUrlStateStorage.get(STATE_STORAGE_KEY);
+export function initTimelionAppState({ stateDefaults, osdUrlStateStorage }: Arguments) {
+ const urlState = osdUrlStateStorage.get(STATE_STORAGE_KEY);
const initialState = {
...stateDefaults,
...urlState,
@@ -42,7 +42,7 @@ export function initTimelionAppState({ stateDefaults, kbnUrlStateStorage }: Argu
we update the state format at all and want to handle BWC, we must not only migrate the
data stored with saved vis, but also any old state in the url.
*/
- kbnUrlStateStorage.set(STATE_STORAGE_KEY, initialState, { replace: true });
+ osdUrlStateStorage.set(STATE_STORAGE_KEY, initialState, { replace: true });
const stateContainer = createStateContainer(
initialState,
@@ -63,7 +63,7 @@ export function initTimelionAppState({ stateDefaults, kbnUrlStateStorage }: Argu
}
},
},
- stateStorage: kbnUrlStateStorage,
+ stateStorage: osdUrlStateStorage,
});
// start syncing the appState with the ('_a') url
diff --git a/src/plugins/timelion/server/config.ts b/src/plugins/timelion/server/config.ts
index 16e559761e9a..dbb44a0dda26 100644
--- a/src/plugins/timelion/server/config.ts
+++ b/src/plugins/timelion/server/config.ts
@@ -17,7 +17,7 @@
* under the License.
*/
-import { schema, TypeOf } from '@kbn/config-schema';
+import { schema, TypeOf } from '@osd/config-schema';
export const configSchema = {
schema: schema.object({
diff --git a/src/plugins/timelion/server/plugin.ts b/src/plugins/timelion/server/plugin.ts
index d5a5ec4640d4..94d5b5d590c8 100644
--- a/src/plugins/timelion/server/plugin.ts
+++ b/src/plugins/timelion/server/plugin.ts
@@ -18,8 +18,8 @@
*/
import { CoreSetup, CoreStart, Plugin, PluginInitializerContext, Logger } from 'src/core/server';
-import { i18n } from '@kbn/i18n';
-import { schema } from '@kbn/config-schema';
+import { i18n } from '@osd/i18n';
+import { schema } from '@osd/config-schema';
import { TimelionConfigType } from './config';
import { timelionSheetSavedObjectType } from './saved_objects';
diff --git a/src/plugins/timelion/server/saved_objects/timelion_sheet.ts b/src/plugins/timelion/server/saved_objects/timelion_sheet.ts
index 6a46217c3e61..e06c9902f585 100644
--- a/src/plugins/timelion/server/saved_objects/timelion_sheet.ts
+++ b/src/plugins/timelion/server/saved_objects/timelion_sheet.ts
@@ -17,7 +17,7 @@
* under the License.
*/
-import { SavedObjectsType } from 'kibana/server';
+import { SavedObjectsType } from 'opensearch-dashboards/server';
export const timelionSheetSavedObjectType: SavedObjectsType = {
name: 'timelion-sheet',
@@ -27,7 +27,7 @@ export const timelionSheetSavedObjectType: SavedObjectsType = {
properties: {
description: { type: 'text' },
hits: { type: 'integer' },
- kibanaSavedObjectMeta: {
+ opensearchDashboardsSavedObjectMeta: {
properties: {
searchSourceJSON: { type: 'text' },
},