From 6614d5042787098d02296b84a792fdce37d2d465 Mon Sep 17 00:00:00 2001 From: Ildar Iskhakov Date: Thu, 9 Mar 2023 16:57:13 +0800 Subject: [PATCH] Rename Incident to Alert Group (#1512) # What this PR does ## Which issue(s) this PR fixes ## Checklist - [ ] Tests updated - [ ] Documentation added - [ ] `CHANGELOG.md` updated --- engine/apps/slack/scenarios/alertgroup_appearance.py | 2 +- engine/apps/slack/scenarios/distribute_alerts.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/apps/slack/scenarios/alertgroup_appearance.py b/engine/apps/slack/scenarios/alertgroup_appearance.py index 875c0371..b3443c52 100644 --- a/engine/apps/slack/scenarios/alertgroup_appearance.py +++ b/engine/apps/slack/scenarios/alertgroup_appearance.py @@ -194,7 +194,7 @@ class OpenAlertAppearanceDialogStep( "type": "modal", "title": { "type": "plain_text", - "text": "Incident template", + "text": "Alert group template", }, "submit": { "type": "plain_text", diff --git a/engine/apps/slack/scenarios/distribute_alerts.py b/engine/apps/slack/scenarios/distribute_alerts.py index a71a63bd..a916255d 100644 --- a/engine/apps/slack/scenarios/distribute_alerts.py +++ b/engine/apps/slack/scenarios/distribute_alerts.py @@ -302,7 +302,7 @@ class SelectAttachGroupStep( scenario_step.ScenarioStep, ): REQUIRED_PERMISSIONS = [RBACPermission.Permissions.CHATOPS_WRITE] - ACTION_VERBOSE = "Select Incident for Attaching to" + ACTION_VERBOSE = "Select Alert Group for Attaching to" def process_scenario(self, slack_user_identity, slack_team_identity, payload): AlertGroup = apps.get_model("alerts", "AlertGroup") @@ -319,7 +319,7 @@ class SelectAttachGroupStep( "type": "modal", "title": { "type": "plain_text", - "text": "Attach to Incident", + "text": "Attach to Alert Group", }, "private_metadata": json.dumps( { @@ -715,7 +715,7 @@ class UnAcknowledgeGroupStep( ] text = ( f"{user_verbal} hasn't responded to an acknowledge timeout reminder." - f" Incident is unacknowledged automatically" + f" Alert Group is unacknowledged automatically" ) if alert_group.slack_message.ack_reminder_message_ts: try: