mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Delete 'critical services' count from Entity Analytics Dashboard header (#210827)
## Summary This PR deletes the "Critical Services" component from the Entity Analytics Dashboard header.  The component was included with the service entity store, but Product and QA consider it confusing and not very valuable to our users. ### How to test it? * Start Kibana with security data * Go to the security solution/entity analytics dashboard * The component shouldn't be there
This commit is contained in:
parent
e5958a47f3
commit
c241772ecb
1 changed files with 0 additions and 32 deletions
|
@ -10,7 +10,6 @@ import styled from '@emotion/styled';
|
|||
import { useDispatch } from 'react-redux';
|
||||
import { capitalize, sumBy } from 'lodash/fp';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import { useIsExperimentalFeatureEnabled } from '../../../common/hooks/use_experimental_features';
|
||||
import { SEVERITY_COLOR } from '../../../overview/components/detection_response/utils';
|
||||
import { LinkAnchor, useGetSecuritySolutionLinkProps } from '../../../common/components/links';
|
||||
import {
|
||||
|
@ -45,7 +44,6 @@ const StyledEuiTitle = styled(EuiTitle)`
|
|||
// This is not used by the inspect feature but required by the refresh button
|
||||
const HOST_RISK_QUERY_ID = 'hostRiskScoreKpiQuery';
|
||||
const USER_RISK_QUERY_ID = 'userRiskScoreKpiQuery';
|
||||
const SERVICE_RISK_QUERY_ID = 'serviceRiskScoreKpiQuery';
|
||||
|
||||
export const EntityAnalyticsHeader = () => {
|
||||
const { from, to } = useGlobalTime();
|
||||
|
@ -57,7 +55,6 @@ export const EntityAnalyticsHeader = () => {
|
|||
}),
|
||||
[from, to]
|
||||
);
|
||||
const isServiceEntityStoreEnabled = useIsExperimentalFeatureEnabled('serviceEntityStoreEnabled');
|
||||
|
||||
const {
|
||||
severityCount: hostsSeverityCount,
|
||||
|
@ -81,17 +78,6 @@ export const EntityAnalyticsHeader = () => {
|
|||
riskEntity: EntityType.user,
|
||||
});
|
||||
|
||||
const {
|
||||
severityCount: servicesSeverityCount,
|
||||
loading: serviceRiskLoading,
|
||||
refetch: refetchServiceRiskScore,
|
||||
inspect: inspectServiceRiskScore,
|
||||
} = useRiskScoreKpi({
|
||||
filterQuery,
|
||||
timerange,
|
||||
riskEntity: EntityType.service,
|
||||
});
|
||||
|
||||
const { data } = useAggregatedAnomaliesByJob({ skip: false, from, to });
|
||||
|
||||
const dispatch = useDispatch();
|
||||
|
@ -163,15 +149,6 @@ export const EntityAnalyticsHeader = () => {
|
|||
inspect: inspectHostRiskScore,
|
||||
});
|
||||
|
||||
useQueryInspector({
|
||||
queryId: SERVICE_RISK_QUERY_ID,
|
||||
loading: serviceRiskLoading,
|
||||
refetch: refetchServiceRiskScore,
|
||||
setQuery,
|
||||
deleteQuery,
|
||||
inspect: inspectServiceRiskScore,
|
||||
});
|
||||
|
||||
// Anomaly jobs are enabled if at least one job is started or has data
|
||||
const areJobsEnabled = useMemo(
|
||||
() =>
|
||||
|
@ -216,15 +193,6 @@ export const EntityAnalyticsHeader = () => {
|
|||
href={userRiskTabUrl}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
|
||||
{isServiceEntityStoreEnabled && (
|
||||
<EuiFlexItem grow={false}>
|
||||
<CriticalEntitiesCount
|
||||
entityType={EntityType.service}
|
||||
severityCount={servicesSeverityCount}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue