Browse Source

fix(escalating): Add resolved status badge to weekly-report (#53011)

Scott Cooper 1 year ago
parent
commit
ae29527969
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/sentry/tasks/weekly_reports.py

+ 2 - 0
src/sentry/tasks/weekly_reports.py

@@ -696,6 +696,8 @@ def get_group_status_badge(group: Group) -> Tuple[str, str, str]:
     Returns a tuple of (text, background_color, border_color)
     Should be similar to GroupStatusBadge.tsx in the frontend
     """
+    if group.status == GroupStatus.RESOLVED:
+        return ("Resolved", "rgba(108, 95, 199, 0.08)", "rgba(108, 95, 199, 0.5)")
     if group.status == GroupStatus.UNRESOLVED:
         if group.substatus == GroupSubStatus.NEW:
             return ("New", "rgba(245, 176, 0, 0.08)", "rgba(245, 176, 0, 0.55)")