From 8e0d110717594d429517d55e1806907d3174f112 Mon Sep 17 00:00:00 2001 From: Ievgen Sorokopud Date: Thu, 21 Nov 2024 18:05:33 +0100 Subject: [PATCH] Remove obsolete code --- .../security_solution/public/app/translations.ts | 9 ++++++--- .../hooks/use_is_siem_migrations_enabled.tsx | 12 ------------ .../public/siem_migrations/constants.ts | 16 ---------------- .../public/siem_migrations/links.ts | 4 ++-- 4 files changed, 8 insertions(+), 33 deletions(-) delete mode 100644 x-pack/plugins/security_solution/public/detection_engine/rule_management_ui/hooks/use_is_siem_migrations_enabled.tsx delete mode 100644 x-pack/plugins/security_solution/public/siem_migrations/constants.ts diff --git a/x-pack/plugins/security_solution/public/app/translations.ts b/x-pack/plugins/security_solution/public/app/translations.ts index 2dae25954c3a9..1769a805f488f 100644 --- a/x-pack/plugins/security_solution/public/app/translations.ts +++ b/x-pack/plugins/security_solution/public/app/translations.ts @@ -101,9 +101,12 @@ export const EXCEPTIONS = i18n.translate('xpack.securitySolution.navigation.exce defaultMessage: 'Shared exception lists', }); -export const SIEM_MIGRATIONS = i18n.translate('xpack.securitySolution.navigation.siemMigrations', { - defaultMessage: 'SIEM Rules Migrations', -}); +export const SIEM_MIGRATIONS_RULES = i18n.translate( + 'xpack.securitySolution.navigation.siemMigrationsRules', + { + defaultMessage: 'SIEM Rules Migrations', + } +); export const ALERTS = i18n.translate('xpack.securitySolution.navigation.alerts', { defaultMessage: 'Alerts', diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_management_ui/hooks/use_is_siem_migrations_enabled.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_management_ui/hooks/use_is_siem_migrations_enabled.tsx deleted file mode 100644 index 8755df3210d29..0000000000000 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_management_ui/hooks/use_is_siem_migrations_enabled.tsx +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { useIsExperimentalFeatureEnabled } from '../../../common/hooks/use_experimental_features'; - -export const useIsSiemMigrationsEnabled = () => { - return useIsExperimentalFeatureEnabled('siemMigrationsEnabled'); -}; diff --git a/x-pack/plugins/security_solution/public/siem_migrations/constants.ts b/x-pack/plugins/security_solution/public/siem_migrations/constants.ts deleted file mode 100644 index 0eb277bd61875..0000000000000 --- a/x-pack/plugins/security_solution/public/siem_migrations/constants.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ -export const PAGE_CONTENT_WIDTH = '1150px'; - -export enum OnboardingCardId { - integrations = 'integrations', - dashboards = 'dashboards', - rules = 'rules', - alerts = 'alerts', - assistant = 'assistant', - attackDiscovery = 'attack_discovery', -} diff --git a/x-pack/plugins/security_solution/public/siem_migrations/links.ts b/x-pack/plugins/security_solution/public/siem_migrations/links.ts index bcdd75baad40d..34db8a357785a 100644 --- a/x-pack/plugins/security_solution/public/siem_migrations/links.ts +++ b/x-pack/plugins/security_solution/public/siem_migrations/links.ts @@ -11,13 +11,13 @@ import { SERVER_APP_ID, SIEM_MIGRATIONS_RULES_PATH, } from '../../common/constants'; -import { SIEM_MIGRATIONS } from '../app/translations'; +import { SIEM_MIGRATIONS_RULES } from '../app/translations'; import type { LinkItem } from '../common/links/types'; import { IconConsoleCloud } from '../common/icons/console_cloud'; export const siemMigrationsLinks: LinkItem = { id: SecurityPageName.siemMigrationsRules, - title: SIEM_MIGRATIONS, + title: SIEM_MIGRATIONS_RULES, description: i18n.translate('xpack.securitySolution.appLinks.siemMigrationsRulesDescription', { defaultMessage: 'SIEM Rules Migrations.', }),