From ea63b5534b9fcbef6feacc19fbaeadeba5ce59cb Mon Sep 17 00:00:00 2001
From: Tianli Feng <62041081+ftianli-amzn@users.noreply.github.com>
Date: Fri, 29 May 2020 14:44:48 -0700
Subject: [PATCH] Adds support for Kibana 7.7.0 (#151)
* Adds support for Kibana 7.7.0
* upgrade Kibana version in workflow
* Updates the Release Notes
* remove usage of getAxisId(), getSpecId() and getAnnotationId()
---
.github/workflows/unit-tests-workflow.yml | 2 +-
...ticsearch-alerting-kibana.release-notes.md | 5 +++++
package.json | 4 ++--
.../AnomaliesChart/AnomaliesChart.js | 13 +++++--------
.../FeatureChart/FeatureChart.js | 19 +++++--------------
.../__snapshots__/Frequencies.test.js.snap | 1 +
.../AnomalyDetector.test.js.snap | 10 ++++------
.../__snapshots__/MonitorIndex.test.js.snap | 9 +++------
.../AcknowledgeModal.test.js.snap | 1 -
yarn.lock | 9 ++-------
10 files changed, 28 insertions(+), 45 deletions(-)
diff --git a/.github/workflows/unit-tests-workflow.yml b/.github/workflows/unit-tests-workflow.yml
index 75121f42..1acac851 100644
--- a/.github/workflows/unit-tests-workflow.yml
+++ b/.github/workflows/unit-tests-workflow.yml
@@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v2
with:
repository: opendistro-for-elasticsearch/kibana-oss
- ref: 7.6.1
+ ref: 7.7.0
token: ${{ secrets.GITHUB_KIBANA_OSS }}
path: kibana
- name: Get node and yarn versions
diff --git a/opendistro-elasticsearch-alerting-kibana.release-notes.md b/opendistro-elasticsearch-alerting-kibana.release-notes.md
index 5000b75d..36a780f7 100644
--- a/opendistro-elasticsearch-alerting-kibana.release-notes.md
+++ b/opendistro-elasticsearch-alerting-kibana.release-notes.md
@@ -1,3 +1,8 @@
+## Version 1.8.0.0, 2020-05-19
+
+### Bug fixes
+ * Fixes wrong time interval unit for monitor on top of anomaly detector. - [PR #145](https://github.com/opendistro-for-elasticsearch/alerting-kibana-plugin/pull/145)
+
## Version 1.7.0.0, 2020-05-04
### New Features
diff --git a/package.json b/package.json
index a9d47e61..a984c581 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,12 @@
{
"name": "opendistro-alerting",
- "version": "1.7.0.0",
+ "version": "1.8.0.0",
"description": "Kibana Alerting Plugin",
"main": "index.js",
"license": "Apache-2.0",
"homepage": "https://github.com/opendistro-for-elasticsearch/alerting-kibana-plugin",
"kibana": {
- "version": "7.6.1",
+ "version": "7.7.0",
"templateVersion": "6.3.3"
},
"repository": {
diff --git a/public/pages/CreateMonitor/components/AnomalyDetectors/AnomaliesChart/AnomaliesChart.js b/public/pages/CreateMonitor/components/AnomalyDetectors/AnomaliesChart/AnomaliesChart.js
index 164085be..197fdd2d 100644
--- a/public/pages/CreateMonitor/components/AnomalyDetectors/AnomaliesChart/AnomaliesChart.js
+++ b/public/pages/CreateMonitor/components/AnomalyDetectors/AnomaliesChart/AnomaliesChart.js
@@ -18,14 +18,11 @@ import PropTypes from 'prop-types';
import { EuiText, EuiSpacer } from '@elastic/eui';
import {
Chart,
- getAxisId,
Axis,
- getSpecId,
LineSeries,
niceTimeFormatter,
Settings,
Position,
- getAnnotationId,
LineAnnotation,
} from '@elastic/charts';
import { ChartContainer } from '../../../../../components/ChartContainer/ChartContainer';
@@ -62,16 +59,16 @@ const AnomaliesChart = props => {
showLegendDisplayValue={false}
/>
) : null}
-
+
{props.annotationData ? (
{
) : null}
{props.displayGrade ? (
{
) : null}
{props.displayConfidence ? (
-
-
+
+