diff --git a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/constants.tsx b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/constants.tsx index a51763ba61137..030005b45ac62 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/constants.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/constants.tsx @@ -21,5 +21,4 @@ export const SIGNAL_STATUS_FIELD_NAME = 'kibana.alert.workflow_status'; export const AGENT_STATUS_FIELD_NAME = 'agent.status'; export const QUARANTINED_PATH_FIELD_NAME = 'quarantined.path'; export const REASON_FIELD_NAME = 'kibana.alert.reason'; -export const RISK_SCORE = 'kibana.alert.risk_score'; export const EVENT_SUMMARY_FIELD_NAME = 'eventSummary'; diff --git a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/formatted_field.test.tsx b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/formatted_field.test.tsx index a5173e44f2524..868848acd12be 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/formatted_field.test.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/formatted_field.test.tsx @@ -15,7 +15,6 @@ import { useMountAppended } from '../../../../../common/utils/use_mount_appended import { FormattedFieldValue } from './formatted_field'; import { HOST_NAME_FIELD_NAME } from './constants'; -import { formatRiskScore } from '../../../../../entity_analytics/common'; jest.mock('@elastic/eui', () => { const original = jest.requireActual('@elastic/eui'); @@ -286,39 +285,4 @@ describe('Events', () => { ); expect(wrapper.text()).toEqual(getEmptyValue()); }); - - test('it renders the formatted risk score when fieldName is RISK_SCORE and value is provided', () => { - const riskScoreValue = 85; - const wrapper = mount( - - - - ); - - expect( - wrapper.find(`[data-test-subj="formatted-field-kibana.alert.risk_score"]`).text() - ).toEqual(formatRiskScore(riskScoreValue)); - }); - - test('it does not render anything when fieldName is RISK_SCORE and value is not provided', () => { - const wrapper = mount( - - - - ); - - expect( - wrapper.find(`[data-test-subj="formatted-field-kibana.alert.risk_score"]`).exists() - ).toEqual(false); - }); }); diff --git a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/formatted_field.tsx b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/formatted_field.tsx index 733eadc5a15ea..299bb736ec4f2 100644 --- a/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/formatted_field.tsx +++ b/x-pack/plugins/security_solution/public/timelines/components/timeline/body/renderers/formatted_field.tsx @@ -13,7 +13,6 @@ import { isEmpty, isNumber } from 'lodash/fp'; import React from 'react'; import { css } from '@emotion/css'; import type { FieldSpec } from '@kbn/data-plugin/common'; -import { formatRiskScore } from '../../../../../entity_analytics/common'; import { getAgentTypeForAgentIdField } from '../../../../../common/lib/endpoint/utils/get_agent_type_for_agent_id_field'; import { ALERT_HOST_CRITICALITY, @@ -40,7 +39,6 @@ import { IP_FIELD_TYPE, MESSAGE_FIELD_NAME, REFERENCE_URL_FIELD_NAME, - RISK_SCORE, RULE_REFERENCE_FIELD_NAME, SIGNAL_RULE_NAME_FIELD_NAME, SIGNAL_STATUS_FIELD_NAME, @@ -241,10 +239,6 @@ const FormattedFieldValueComponent: React.FC<{ value={value} /> ); - } else if (fieldName === RISK_SCORE) { - return value ? ( - {formatRiskScore(Number(value))} - ) : null; } else if (fieldName === EVENT_MODULE_FIELD_NAME) { return renderEventModule({ contextId,