-
Notifications
You must be signed in to change notification settings - Fork 18
Add UX support for HC detector #314
Add UX support for HC detector #314
Conversation
will fix UT while reviewing |
current UT passed. will add more UT for new code.
|
public/pages/AnomalyCharts/containers/AnomalyOccurrenceChart.tsx
Outdated
Show resolved
Hide resolved
}; | ||
|
||
const showLoader = useDelayedLoader(props.isLoading || isLoadingAlerts); | ||
const showLoader = useDelayedLoader(props.isLoading); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any impact to single entity detector by removing isLoadingAlerts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no. it will be there for AnomalyDetailsChart
props.showAlerts === undefined || !props.showAlerts | ||
? [ | ||
<EuiSpacer size="m" />, | ||
<AnomalyOccurrenceChart |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AnomalyOccurrenceChart
is only used by HC detector and AnomalyDetailChart
is only used single entity detector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and AnomalyOccurrenceChart
contains AnomalyDetailChart
. AnomalyOccurrenceChart
is actually wrapper of AnomalyDetailChart
, making AnomalyDetailChart
a separate chart so that it can be easily re-used in multiple places
public/pages/DetectorResults/containers/AnomalyResultsTable.tsx
Outdated
Show resolved
Hide resolved
public/pages/DetectorResults/containers/AnomalyResultsTable.tsx
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,388 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is refactored from AnomaliesChart.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Issue #, if available:
Description of changes:
Add UX support for HC detector.
Preview for HC detector:
DetectorResult for HC detector:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.