From bb0c45baf3ff812c603ceae605e2246ceb204f2e Mon Sep 17 00:00:00 2001 From: Marc Vilanova <39573146+mvilanova@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:56:02 -0700 Subject: [PATCH] Improves messaging in case threaded alert message (#5284) --- src/dispatch/plugins/dispatch_slack/case/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_slack/case/messages.py b/src/dispatch/plugins/dispatch_slack/case/messages.py index 1a20a6f17913..f44643c2544f 100644 --- a/src/dispatch/plugins/dispatch_slack/case/messages.py +++ b/src/dispatch/plugins/dispatch_slack/case/messages.py @@ -218,7 +218,7 @@ def create_signal_message(case_id: int, channel_id: str, db_session: Session) -> signal_metadata_blocks = [ Section(text="*Alerts*"), Section( - text=f"We observed {instances.count()} alerts in this case. The first alert for this case can be seen below and all alerts in the <{DISPATCH_UI_URL}/{organization_slug}/cases/{first_instance_signal.case.name}|Dispatch UI>." + text=f"We observed <{DISPATCH_UI_URL}/{organization_slug}/cases/{first_instance_signal.case.name}/signal/{first_instance_signal.id}|{instances.count()} alerts> in this case. The first alert for this case can be seen below." ), ]