From e7b498574d037923339b9b4e0905319970358bd0 Mon Sep 17 00:00:00 2001
From: Jared Burgett <147995946+jaredburgettelastic@users.noreply.github.com>
Date: Mon, 28 Oct 2024 16:00:06 -0500
Subject: [PATCH] Added redirect option after Entity CSV upload (#197937)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## Summary
Added a redirect button to view Entities after a successful Asset
Criticality CSV file upload process
Additionally, made some small changes to the copy for the Entity Store
management workflows
Co-authored-by: Elastic Machine
---
.../components/result_step.tsx | 17 ++++++++++++++---
.../components/entity_store/translations.ts | 2 +-
.../pages/entity_store_management_page.tsx | 2 +-
.../public/management/links.ts | 2 +-
4 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/x-pack/plugins/security_solution/public/entity_analytics/components/asset_criticality_file_uploader/components/result_step.tsx b/x-pack/plugins/security_solution/public/entity_analytics/components/asset_criticality_file_uploader/components/result_step.tsx
index 3a71b48055fcc..07629b2c6e0b6 100644
--- a/x-pack/plugins/security_solution/public/entity_analytics/components/asset_criticality_file_uploader/components/result_step.tsx
+++ b/x-pack/plugins/security_solution/public/entity_analytics/components/asset_criticality_file_uploader/components/result_step.tsx
@@ -7,6 +7,7 @@
import {
EuiButtonEmpty,
+ EuiButton,
EuiCallOut,
EuiCodeBlock,
EuiFlexGroup,
@@ -17,7 +18,8 @@ import {
import React from 'react';
import { FormattedMessage } from '@kbn/i18n-react';
import { css } from '@emotion/react';
-import type { BulkUpsertAssetCriticalityRecordsResponse } from '../../../../../common/entity_analytics/asset_criticality/types';
+import { SecurityPageName } from '@kbn/deeplinks-security';
+import type { BulkUpsertAssetCriticalityRecordsResponse } from '../../../../../common/api/entity_analytics';
import { buildAnnotationsFromError } from '../helpers';
import { ScheduleRiskEngineCallout } from './schedule_risk_engine_callout';
@@ -61,7 +63,7 @@ export const AssetCriticalityResultStep: React.FC<{
data-test-subj="asset-criticality-result-step-success"
title={
}
@@ -69,9 +71,18 @@ export const AssetCriticalityResultStep: React.FC<{
iconType="checkInCircleFilled"
>
+
+
+ {
+
+ }
+
diff --git a/x-pack/plugins/security_solution/public/entity_analytics/components/entity_store/translations.ts b/x-pack/plugins/security_solution/public/entity_analytics/components/entity_store/translations.ts
index 127ff5c88506b..4c113dd533acb 100644
--- a/x-pack/plugins/security_solution/public/entity_analytics/components/entity_store/translations.ts
+++ b/x-pack/plugins/security_solution/public/entity_analytics/components/entity_store/translations.ts
@@ -51,7 +51,7 @@ export const ENABLEMENT_DESCRIPTION_RISK_ENGINE_ONLY = i18n.translate(
export const ENABLEMENT_DESCRIPTION_ENTITY_STORE_ONLY = i18n.translate(
'xpack.securitySolution.entityAnalytics.entityStore.enablement.description.store',
{
- defaultMessage: "Allows comprehensive monitoring of your system's hosts and users.",
+ defaultMessage: 'Store host and user entities observed in events.',
}
);
diff --git a/x-pack/plugins/security_solution/public/entity_analytics/pages/entity_store_management_page.tsx b/x-pack/plugins/security_solution/public/entity_analytics/pages/entity_store_management_page.tsx
index 8b2292448b13d..1ca2b0e2b02da 100644
--- a/x-pack/plugins/security_solution/public/entity_analytics/pages/entity_store_management_page.tsx
+++ b/x-pack/plugins/security_solution/public/entity_analytics/pages/entity_store_management_page.tsx
@@ -290,7 +290,7 @@ export const EntityStoreManagementPage = () => {
{isEntityStoreFeatureFlagDisabled && }
diff --git a/x-pack/plugins/security_solution/public/management/links.ts b/x-pack/plugins/security_solution/public/management/links.ts
index 27b5b62eac6f8..d033fdf491ce8 100644
--- a/x-pack/plugins/security_solution/public/management/links.ts
+++ b/x-pack/plugins/security_solution/public/management/links.ts
@@ -198,7 +198,7 @@ export const links: LinkItem = {
id: SecurityPageName.entityAnalyticsEntityStoreManagement,
title: ENTITY_STORE,
description: i18n.translate('xpack.securitySolution.appLinks.entityStoreDescription', {
- defaultMessage: "Allows comprehensive monitoring of your system's hosts and users.",
+ defaultMessage: 'Store host and user entities observed in events.',
}),
landingIcon: IconAssetCriticality,
path: ENTITY_ANALYTICS_ENTITY_STORE_MANAGEMENT_PATH,