Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/sentry/notifications/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,10 @@ def get_performance_issue_alert_subtitle(event: GroupEvent) -> str:
"""Generate the issue alert subtitle for performance issues"""
if event.occurrence is None:
return ""
return event.occurrence.evidence_data.get("repeating_spans_compact", "").replace("`", '"')
repeating_spans_compact = event.occurrence.evidence_data.get("repeating_spans_compact", "")
if isinstance(repeating_spans_compact, list):
repeating_spans_compact = repeating_spans_compact[0]
return repeating_spans_compact.replace("`", '"')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit but if you feel this might be important enough to add a test that would be good



def get_notification_group_title(
Expand Down
Loading