From e10395fec4155360ee2cb883b124975c3a684f5a Mon Sep 17 00:00:00 2001 From: Amit Galitzky Date: Tue, 5 Apr 2022 18:31:51 +0000 Subject: [PATCH 1/3] version bump 2.0 changes Signed-off-by: Amit Galitzky --- .gitignore | 1 + opensearch_dashboards.json | 4 +- package.json | 6 +- .../__snapshots__/ContentPanel.test.tsx.snap | 2 +- .../__snapshots__/AlertsFlyout.test.tsx.snap | 555 +----------------- .../__snapshots__/AnomalyStat.test.tsx.snap | 35 ++ .../components/FeatureChart/FeatureChart.tsx | 4 +- .../containers/AnomalyDetailsChart.tsx | 4 +- .../AnomalyHeatmapChart.test.tsx.snap | 347 +++++------ .../AggregationSelector.test.tsx.snap | 4 +- .../__snapshots__/CategoryField.test.tsx.snap | 45 +- .../CustomAggregation.test.tsx.snap | 10 +- .../__tests__/ConfigureModel.test.tsx | 4 +- .../ConfigureModel.test.tsx.snap | 271 ++++++--- .../Components/AnomaliesLiveChart.tsx | 5 +- .../EmptyDashboard.test.tsx.snap | 29 +- .../__snapshots__/IndexOption.test.tsx.snap | 12 +- .../NameAndDescription.test.tsx.snap | 6 +- .../__snapshots__/Settings.test.tsx.snap | 34 +- .../__tests__/DefineDetector.test.tsx | 4 +- .../DefineDetector.test.tsx.snap | 171 ++++-- .../__tests__/DetectorConfig.test.tsx | 8 +- .../__snapshots__/ConfirmModal.test.tsx.snap | 257 +------- .../DetectorControls.test.tsx.snap | 8 +- .../MonitorCallout.test.tsx.snap | 70 ++- .../__snapshots__/HistoricalJob.test.tsx.snap | 18 +- .../__snapshots__/RealTimeJob.test.tsx.snap | 18 +- .../__snapshots__/DetectorJobs.test.tsx.snap | 50 +- .../__snapshots__/ListControls.test.tsx.snap | 20 +- .../containers/AnomalyResultsLiveChart.tsx | 4 +- .../__snapshots__/EmptyMessage.test.tsx.snap | 6 - .../__tests__/ListActions.test.tsx | 12 +- .../__snapshots__/ListActions.test.tsx.snap | 4 +- .../__snapshots__/ListFilters.test.tsx.snap | 22 +- .../ConfirmDeleteDetectorsModal.test.tsx | 28 +- .../ConfirmStartDetectorsModal.test.tsx | 6 +- .../ConfirmStopDetectorsModal.test.tsx | 6 +- .../containers/List/__tests__/List.test.tsx | 58 +- ...ptyHistoricalDetectorResults.test.tsx.snap | 29 +- .../__snapshots__/SampleDataBox.test.tsx.snap | 17 +- .../SampleDataCallout.test.tsx.snap | 70 ++- .../AnomalyDetectionOverview.test.tsx | 6 +- .../AnomalyDetectionOverview.test.tsx.snap | 329 +++++++++-- .../AdditionalSettings.test.tsx.snap | 16 +- .../DetectorDefinitionFields.test.tsx.snap | 4 +- .../ReviewAndCreate.test.tsx.snap | 48 +- server/router.ts | 1 - test/jest.config.js | 1 + yarn.lock | 266 +-------- 49 files changed, 1309 insertions(+), 1626 deletions(-) diff --git a/.gitignore b/.gitignore index 892b787a..00ab76a4 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ coverage offline-module-cache/v2/* offline-module-cache/v1/* target +._.DS_Store \ No newline at end of file diff --git a/opensearch_dashboards.json b/opensearch_dashboards.json index da2d58ef..de7a0fc4 100644 --- a/opensearch_dashboards.json +++ b/opensearch_dashboards.json @@ -1,7 +1,7 @@ { "id": "anomalyDetectionDashboards", - "version": "1.3.0.0", - "opensearchDashboardsVersion": "1.3.0", + "version": "2.0.0.0", + "opensearchDashboardsVersion": "2.0.0", "configPath": ["anomaly_detection_dashboards"], "requiredPlugins": ["navigation"], "optionalPlugins": [], diff --git a/package.json b/package.json index a8332342..e89a8486 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "anomaly-detection-dashboards", - "version": "1.3.0.0", + "version": "2.0.0.0", "description": "OpenSearch Anomaly Detection Dashboards Plugin", "main": "index.js", "config": { - "plugin_version": "1.3.0.0", + "plugin_version": "2.0.0.0", "plugin_name": "anomalyDetectionDashboards", "plugin_zip_name": "anomaly-detection-dashboards" }, @@ -24,8 +24,6 @@ }, "devDependencies": { "@elastic/eslint-import-resolver-kibana": "link:../../packages/osd-eslint-import-resolver-opensearch-dashboards", - "@testing-library/jest-dom": "^5.11.4", - "@testing-library/react": "^11.0.4", "@testing-library/user-event": "^12.1.6", "@types/react-plotly.js": "^2.2.4", "@types/redux-mock-store": "^1.0.1", diff --git a/public/components/ContentPanel/__snapshots__/ContentPanel.test.tsx.snap b/public/components/ContentPanel/__snapshots__/ContentPanel.test.tsx.snap index f83c028e..beac4000 100644 --- a/public/components/ContentPanel/__snapshots__/ContentPanel.test.tsx.snap +++ b/public/components/ContentPanel/__snapshots__/ContentPanel.test.tsx.snap @@ -2,7 +2,7 @@ exports[` spec renders the component 1`] = `
spec Alerts Flyout renders component with monitor 1`] = ` -
-
-