diff --git a/src/sentry/notifications/defaults.py b/src/sentry/notifications/defaults.py index 68b418ba5f9722..af3c080d0dbbbe 100644 --- a/src/sentry/notifications/defaults.py +++ b/src/sentry/notifications/defaults.py @@ -25,6 +25,7 @@ NotificationSettingEnum.QUOTA_SEER_BUDGET: NotificationSettingsOptionEnum.ALWAYS, NotificationSettingEnum.QUOTA_LOG_BYTES: NotificationSettingsOptionEnum.ALWAYS, NotificationSettingEnum.QUOTA_PREVENT_USERS: NotificationSettingsOptionEnum.ALWAYS, + NotificationSettingEnum.QUOTA_SEER_USERS: NotificationSettingsOptionEnum.ALWAYS, NotificationSettingEnum.QUOTA_WARNINGS: NotificationSettingsOptionEnum.ALWAYS, NotificationSettingEnum.QUOTA_SPEND_ALLOCATIONS: NotificationSettingsOptionEnum.ALWAYS, NotificationSettingEnum.QUOTA_THRESHOLDS: NotificationSettingsOptionEnum.ALWAYS, diff --git a/src/sentry/notifications/types.py b/src/sentry/notifications/types.py index 745efc34b5cadc..b6195af991a4b8 100644 --- a/src/sentry/notifications/types.py +++ b/src/sentry/notifications/types.py @@ -35,6 +35,7 @@ class NotificationSettingEnum(ValueEqualityEnum): QUOTA_SPEND_ALLOCATIONS = "quotaSpendAllocations" QUOTA_LOG_BYTES = "quotaLogBytes" QUOTA_PREVENT_USERS = "quotaPreventUsers" + QUOTA_SEER_USERS = "quotaSeerUsers" SPIKE_PROTECTION = "spikeProtection" MISSING_MEMBERS = "missingMembers" REPORTS = "reports" @@ -155,6 +156,10 @@ class UserOptionsSettingsKey(Enum): NotificationSettingsOptionEnum.ALWAYS, NotificationSettingsOptionEnum.NEVER, }, + NotificationSettingEnum.QUOTA_SEER_USERS: { + NotificationSettingsOptionEnum.ALWAYS, + NotificationSettingsOptionEnum.NEVER, + }, NotificationSettingEnum.QUOTA_THRESHOLDS: { NotificationSettingsOptionEnum.ALWAYS, NotificationSettingsOptionEnum.NEVER, diff --git a/tests/sentry/notifications/api/endpoints/test_notification_defaults.py b/tests/sentry/notifications/api/endpoints/test_notification_defaults.py index 2a649499630e9c..457b8528f9e675 100644 --- a/tests/sentry/notifications/api/endpoints/test_notification_defaults.py +++ b/tests/sentry/notifications/api/endpoints/test_notification_defaults.py @@ -35,5 +35,6 @@ def test_basic(self) -> None: "workflow": "subscribe_only", "brokenMonitors": "always", "quotaPreventUsers": "always", + "quotaSeerUsers": "always", }, } diff --git a/tests/sentry/notifications/api/endpoints/test_user_notification_settings_options.py b/tests/sentry/notifications/api/endpoints/test_user_notification_settings_options.py index c20e0abc56d62b..fb66406b6f202f 100644 --- a/tests/sentry/notifications/api/endpoints/test_user_notification_settings_options.py +++ b/tests/sentry/notifications/api/endpoints/test_user_notification_settings_options.py @@ -106,6 +106,7 @@ def test_user_scope(self) -> None: NotificationSettingEnum.QUOTA_SPANS, NotificationSettingEnum.QUOTA_LOG_BYTES, NotificationSettingEnum.QUOTA_PREVENT_USERS, + NotificationSettingEnum.QUOTA_SEER_USERS, ] # turn on notification settings