Skip to content

Commit

Permalink
Renaming vis_type_vega, vis_type_xy plugin folder to kebab-case
Browse files Browse the repository at this point in the history
Signed-off-by: Vacha Shah <vachshah@amazon.com>
  • Loading branch information
VachaShah committed Jun 3, 2021
1 parent a8c8275 commit 084cb6b
Show file tree
Hide file tree
Showing 69 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
"visTypeTable": "src/plugins/vis_type_table",
"visTypeTagCloud": "src/plugins/vis_type_tagcloud",
"visTypeTimeseries": "src/plugins/vis_type_timeseries",
"visTypeVega": "src/plugins/vis_type_vega",
"visTypeVega": "src/plugins/vis-type-vega",
"visTypeVislib": "src/plugins/vis_type_vislib",
"visTypeXy": "src/plugins/vis_type_xy",
"visTypeXy": "src/plugins/vis-type-xy",
"visualizations": "src/plugins/visualizations",
"visualize": "src/plugins/visualize",
"apmOss": "src/plugins/apm_oss",
Expand Down
4 changes: 2 additions & 2 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ files:
- 'src/plugins/index_pattern_management/**/*.s+(a|c)ss'
- 'src/plugins/timeline/**/*.s+(a|c)ss'
- 'src/plugins/vis_type_vislib/**/*.s+(a|c)ss'
- 'src/plugins/vis_type_vega/**/*.s+(a|c)ss'
- 'src/plugins/vis_type_xy/**/*.s+(a|c)ss'
- 'src/plugins/vis-type-vega/**/*.s+(a|c)ss'
- 'src/plugins/vis-type-xy/**/*.s+(a|c)ss'
rules:
quotes:
- 2
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

import { i18n } from '@osd/i18n';
// @ts-ignore
import { bypassExternalUrlCheck } from '../vega_view/vega_base_view';
import { bypassExternalUrlCheck } from '../vega-view/vega_base_view';
import { IServiceSettings, FileLayer } from '../../../maps_legacy/public';
import { Data, UrlObject, EmsQueryRequest } from './types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
IOpenSearchSearchResponse,
} from '../../../data/public';
import { search as dataPluginSearch } from '../../../data/public';
import { VegaInspectorAdapters } from '../vega_inspector';
import { VegaInspectorAdapters } from '../vega-inspector';
import { RequestResponder } from '../../../inspector/public';

export interface SearchAPIDependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import { cloneDeep } from 'lodash';
import { euiThemeVars } from '@osd/ui-shared-deps/theme';
import { VegaParser } from './vega_parser';
import { bypassExternalUrlCheck } from '../vega_view/vega_base_view';
import { bypassExternalUrlCheck } from '../vega-view/vega_base_view';

jest.mock('../services');

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { dataPluginMock } from '../../../data/public/mocks';
import { extractIndexPatternsFromSpec } from './extract_index_pattern';
import { setData } from '../services';

import type { VegaSpec } from '../data_model/types';
import type { VegaSpec } from '../data-model/types';

const getMockedSpec = (mockedObj: any) => (mockedObj as unknown) as VegaSpec;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import { flatten } from 'lodash';
import { getData } from '../services';

import type { Data, VegaSpec } from '../data_model/types';
import type { Data, VegaSpec } from '../data-model/types';
import type { IndexPattern } from '../../../data/public';

export const extractIndexPatternsFromSpec = async (spec: VegaSpec) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import { IServiceSettings } from '../../maps_legacy/public';
import './index.scss';
import { ConfigSchema } from '../config';

import { getVegaInspectorView } from './vega_inspector';
import { getVegaInspectorView } from './vega-inspector';

/** @internal */
export interface VegaVisualizationDependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import $ from 'jquery';
import moment from 'moment';
import dateMath from '@elastic/datemath';
import { vega, vegaLite } from '../lib/vega';
import { Utils } from '../data_model/utils';
import { Utils } from '../data-model/utils';
import { euiPaletteColorBlind } from '@elastic/eui';
import { i18n } from '@osd/i18n';
import { TooltipHandler } from './vega_tooltip';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ import {
} from '../../expressions/public';
import { VegaVisualizationDependencies } from './plugin';
import { createVegaRequestHandler } from './vega_request_handler';
import { VegaInspectorAdapters } from './vega_inspector/index';
import { VegaInspectorAdapters } from './vega-inspector/index';
import { TimeRange, Query } from '../../data/public';
import { VegaParser } from './data_model/vega_parser';
import { VegaParser } from './data-model/vega_parser';

type Input = OpenSearchDashboardsContext | null;
type Output = Promise<Render<RenderValue>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@

import { Filter, opensearchQuery, TimeRange, Query } from '../../data/public';

import { SearchAPI } from './data_model/search_api';
import { TimeCache } from './data_model/time_cache';
import { SearchAPI } from './data-model/search_api';
import { TimeCache } from './data-model/time_cache';

import { VegaVisualizationDependencies } from './plugin';
import { VisParams } from './vega_fn';
import { getData, getInjectedMetadata } from './services';
import { VegaInspectorAdapters } from './vega_inspector';
import { VegaInspectorAdapters } from './vega-inspector';

interface VegaRequestHandlerParams {
query: Query;
Expand Down Expand Up @@ -87,7 +87,7 @@ export function createVegaRequestHandler(
filters,
opensearchQueryConfigs
);
const { VegaParser } = await import('./data_model/vega_parser');
const { VegaParser } = await import('./data-model/vega_parser');
const vp = new VegaParser(visParams.spec, searchAPI, timeCache, filtersDsl, getServiceSettings);

return await vp.parseAsync();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ import { DefaultEditorSize } from '../../vis_default_editor/public';
import { VegaVisualizationDependencies } from './plugin';
import { VegaVisEditor } from './components';

import type { VegaSpec } from './data_model/types';
import type { VegaSpec } from './data-model/types';

import { extractIndexPatternsFromSpec } from './lib/extract_index_pattern';
import { createVegaRequestHandler } from './vega_request_handler';
// @ts-expect-error
import { createVegaVisualization } from './vega_visualization';
import { getDefaultSpec } from './default_spec';
import { createInspectorAdapters } from './vega_inspector';
import { createInspectorAdapters } from './vega-inspector';
import { VIS_EVENT_TO_TRIGGER } from '../../visualizations/public';

import { getInfoMessage } from './components/experimental_map_vis_info';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ export const createVegaVisualization = ({ getServiceSettings }) =>

if (vegaParser.useMap) {
const services = { toastService: getNotifications().toasts };
const { VegaMapView } = await import('./vega_view/vega_map_view');
const { VegaMapView } = await import('./vega-view/vega_map_view');
this._vegaView = new VegaMapView(vegaViewParams, services);
} else {
const { VegaView } = await import('./vega_view/vega_view');
const { VegaView } = await import('./vega-view/vega_view');
this._vegaView = new VegaView(vegaViewParams);
}
await this._vegaView.init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ import 'leaflet/dist/leaflet.js';
import 'leaflet-vega';
import { createVegaVisualization } from './vega_visualization';

import vegaliteGraph from './test_utils/vegalite_graph.json';
import vegaGraph from './test_utils/vega_graph.json';
import vegaMapGraph from './test_utils/vega_map_test.json';
import vegaliteGraph from './test-utils/vegalite_graph.json';
import vegaGraph from './test-utils/vega_graph.json';
import vegaMapGraph from './test-utils/vega_map_test.json';

import { VegaParser } from './data_model/vega_parser';
import { SearchAPI } from './data_model/search_api';
import { VegaParser } from './data-model/vega_parser';
import { SearchAPI } from './data-model/search_api';

import { createVegaTypeDefinition } from './vega_type';

Expand All @@ -50,7 +50,7 @@ import { coreMock } from '../../../core/public/mocks';
import { dataPluginMock } from '../../data/public/mocks';

jest.mock('./default_spec', () => ({
getDefaultSpec: () => jest.requireActual('./test_utils/default.spec.json'),
getDefaultSpec: () => jest.requireActual('./test-utils/default.spec.json'),
}));

jest.mock('./lib/vega', () => ({
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

import { PluginInitializerContext, CoreSetup, CoreStart, Plugin } from '../../../core/server';
import { registerVegaUsageCollector } from './usage_collector';
import { registerVegaUsageCollector } from './usage-collector';
import {
ConfigObservable,
VisTypeVegaPluginSetupDependencies,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ -40,7 +40,7 @@ import {
PluginInitializerContext,
} from 'opensearch-dashboards/public';

import { VisTypeXyPluginSetup } from 'src/plugins/vis_type_xy/public';
import { VisTypeXyPluginSetup } from 'src/plugins/vis-type-xy/public';
import { Plugin as ExpressionsPublicPlugin } from '../../expressions/public';
import { VisualizationsSetup } from '../../visualizations/public';
import { createVisTypeVislibVisFn } from './vis_type_vislib_vis_fn';
Expand Down

0 comments on commit 084cb6b

Please sign in to comment.