Browse Source

fix(release-notifications): Add back release notification enum (#44698)

Snigdha Sharma 2 years ago
parent
commit
c6358a9d53
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/sentry/notifications/types.py

+ 5 - 0
src/sentry/notifications/types.py

@@ -43,6 +43,9 @@ class NotificationSettingTypes(Enum):
     # Notifications for changes in assignment, resolution, comments, etc.
     WORKFLOW = 30
 
+    # Notification when an issue happens shortly after your release. This notification type is no longer supported.
+    ACTIVE_RELEASE = 31
+
     # Notifications that require approval like a request to invite a member
     APPROVAL = 40
 
@@ -70,6 +73,7 @@ NOTIFICATION_SETTING_TYPES = {
     NotificationSettingTypes.DEPLOY: "deploy",
     NotificationSettingTypes.ISSUE_ALERTS: "alerts",
     NotificationSettingTypes.WORKFLOW: "workflow",
+    NotificationSettingTypes.ACTIVE_RELEASE: "activeRelease",
     NotificationSettingTypes.APPROVAL: "approval",
     NotificationSettingTypes.QUOTA: "quota",
     NotificationSettingTypes.QUOTA_ERRORS: "quotaErrors",
@@ -147,6 +151,7 @@ class UserOptionsSettingsKey(Enum):
     SELF_ASSIGN = "selfAssignOnResolve"
     SUBSCRIBE_BY_DEFAULT = "subscribeByDefault"
     WORKFLOW = "workflowNotifications"
+    ACTIVE_RELEASE = "activeReleaseNotifications"
     APPROVAL = "approvalNotifications"
     QUOTA = "quotaNotifications"
     SPIKE_PROTECTION = "spikeProtectionNotifications"