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 vis_type_vislib plugin folder to kebab-case #421

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
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@

export { GaugeOptions } from './gauge';
export { PieOptions } from './pie';
export { PointSeriesOptions } from './point_series';
export { PointSeriesOptions } from './point-series';
export { HeatmapOptions } from './heatmap';
export { MetricsAxisOptions } from './metrics_axes';
export { MetricsAxisOptions } from './metrics-axes';
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ All base visualizations extend from `visualizations/_chart`

`visualizations/point_series` takes care of drawing the point series chart (no axes or titles, just the chart itself). It creates all the series defined and calls render method on them.

currently there are 3 series types available (line, area, bars), they all extend from `visualizations/point_series/_point_series`.
currently there are 3 series types available (line, area, bars), they all extend from `visualizations/point-series/_point_series`.

Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
@import './components/tooltip/index';
@import './components/legend/index';

@import './visualizations/point_series/index';
@import './visualizations/point-series/index';
@import './visualizations/gauges/index';
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
* GitHub history for details.
*/

export { buildPointSeriesData } from './point_series';
export { buildPointSeriesData } from './point-series';
export { buildHierarchicalData } from './hierarchical/build_hierarchical_data';
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
import d3 from 'd3';
import _ from 'lodash';

import { injectZeros } from '../components/zero_injection/inject_zeros';
import { orderXValues } from '../components/zero_injection/ordered_x_keys';
import { injectZeros } from '../components/zero-injection/inject_zeros';
import { orderXValues } from '../components/zero-injection/ordered_x_keys';
import { labels } from '../components/labels/labels';
import { getFormatService } from '../../services';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
} from '../../../../../test_utils/public';

// Data
import data from '../../fixtures/mock_data/date_histogram/_series';
import data from '../../fixtures/mock-data/date-histogram/_series';

import { getMockUiState } from '../../fixtures/mocks';
import { getVis } from '../visualizations/_vis_fixture';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ import {
} from '../../../../../test_utils/public';

// Data
import series from '../../fixtures/mock_data/date_histogram/_series';
import columns from '../../fixtures/mock_data/date_histogram/_columns';
import rows from '../../fixtures/mock_data/date_histogram/_rows';
import stackedSeries from '../../fixtures/mock_data/date_histogram/_stacked_series';
import series from '../../fixtures/mock-data/date-histogram/_series';
import columns from '../../fixtures/mock-data/date-histogram/_columns';
import rows from '../../fixtures/mock-data/date-histogram/_rows';
import stackedSeries from '../../fixtures/mock-data/date-histogram/_stacked_series';
import { getMockUiState } from '../../fixtures/mocks';
import { getVis } from '../visualizations/_vis_fixture';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ import {
} from '../../../../../../test_utils/public';

// Data
import series from '../../../fixtures/mock_data/date_histogram/_series';
import columns from '../../../fixtures/mock_data/date_histogram/_columns';
import rows from '../../../fixtures/mock_data/date_histogram/_rows';
import stackedSeries from '../../../fixtures/mock_data/date_histogram/_stacked_series';
import series from '../../../fixtures/mock-data/date-histogram/_series';
import columns from '../../../fixtures/mock-data/date-histogram/_columns';
import rows from '../../../fixtures/mock-data/date-histogram/_rows';
import stackedSeries from '../../../fixtures/mock-data/date-histogram/_stacked_series';
import { getMockUiState } from '../../../fixtures/mocks';
import { Layout } from './layout';
import { VisConfig } from '../vis_config';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
* GitHub history for details.
*/

import { chartSplit } from '../splits/column_chart/chart_split';
import { yAxisSplit } from '../splits/column_chart/y_axis_split';
import { xAxisSplit } from '../splits/column_chart/x_axis_split';
import { chartTitleSplit } from '../splits/column_chart/chart_title_split';
import { chartSplit } from '../splits/column-chart/chart_split';
import { yAxisSplit } from '../splits/column-chart/y_axis_split';
import { xAxisSplit } from '../splits/column-chart/x_axis_split';
import { chartTitleSplit } from '../splits/column-chart/chart_title_split';

/**
* Specifies the visualization layout for column charts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

import { chartSplit } from '../splits/gauge_chart/chart_split';
import { chartSplit } from '../splits/gauge-chart/chart_split';

/**
* Specifies the visualization layout for column charts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
* GitHub history for details.
*/

import { chartSplit } from '../splits/pie_chart/chart_split';
import { chartTitleSplit } from '../splits/pie_chart/chart_title_split';
import { chartSplit } from '../splits/pie-chart/chart_split';
import { chartTitleSplit } from '../splits/pie-chart/chart_title_split';

/**
* Specifies the visualization layout for column charts.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
import stackedSeries from '../../../fixtures/mock_data/date_histogram/_stacked_series';
import stackedSeries from '../../../fixtures/mock-data/date-histogram/_stacked_series';
import { vislibPointSeriesTypes } from './point_series';
import percentileTestdata from './testdata_linechart_percentile.json';
import percentileTestdataResult from './testdata_linechart_percentile_result.json';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ import {
setSVGElementGetBBox,
setSVGElementGetComputedTextLength,
} from '../../../../test_utils/public';
import series from '../fixtures/mock_data/date_histogram/_series';
import columns from '../fixtures/mock_data/date_histogram/_columns';
import rows from '../fixtures/mock_data/date_histogram/_rows';
import stackedSeries from '../fixtures/mock_data/date_histogram/_stacked_series';
import series from '../fixtures/mock-data/date-histogram/_series';
import columns from '../fixtures/mock-data/date-histogram/_columns';
import rows from '../fixtures/mock-data/date-histogram/_rows';
import stackedSeries from '../fixtures/mock-data/date-histogram/_stacked_series';
import { getMockUiState } from '../fixtures/mocks';
import { getVis } from './visualizations/_vis_fixture';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import $ from 'jquery';
import _ from 'lodash';
import { setHTMLElementClientSizes, setSVGElementGetBBox } from '../../../../../test_utils/public';

import data from '../../fixtures/mock_data/terms/_series_multiple';
import data from '../../fixtures/mock-data/terms/_series_multiple';
import { getMockUiState } from '../../fixtures/mocks';
import { getVis } from './_vis_fixture';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ import { getMockUiState } from '../../../fixtures/mocks';
import { getVis } from '../_vis_fixture';

const dataTypesArray = {
'series pos': import('../../../fixtures/mock_data/date_histogram/_series'),
'series pos neg': import('../../../fixtures/mock_data/date_histogram/_series_pos_neg'),
'series neg': import('../../../fixtures/mock_data/date_histogram/_series_neg'),
'term columns': import('../../../fixtures/mock_data/terms/_columns'),
'range rows': import('../../../fixtures/mock_data/range/_rows'),
stackedSeries: import('../../../fixtures/mock_data/date_histogram/_stacked_series'),
'series pos': import('../../../fixtures/mock-data/date-histogram/_series'),
'series pos neg': import('../../../fixtures/mock-data/date-histogram/_series_pos_neg'),
'series neg': import('../../../fixtures/mock-data/date-histogram/_series_neg'),
'term columns': import('../../../fixtures/mock-data/terms/_columns'),
'range rows': import('../../../fixtures/mock-data/range/_rows'),
stackedSeries: import('../../../fixtures/mock-data/date-histogram/_stacked_series'),
};

const visLibParams = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ import {
} from '../../../../../../test_utils/public';

// Data
import series from '../../../fixtures/mock_data/date_histogram/_series';
import seriesPosNeg from '../../../fixtures/mock_data/date_histogram/_series_pos_neg';
import seriesNeg from '../../../fixtures/mock_data/date_histogram/_series_neg';
import termsColumns from '../../../fixtures/mock_data/terms/_columns';
import histogramRows from '../../../fixtures/mock_data/histogram/_rows';
import stackedSeries from '../../../fixtures/mock_data/date_histogram/_stacked_series';

import { seriesMonthlyInterval } from '../../../fixtures/mock_data/date_histogram/_series_monthly_interval';
import { rowsSeriesWithHoles } from '../../../fixtures/mock_data/date_histogram/_rows_series_with_holes';
import rowsWithZeros from '../../../fixtures/mock_data/date_histogram/_rows';
import series from '../../../fixtures/mock-data/date-histogram/_series';
import seriesPosNeg from '../../../fixtures/mock-data/date-histogram/_series_pos_neg';
import seriesNeg from '../../../fixtures/mock-data/date-histogram/_series_neg';
import termsColumns from '../../../fixtures/mock-data/terms/_columns';
import histogramRows from '../../../fixtures/mock-data/histogram/_rows';
import stackedSeries from '../../../fixtures/mock-data/date-histogram/_stacked_series';

import { seriesMonthlyInterval } from '../../../fixtures/mock-data/date-histogram/_series_monthly_interval';
import { rowsSeriesWithHoles } from '../../../fixtures/mock-data/date-histogram/_rows_series_with_holes';
import rowsWithZeros from '../../../fixtures/mock-data/date-histogram/_rows';
import { getMockUiState } from '../../../fixtures/mocks';
import { getVis } from '../_vis_fixture';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ import {
} from '../../../../../../test_utils/public';

// Data
import series from '../../../fixtures/mock_data/date_histogram/_series';
import seriesPosNeg from '../../../fixtures/mock_data/date_histogram/_series_pos_neg';
import seriesNeg from '../../../fixtures/mock_data/date_histogram/_series_neg';
import termsColumns from '../../../fixtures/mock_data/terms/_columns';
import stackedSeries from '../../../fixtures/mock_data/date_histogram/_stacked_series';
import series from '../../../fixtures/mock-data/date-histogram/_series';
import seriesPosNeg from '../../../fixtures/mock-data/date-histogram/_series_pos_neg';
import seriesNeg from '../../../fixtures/mock-data/date-histogram/_series_neg';
import termsColumns from '../../../fixtures/mock-data/terms/_columns';
import stackedSeries from '../../../fixtures/mock-data/date-histogram/_stacked_series';
import { getMockUiState } from '../../../fixtures/mocks';
import { getVis } from '../_vis_fixture';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ import {
} from '../../../../../../test_utils/public';

// Data
import seriesPos from '../../../fixtures/mock_data/date_histogram/_series';
import seriesPosNeg from '../../../fixtures/mock_data/date_histogram/_series_pos_neg';
import seriesNeg from '../../../fixtures/mock_data/date_histogram/_series_neg';
import histogramColumns from '../../../fixtures/mock_data/histogram/_columns';
import rangeRows from '../../../fixtures/mock_data/range/_rows';
import termSeries from '../../../fixtures/mock_data/terms/_series';
import seriesPos from '../../../fixtures/mock-data/date-histogram/_series';
import seriesPosNeg from '../../../fixtures/mock-data/date-histogram/_series_pos_neg';
import seriesNeg from '../../../fixtures/mock-data/date-histogram/_series_neg';
import histogramColumns from '../../../fixtures/mock-data/histogram/_columns';
import rangeRows from '../../../fixtures/mock-data/range/_rows';
import termSeries from '../../../fixtures/mock-data/terms/_series';
import { getMockUiState } from '../../../fixtures/mocks';
import { getVis } from '../_vis_fixture';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import $ from 'jquery';
import { Tooltip } from '../components/tooltip';
import { Chart } from './_chart';
import { TimeMarker } from './time_marker';
import { seriesTypes } from './point_series/series_types';
import { seriesTypes } from './point-series/series_types';
import touchdownTmplHtml from '../partials/touchdown.tmpl.html';

const seriTypes = seriesTypes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
import d3 from 'd3';
import $ from 'jquery';

import series from '../../fixtures/mock_data/date_histogram/_series';
import terms from '../../fixtures/mock_data/terms/_columns';
import series from '../../fixtures/mock-data/date-histogram/_series';
import terms from '../../fixtures/mock-data/terms/_columns';
import { TimeMarker } from './time_marker';

describe('Vislib Time Marker Test Suite', function () {
Expand Down