Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming navigation, opensearch_dashboards_legacy plugin folder to kebab-case #404

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"maps_legacy": "src/plugins/maps_legacy",
"indexPatternManagement": "src/plugins/index_pattern_management",
"advancedSettings": "src/plugins/advanced_settings",
"opensearch_dashboards_legacy": "src/plugins/opensearch_dashboards_legacy",
"opensearch_dashboards_legacy": "src/plugins/opensearch-dashboards-legacy",
"opensearchDashboardsOverview": "src/plugins/opensearch_dashboards_overview",
"opensearch_dashboards_react": "src/legacy/core_plugins/opensearch_dashboards_react",
"opensearch-dashboards-react": "src/plugins/opensearch_dashboards_react",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/dashboard/public/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import { SharePluginStart } from '../../../share/public';
import {
OpenSearchDashboardsLegacyStart,
configureAppAngularModule,
} from '../../../opensearch_dashboards_legacy/public';
} from '../../../opensearch-dashboards-legacy/public';
import { UrlForwardingStart } from '../../../url_forwarding/public';
import { SavedObjectLoader, SavedObjectsStart } from '../../../saved_objects/public';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ import {
AngularHttpError,
OpenSearchDashboardsLegacyStart,
subscribeWithScope,
} from '../../../opensearch_dashboards_legacy/public';
} from '../../../opensearch-dashboards-legacy/public';
import { migrateLegacyQuery } from './lib/migrate_legacy_query';

export interface DashboardAppControllerDependencies extends RenderDeps {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/dashboard/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import {
initAngularBootstrap,
OpenSearchDashboardsLegacySetup,
OpenSearchDashboardsLegacyStart,
} from '../../opensearch_dashboards_legacy/public';
} from '../../opensearch-dashboards-legacy/public';
import { FeatureCatalogueCategory, HomePublicPluginSetup } from '../../../plugins/home/public';
import { DEFAULT_APP_CATEGORIES } from '../../../core/public';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { coreMock } from '../../../../../../../core/public/mocks';
import { initializeInnerAngularModule } from '../../../../get_inner_angular';
import { navigationPluginMock } from '../../../../../../navigation/public/mocks';
import { dataPluginMock } from '../../../../../../data/public/mocks';
import { initAngularBootstrap } from '../../../../../../opensearch_dashboards_legacy/public';
import { initAngularBootstrap } from '../../../../../../opensearch-dashboards-legacy/public';

describe('debounce service', function () {
let debounce: (fn: () => void, timeout: number, options?: any) => any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import $ from 'jquery';

import sinon from 'sinon';

import { initAngularBootstrap } from '../../../../../opensearch_dashboards_legacy/public';
import { initAngularBootstrap } from '../../../../../opensearch-dashboards-legacy/public';
import { FixedScrollProvider } from './fixed_scroll';

const testModuleName = 'fixedScroll';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ import { validateTimeRange } from '../helpers/validate_time_range';
import { popularizeField } from '../helpers/popularize_field';
import { getSwitchIndexPatternAppState } from '../helpers/get_switch_index_pattern_app_state';
import { getIndexPatternId } from '../helpers/get_index_pattern_id';
import { addFatalError } from '../../../../opensearch_dashboards_legacy/public';
import { addFatalError } from '../../../../opensearch-dashboards-legacy/public';
import {
DEFAULT_COLUMNS_SETTING,
SAMPLE_SIZE_SETTING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
import React from 'react';
import { EuiCallOut, EuiCodeBlock } from '@elastic/eui';
import { formatMsg, formatStack } from '../../../../../opensearch_dashboards_legacy/public';
import { formatMsg, formatStack } from '../../../../../opensearch-dashboards-legacy/public';

interface Props {
error: Error | string;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/discover/public/build_services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import { SavedObjectOpenSearchDashboardsServices } from 'src/plugins/saved_objec
import { DiscoverStartPlugins } from './plugin';
import { createSavedSearchesLoader, SavedSearch } from './saved_searches';
import { getHistory } from './opensearch_dashboards_services';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch-dashboards-legacy/public';
import { UrlForwardingStart } from '../../url_forwarding/public';
import { NavigationPublicPluginStart } from '../../navigation/public';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/discover/public/get_inner_angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import {
watchMultiDecorator,
createTopNavDirective,
createTopNavHelper,
} from '../../opensearch_dashboards_legacy/public';
} from '../../opensearch-dashboards-legacy/public';
import { createContextErrorMessageDirective } from './application/components/context_error_message';
import { DiscoverStartPlugins } from './plugin';
import { getScopedHistory } from './opensearch_dashboards_services';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export {
formatMsg,
formatStack,
subscribeWithScope,
} from '../../opensearch_dashboards_legacy/public';
} from '../../opensearch-dashboards-legacy/public';

// EXPORT types
export {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/discover/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { VisualizationsStart, VisualizationsSetup } from 'src/plugins/visualizat
import {
OpenSearchDashboardsLegacySetup,
OpenSearchDashboardsLegacyStart,
} from 'src/plugins/opensearch_dashboards_legacy/public';
} from 'src/plugins/opensearch-dashboards_legacy/public';
import { UrlForwardingSetup, UrlForwardingStart } from 'src/plugins/url_forwarding/public';
import { HomePublicPluginSetup } from 'src/plugins/home/public';
import { Start as InspectorPublicPluginStart } from 'src/plugins/inspector/public';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/navigation/public/index.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "top_nav_menu/index";
@import "top-nav-menu/index";
2 changes: 1 addition & 1 deletion src/plugins/navigation/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function plugin(initializerContext: PluginInitializerContext) {
return new NavigationPublicPlugin(initializerContext);
}

export { TopNavMenuData, TopNavMenu } from './top_nav_menu';
export { TopNavMenuData, TopNavMenu } from './top-nav-menu';

export { NavigationPublicPluginSetup, NavigationPublicPluginStart } from './types';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/navigation/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
NavigationPublicPluginStart,
NavigationPluginStartDependencies,
} from './types';
import { TopNavMenuExtensionsRegistry, createTopNav } from './top_nav_menu';
import { TopNavMenuExtensionsRegistry, createTopNav } from './top-nav-menu';

export class NavigationPublicPlugin
implements Plugin<NavigationPublicPluginSetup, NavigationPublicPluginStart> {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/navigation/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

import { TopNavMenuProps, TopNavMenuExtensionsRegistrySetup } from './top_nav_menu';
import { TopNavMenuProps, TopNavMenuExtensionsRegistrySetup } from './top-nav-menu';
import { DataPublicPluginStart } from '../../data/public';

export interface NavigationPublicPluginSetup {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { once } from 'lodash';
import angular from 'angular';

// @ts-ignore
import { initBindHtml } from './bind_html/bind_html';
import { initBindHtml } from './bind-html/bind_html';
// @ts-ignore
import { initBootstrapTooltip } from './tooltip/tooltip';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const plugin = (initializerContext: PluginInitializerContext) =>

export * from './plugin';

export { initAngularBootstrap } from './angular_bootstrap';
export { initAngularBootstrap } from './angular-bootstrap';
export { PaginateDirectiveProvider, PaginateControlsDirectiveProvider } from './paginate/paginate';
export * from './angular';
export * from './notify';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class OpenSearchDashboardsLegacyPlugin {
* @deprecated
*/
loadFontAwesome: async () => {
await import('./font_awesome');
await import('./font-awesome');
},
/**
* @deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { CoreStart } from 'opensearch-dashboards/public';
import { NotificationsStart } from 'opensearch-dashboards/public';
import { createGetterSetter } from '../../opensearch_dashboards_utils/public';
import { DataPublicPluginStart } from '../../data/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch-dashboards-legacy/public';
import { SharePluginStart } from '../../share/public';

export const [getCoreService, setCoreService] = createGetterSetter<CoreStart>('Core');
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/region_map/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import {
import { DataPublicPluginStart } from '../../data/public';
import { RegionMapsConfigType } from './index';
import { MapsLegacyConfig } from '../../maps_legacy/config';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch-dashboards-legacy/public';
import { SharePluginStart } from '../../share/public';

/** @private */
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/tile_map/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import {
setOpenSearchDashboardsLegacy,
setShareService,
} from './services';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch-dashboards-legacy/public';
import { SharePluginStart } from '../../share/public';

export interface TileMapConfigType {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/tile_map/public/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import { CoreStart } from 'opensearch-dashboards/public';
import { createGetterSetter } from '../../opensearch_dashboards_utils/public';
import { DataPublicPluginStart } from '../../data/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch-dashboards-legacy/public';
import { SharePluginStart } from '../../share/public';

export const [getCoreService, setCoreService] = createGetterSetter<CoreStart>('Core');
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/timeline/public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
addFatalError,
registerListenEventListener,
watchMultiDecorator,
} from '../../opensearch_dashboards_legacy/public';
} from '../../opensearch-dashboards-legacy/public';
import { getTimezone } from '../../vis_type_timeline/public';
import { initCellsDirective } from './directives/cells/cells';
import { initFullscreenDirective } from './directives/fullscreen/fullscreen';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/timeline/public/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import {
configureAppAngularModule,
createTopNavDirective,
createTopNavHelper,
} from '../../opensearch_dashboards_legacy/public';
} from '../../opensearch-dashboards-legacy/public';
import { TimelinePluginDependencies } from './plugin';
import { DataPublicPluginStart } from '../../data/public';
// @ts-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { keyMap } from './key_map';
import {
PaginateControlsDirectiveProvider,
PaginateDirectiveProvider,
} from '../../../opensearch_dashboards_legacy/public';
} from '../../../opensearch-dashboards-legacy/public';
import { PER_PAGE_SETTING } from '../../../saved_objects/public';
import { VISUALIZE_ENABLE_LABS_SETTING } from '../../../visualizations/public';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/timeline/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import { Panel } from './panels/panel';
import {
initAngularBootstrap,
OpenSearchDashboardsLegacyStart,
} from '../../opensearch_dashboards_legacy/public';
} from '../../opensearch-dashboards-legacy/public';
import { createOsdUrlTracker } from '../../opensearch_dashboards_utils/public';
import { DataPublicPluginStart, opensearchFilters, DataPublicPluginSetup } from '../../data/public';
import { NavigationPublicPluginStart } from '../../navigation/public';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/url_forwarding/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

import { CoreStart, CoreSetup } from 'opensearch-dashboards/public';
import { OpenSearchDashboardsLegacyStart } from 'src/plugins/opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from 'src/plugins/opensearch-dashboards_legacy/public';
import { Subscription } from 'rxjs';
import { navigateToDefaultApp } from './navigate_to_default_app';
import { createLegacyUrlForwardApp } from './forward_app';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { round } from 'lodash';

import { getFieldFormatsRegistry } from '../../../data/public/test_utils';
import { coreMock } from '../../../../core/public/mocks';
import { initAngularBootstrap } from '../../../opensearch_dashboards_legacy/public';
import { initAngularBootstrap } from '../../../opensearch-dashboards-legacy/public';
import { setUiSettings } from '../../../data/public/services';
import { UI_SETTINGS } from '../../../data/public/';
import { CSV_SEPARATOR_SETTING, CSV_QUOTE_VALUES_SETTING } from '../../../share/public';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import expect from '@osd/expect';

import { getFieldFormatsRegistry } from '../../../data/public/test_utils';
import { coreMock } from '../../../../core/public/mocks';
import { initAngularBootstrap } from '../../../opensearch_dashboards_legacy/public';
import { initAngularBootstrap } from '../../../opensearch-dashboards-legacy/public';
import { setUiSettings } from '../../../data/public/services';
import { setFormatService } from '../services';
import { getInnerAngular } from '../get_inner_angular';
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_type_table/public/get_inner_angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import {
PrivateProvider,
watchMultiDecorator,
OsdAccessibleClickProvider,
} from '../../opensearch_dashboards_legacy/public';
} from '../../opensearch-dashboards-legacy/public';

initAngularBootstrap();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { getAngularModule } from '../get_inner_angular';
import { initTableVisLegacyModule } from '../table_vis_legacy_module';
import { coreMock } from '../../../../core/public/mocks';

jest.mock('../../../opensearch_dashboards_legacy/public/angular/angular_config', () => ({
jest.mock('../../../opensearch-dashboards-legacy/public/angular/angular_config', () => ({
configureAppAngularModule: () => {},
}));

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_type_table/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { createTableVisFn } from './table_vis_fn';
import { getTableVisTypeDefinition } from './table_vis_type';
import { DataPublicPluginStart } from '../../data/public';
import { setFormatService, setOpenSearchDashboardsLegacy } from './services';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch-dashboards-legacy/public';

/** @internal */
export interface TablePluginSetupDependencies {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_type_table/public/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

import { createGetterSetter } from '../../opensearch_dashboards_utils/public';
import { DataPublicPluginStart } from '../../data/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch-dashboards-legacy/public';

export const [getFormatService, setFormatService] = createGetterSetter<
DataPublicPluginStart['fieldFormats']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const { createAggConfigs } = searchServiceMock.createStartContract().aggs;

const { tabifyAggResponse } = search;

jest.mock('../../opensearch_dashboards_legacy/public/angular/angular_config', () => ({
jest.mock('../../opensearch-dashboards-legacy/public/angular/angular_config', () => ({
configureAppAngularModule: () => {},
}));

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_type_vislib/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {
import { ChartsPluginSetup } from '../../charts/public';
import { DataPublicPluginStart } from '../../data/public';
import { setFormatService, setDataActions, setOpenSearchDashboardsLegacy } from './services';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch-dashboards-legacy/public';

export interface VisTypeVislibDependencies {
uiSettings: IUiSettingsClient;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_type_vislib/public/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

import { createGetterSetter } from '../../opensearch_dashboards_utils/public';
import { DataPublicPluginStart } from '../../data/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch_dashboards_legacy/public';
import { OpenSearchDashboardsLegacyStart } from '../../opensearch-dashboards-legacy/public';

export const [getDataActions, setDataActions] = createGetterSetter<
DataPublicPluginStart['actions']
Expand Down