From 0c3b0c2269b88e9a66da202fa45537d9117d626d Mon Sep 17 00:00:00 2001 From: Ramneet Chopra Date: Tue, 30 Aug 2022 14:59:03 +0000 Subject: [PATCH] build error resolve: updated snapshots Signed-off-by: Ramneet Chopra --- .../__snapshots__/config_panel.test.tsx.snap | 285 +++++++++++++++++- .../__tests__/__snapshots__/bar.test.tsx.snap | 256 +++++++++++----- .../__snapshots__/heatmap.test.tsx.snap | 22 +- .../__snapshots__/histogram.test.tsx.snap | 22 +- .../__snapshots__/line.test.tsx.snap | 22 +- .../__snapshots__/logs_view.test.tsx.snap | 82 ++++- .../__tests__/__snapshots__/pie.test.tsx.snap | 265 +++++++++++----- .../__snapshots__/text.test.tsx.snap | 22 +- .../__snapshots__/treemap.test.tsx.snap | 22 +- 9 files changed, 830 insertions(+), 168 deletions(-) diff --git a/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap index 8d5d2651a..b214d9c3c 100644 --- a/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap +++ b/dashboards-observability/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap @@ -198,7 +198,27 @@ exports[`Config panel component Renders config panel with visualization data 1`] "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, @@ -6029,7 +6049,27 @@ exports[`Config panel component Renders config panel with visualization data 1`] "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, @@ -6362,6 +6402,27 @@ exports[`Config panel component Renders config panel with visualization data 1`] }, } } + vizState={ + Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + } + } />, "id": "data-panel", "name": "Style", @@ -6820,7 +6881,27 @@ exports[`Config panel component Renders config panel with visualization data 1`] "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, @@ -7153,6 +7234,27 @@ exports[`Config panel component Renders config panel with visualization data 1`] }, } } + vizState={ + Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + } + } />, "id": "data-panel", "name": "Style", @@ -7367,7 +7469,27 @@ exports[`Config panel component Renders config panel with visualization data 1`] "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, @@ -8247,7 +8369,27 @@ exports[`Config panel component Renders config panel with visualization data 1`] "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, @@ -8580,6 +8722,27 @@ exports[`Config panel component Renders config panel with visualization data 1`] }, } } + vizState={ + Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + } + } >
- -
- -
- -
- - - - - - -
- -

- - - No results found - - -

-
- -
- -
- - + id="explorerPlotComponent" + style={ + Object { + "height": "100%", + "width": "100%", + } + } + /> + + `; diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap index 881df5490..f41925f35 100644 --- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap +++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap @@ -199,7 +199,27 @@ exports[`Heatmap component Renders heatmap component 1`] = ` "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap index 16f79ad74..9c199a9ab 100644 --- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap +++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap @@ -199,7 +199,27 @@ exports[`Histogram component Renders histogram component 1`] = ` "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap index 15f4453bf..80aad5341 100644 --- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap +++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap @@ -199,7 +199,27 @@ exports[`Line component Renders line component 1`] = ` "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/logs_view.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/logs_view.test.tsx.snap index 792c8308f..cfdb61c63 100644 --- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/logs_view.test.tsx.snap +++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/logs_view.test.tsx.snap @@ -199,7 +199,27 @@ exports[`Logs View component Renders logs view component 1`] = ` "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, @@ -212,8 +232,66 @@ exports[`Logs View component Renders logs view component 1`] = ` "editor": [Function], "id": "data-panel", "mapTo": "dataConfig", - "name": "Data", + "name": "Style", "sections": Array [ + Object { + "editor": [Function], + "id": "tooltip_options", + "mapTo": "tooltipOptions", + "name": "Tooltip options", + "schemas": Array [ + Object { + "component": null, + "mapTo": "tooltipMode", + "name": "Tooltip mode", + "props": Object { + "defaultSelections": Array [ + Object { + "id": "show", + "name": "Show", + }, + ], + "options": Array [ + Object { + "id": "show", + "name": "Show", + }, + Object { + "id": "hidden", + "name": "Hidden", + }, + ], + }, + }, + Object { + "component": null, + "mapTo": "tooltipText", + "name": "Tooltip text", + "props": Object { + "defaultSelections": Array [ + Object { + "id": "all", + "name": "All", + }, + ], + "options": Array [ + Object { + "id": "all", + "name": "All", + }, + Object { + "id": "x", + "name": "Dimension", + }, + Object { + "id": "y", + "name": "Metrics", + }, + ], + }, + }, + ], + }, Object { "editor": [Function], "id": "legend", diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap index 60d2671fd..e36bda4ca 100644 --- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap +++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap @@ -199,7 +199,27 @@ exports[`Pie component Renders pie component 1`] = ` "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, @@ -533,82 +553,177 @@ exports[`Pie component Renders pie component 1`] = ` } } > - -
- -
- -
- - - - - - -
- -

- - - No results found - - -

-
- -
- -
- - + id="explorerPlotComponent" + style={ + Object { + "height": "100%", + "width": "100%", + } + } + /> + + `; diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap index 90a14da93..66f79027c 100644 --- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap +++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap @@ -182,7 +182,27 @@ exports[`Text component Renders text component 1`] = ` "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97, diff --git a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap index 39626b437..f9ebdaabb 100644 --- a/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap +++ b/dashboards-observability/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap @@ -199,7 +199,27 @@ exports[`Treemap component Renders treemap component 1`] = ` "status": 200, }, }, - "userConfigs": Object {}, + "userConfigs": Object { + "dataConfig": Object { + "valueOptions": Object { + "dimensions": Array [ + Object { + "label": "tags", + "name": "tags", + "type": "text", + }, + ], + "metrics": Array [ + Object { + "label": "count()", + "name": "count()", + "side": "left", + "type": "integer", + }, + ], + }, + }, + }, }, "vis": Object { "barwidth": 0.97,