From 0bb2f0e84a01a90a0fdc1691a6a5b1741aa4890c Mon Sep 17 00:00:00 2001 From: Eugene Lee Date: Wed, 11 May 2022 09:43:10 -0700 Subject: [PATCH] Remove availability tab from irrelevant chart types Signed-off-by: Eugene Lee --- .../components/visualizations/charts/bubble/bubble_type.ts | 7 ------- .../visualizations/charts/financial/gauge/gauge_type.ts | 7 ------- .../visualizations/charts/histogram/histogram_type.ts | 7 ------- .../components/visualizations/charts/maps/heatmap_type.ts | 7 ------- .../components/visualizations/charts/maps/treemap_type.ts | 7 ------- .../components/visualizations/charts/pie/pie_type.ts | 7 ------- 6 files changed, 42 deletions(-) diff --git a/dashboards-observability/public/components/visualizations/charts/bubble/bubble_type.ts b/dashboards-observability/public/components/visualizations/charts/bubble/bubble_type.ts index 165ad53db..091298ce5 100644 --- a/dashboards-observability/public/components/visualizations/charts/bubble/bubble_type.ts +++ b/dashboards-observability/public/components/visualizations/charts/bubble/bubble_type.ts @@ -9,7 +9,6 @@ import { LensIconChartPie } from '../../assets/chart_pie'; import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor'; import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor'; import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls'; -import { ConfigAvailability } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability'; const sharedConfigs = getPlotlySharedConfigs(); const VIS_CATEGORY = getPlotlyCategory(); @@ -61,12 +60,6 @@ export const createBubbleVisDefinition = () => ({ editor: ConfigEditor, content: [], }, - { - id: 'availability-panel', - name: 'Availability', - mapTo: 'availabilityConfig', - editor: ConfigAvailability, - }, ], }, icon: LensIconChartPie, diff --git a/dashboards-observability/public/components/visualizations/charts/financial/gauge/gauge_type.ts b/dashboards-observability/public/components/visualizations/charts/financial/gauge/gauge_type.ts index 9840cc325..e5e91b7db 100644 --- a/dashboards-observability/public/components/visualizations/charts/financial/gauge/gauge_type.ts +++ b/dashboards-observability/public/components/visualizations/charts/financial/gauge/gauge_type.ts @@ -13,7 +13,6 @@ import { ConfigThresholds, ConfigGaugeValueOptions, } from '../../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls'; -import { ConfigAvailability } from '../../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability'; const sharedConfigs = getPlotlySharedConfigs(); const VIS_CATEGORY = getPlotlyCategory(); @@ -78,12 +77,6 @@ export const createGaugeTypeDefinition = (params: any = {}) => ({ editor: ConfigEditor, content: [], }, - { - id: 'availability-panel', - name: 'Availability', - mapTo: 'availabilityConfig', - editor: ConfigAvailability, - }, ], }, visConfig: { diff --git a/dashboards-observability/public/components/visualizations/charts/histogram/histogram_type.ts b/dashboards-observability/public/components/visualizations/charts/histogram/histogram_type.ts index 9256c56a2..3e6e0d967 100644 --- a/dashboards-observability/public/components/visualizations/charts/histogram/histogram_type.ts +++ b/dashboards-observability/public/components/visualizations/charts/histogram/histogram_type.ts @@ -9,7 +9,6 @@ import { LensIconChartLine } from '../../assets/chart_line'; import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor'; import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor'; import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls'; -import { ConfigAvailability } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability'; const sharedConfigs = getPlotlySharedConfigs(); const VIS_CATEGORY = getPlotlyCategory(); @@ -63,12 +62,6 @@ export const createHistogramVisDefinition = (params = {}) => ({ editor: ConfigEditor, content: [], }, - { - id: 'availability-panel', - name: 'Availability', - mapTo: 'availabilityConfig', - editor: ConfigAvailability, - }, ], }, visConfig: { diff --git a/dashboards-observability/public/components/visualizations/charts/maps/heatmap_type.ts b/dashboards-observability/public/components/visualizations/charts/maps/heatmap_type.ts index e753715ba..269e429c2 100644 --- a/dashboards-observability/public/components/visualizations/charts/maps/heatmap_type.ts +++ b/dashboards-observability/public/components/visualizations/charts/maps/heatmap_type.ts @@ -9,7 +9,6 @@ import { LensIconChartPie } from '../../assets/chart_pie'; import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor'; import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor'; import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls'; -import { ConfigAvailability } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability'; const sharedConfigs = getPlotlySharedConfigs(); const VIS_CATEGORY = getPlotlyCategory(); @@ -57,12 +56,6 @@ export const createMapsVisDefinition = () => ({ editor: ConfigEditor, content: [], }, - { - id: 'availability-panel', - name: 'Availability', - mapTo: 'availabilityConfig', - editor: ConfigAvailability, - }, ], }, visConfig: { diff --git a/dashboards-observability/public/components/visualizations/charts/maps/treemap_type.ts b/dashboards-observability/public/components/visualizations/charts/maps/treemap_type.ts index 4c98113bb..74330f342 100644 --- a/dashboards-observability/public/components/visualizations/charts/maps/treemap_type.ts +++ b/dashboards-observability/public/components/visualizations/charts/maps/treemap_type.ts @@ -9,7 +9,6 @@ import { LensIconChartBar } from '../../assets/chart_bar'; import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor'; import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor'; import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls'; -import { ConfigAvailability } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability'; const sharedConfigs = getPlotlySharedConfigs(); const VIS_CATEGORY = getPlotlyCategory(); @@ -68,12 +67,6 @@ export const createTreeMapDefinition = (params: BarTypeParams = {}) => ({ editor: ConfigEditor, content: [], }, - { - id: 'availability-panel', - name: 'Availability', - mapTo: 'availabilityConfig', - editor: ConfigAvailability, - }, ], }, visConfig: { diff --git a/dashboards-observability/public/components/visualizations/charts/pie/pie_type.ts b/dashboards-observability/public/components/visualizations/charts/pie/pie_type.ts index 2f89b8ec2..7dbc507aa 100644 --- a/dashboards-observability/public/components/visualizations/charts/pie/pie_type.ts +++ b/dashboards-observability/public/components/visualizations/charts/pie/pie_type.ts @@ -10,7 +10,6 @@ import { PLOTLY_COLOR } from '../../../../../common/constants/shared'; import { VizDataPanel } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/default_vis_editor'; import { ConfigEditor } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/json_editor'; import { ConfigValueOptions } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls'; -import { ConfigAvailability } from '../../../event_analytics/explorer/visualizations/config_panel/config_panes/config_controls/config_availability'; const sharedConfigs = getPlotlySharedConfigs(); const VIS_CATEGORY = getPlotlyCategory(); @@ -89,12 +88,6 @@ export const createPieTypeDefinition = (params: any) => ({ editor: ConfigEditor, content: [], }, - { - id: 'availability-panel', - name: 'Availability', - mapTo: 'availabilityConfig', - editor: ConfigAvailability, - }, ], }, visConfig: {