From 3c66d19067ca711097b7c6b445c287baa248d3f4 Mon Sep 17 00:00:00 2001 From: Malachi Willey Date: Tue, 18 Nov 2025 15:49:22 -0800 Subject: [PATCH] chore(issues): Remove old reference to performance category when building messages --- src/sentry/integrations/messaging/message_builder.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/sentry/integrations/messaging/message_builder.py b/src/sentry/integrations/messaging/message_builder.py index 540137c483520c..5d21043ae43111 100644 --- a/src/sentry/integrations/messaging/message_builder.py +++ b/src/sentry/integrations/messaging/message_builder.py @@ -6,7 +6,6 @@ from sentry import features from sentry.integrations.messaging.types import LEVEL_TO_COLOR from sentry.integrations.types import EXTERNAL_PROVIDERS, ExternalProviders -from sentry.issues.grouptype import GroupCategory from sentry.models.environment import Environment from sentry.models.group import Group from sentry.models.organization import Organization @@ -333,9 +332,5 @@ def get_color( color = event_for_tags.occurrence.level if color and color in LEVEL_TO_COLOR.keys(): return color - if group.issue_category == GroupCategory.PERFORMANCE: - # XXX(CEO): this shouldn't be needed long term, but due to a race condition - # the group's latest event is not found and we end up with no event_for_tags here for perf issues - return "info" return "error"