From 6ad108d704b5098896556c6bae66d02ae52f135b Mon Sep 17 00:00:00 2001 From: "Quynh Nguyen (Quinn)" <43350163+qn895@users.noreply.github.com> Date: Thu, 30 Mar 2023 14:30:24 -0500 Subject: [PATCH 01/34] [ML] Fix elastic-charts warning for Anomaly explorer (#153902) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../explorer_charts/explorer_chart_single_metric.js | 2 +- .../explorer/explorer_charts/explorer_charts_container.js | 6 ++++-- .../ml/public/application/explorer/swimlane_container.tsx | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_chart_single_metric.js b/x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_chart_single_metric.js index 23f1b919108879..3f367d189762da 100644 --- a/x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_chart_single_metric.js +++ b/x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_chart_single_metric.js @@ -53,7 +53,7 @@ export class ExplorerChartSingleMetric extends React.Component { timeBuckets: PropTypes.object.isRequired, onPointerUpdate: PropTypes.func.isRequired, chartTheme: PropTypes.object.isRequired, - cursor: PropTypes.object.isRequired, + cursor: PropTypes.object, }; componentDidMount() { diff --git a/x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_charts_container.js b/x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_charts_container.js index b36d935fb65f46..e94bffea786712 100644 --- a/x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_charts_container.js +++ b/x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_charts_container.js @@ -43,7 +43,7 @@ import { ExplorerChartsErrorCallOuts } from './explorer_charts_error_callouts'; import { addItemToRecentlyAccessed } from '../../util/recently_accessed'; import { EmbeddedMapComponentWrapper } from './explorer_chart_embedded_map'; import { useActiveCursor } from '@kbn/charts-plugin/public'; -import { Chart, Settings } from '@elastic/charts'; +import { BarSeries, Chart, Settings } from '@elastic/charts'; import useObservable from 'react-use/lib/useObservable'; import { escapeKueryForFieldValuePair } from '../../util/string_utils'; @@ -238,7 +238,9 @@ function ExplorerChartContainer({ {/* so that we can use chart's ref which controls the activeCursor api */}
+ License error +
+ } + iconType="warning" + title={ ++ License error +
+
+
{message}
} - actions={[ -{message}
+ ) : ( + <> +{message}
+
+
+