From 72142bc978bce12e0bd5ea1f0c31f4761115196b Mon Sep 17 00:00:00 2001
From: Bena Kansara <69037875+benakansara@users.noreply.github.com>
Date: Tue, 5 Dec 2023 12:40:57 +0530
Subject: [PATCH] [Log threshold alert] Remove technical preview from alert
details page (#172474)
Partially resolves https://github.com/elastic/kibana/issues/172379
Removes "Technical Preview" and "Tell us what you think!" from the Log
threshold alert details page.
---------
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
---
.../public/pages/alert_details/alert_details.tsx | 6 ------
.../public/pages/alert_details/components/page_title.tsx | 2 --
2 files changed, 8 deletions(-)
diff --git a/x-pack/plugins/observability/public/pages/alert_details/alert_details.tsx b/x-pack/plugins/observability/public/pages/alert_details/alert_details.tsx
index 06da477896c5d..068c10594e4fa 100644
--- a/x-pack/plugins/observability/public/pages/alert_details/alert_details.tsx
+++ b/x-pack/plugins/observability/public/pages/alert_details/alert_details.tsx
@@ -21,7 +21,6 @@ import { PageTitle, pageTitleContent } from './components/page_title';
import { HeaderActions } from './components/header_actions';
import { AlertSummary, AlertSummaryField } from './components/alert_summary';
import { CenterJustifiedSpinner } from '../../components/center_justified_spinner';
-import { FeedbackButton } from './components/feedback_button';
import PageNotFound from '../404';
import { getTimeZone } from '../../utils/get_time_zone';
import { isAlertDetailsEnabledPerApp } from '../../utils/is_alert_details_enabled';
@@ -117,10 +116,6 @@ export function AlertDetails() {
const AlertDetailsAppSection = ruleTypeModel ? ruleTypeModel.alertDetailsAppSection : null;
const timeZone = getTimeZone(uiSettings);
- const showFeedbackButton = alert?.fields[ALERT_RULE_TYPE_ID] === LOG_DOCUMENT_COUNT_RULE_TYPE_ID;
-
- const feedbackButton = showFeedbackButton ? : null;
-
return (
,
- feedbackButton,
],
bottomBorder: true,
}}
diff --git a/x-pack/plugins/observability/public/pages/alert_details/components/page_title.tsx b/x-pack/plugins/observability/public/pages/alert_details/components/page_title.tsx
index 5fc846bb56ad8..b5756e6db3edc 100644
--- a/x-pack/plugins/observability/public/pages/alert_details/components/page_title.tsx
+++ b/x-pack/plugins/observability/public/pages/alert_details/components/page_title.tsx
@@ -32,7 +32,6 @@ import { asDuration } from '../../../../common/utils/formatters';
import { TopAlert } from '../../../typings/alerts';
import { ExperimentalBadge } from '../../../components/experimental_badge';
import {
- LOG_DOCUMENT_COUNT_RULE_TYPE_ID,
METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID,
METRIC_THRESHOLD_ALERT_TYPE_ID,
} from '../alert_details';
@@ -58,7 +57,6 @@ export function PageTitle({ alert, dataTestSubj }: PageTitleProps) {
if (!alert) return ;
const showExperimentalBadge =
- alert.fields[ALERT_RULE_TYPE_ID] === LOG_DOCUMENT_COUNT_RULE_TYPE_ID ||
alert.fields[ALERT_RULE_TYPE_ID] === METRIC_THRESHOLD_ALERT_TYPE_ID ||
alert.fields[ALERT_RULE_TYPE_ID] === METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID;