From 9982eca3b604448e0fe3f2657c88ae91ea84b163 Mon Sep 17 00:00:00 2001 From: Ildar Iskhakov Date: Tue, 9 Jul 2024 22:46:01 +0800 Subject: [PATCH] Remove mention from aler group main slack message (#4637) # What this PR does Removes @mention from Alert Slack message Fixes https://github.com/grafana/oncall/issues/187 ## Which issue(s) this PR closes Closes [issue link here] ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. --- .../alerts/incident_appearance/renderers/slack_renderer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/apps/alerts/incident_appearance/renderers/slack_renderer.py b/engine/apps/alerts/incident_appearance/renderers/slack_renderer.py index 4930746649..c99d59579e 100644 --- a/engine/apps/alerts/incident_appearance/renderers/slack_renderer.py +++ b/engine/apps/alerts/incident_appearance/renderers/slack_renderer.py @@ -135,7 +135,7 @@ def render_alert_group_attachments(self): if self.alert_group.resolved: resolve_attachment = { "fallback": "Resolved...", - "text": self.alert_group.get_resolve_text(mention_user=True), + "text": self.alert_group.get_resolve_text(mention_user=False), "callback_id": "alert", } attachments.append(resolve_attachment) @@ -143,7 +143,7 @@ def render_alert_group_attachments(self): if self.alert_group.acknowledged: ack_attachment = { "fallback": "Acknowledged...", - "text": self.alert_group.get_acknowledge_text(mention_user=True), + "text": self.alert_group.get_acknowledge_text(mention_user=False), "callback_id": "alert", } attachments.append(ack_attachment)