Skip to content

Commit 2f16c7a

Browse files
committed
chore(autofix): Remove unneeded seat based seer check
This check already exists on the frontend, no need to check it twice. This also lets us use to for non seat based seer plans.
1 parent 28331f1 commit 2f16c7a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/sentry/seer/endpoints/group_autofix_setup_check.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from sentry.seer.autofix.utils import (
2424
get_autofix_repos_from_project_code_mappings,
2525
has_project_connected_repos,
26-
is_seer_seat_based_tier_enabled,
2726
)
2827
from sentry.seer.constants import SEER_SUPPORTED_SCM_PROVIDERS
2928
from sentry.seer.models import SeerApiError
@@ -151,11 +150,9 @@ def get(self, request: Request, group: Group) -> Response:
151150
org_id=org.id, data_category=DataCategory.SEER_AUTOFIX
152151
)
153152

154-
seer_seat_based_tier_enabled = is_seer_seat_based_tier_enabled(org)
155-
156153
seer_repos_linked = False
157154
# Check if org has github integration and is on seat-based tier.
158-
if integration_check is None and seer_seat_based_tier_enabled:
155+
if integration_check is None:
159156
try:
160157
# Check if project has repos linked in Seer.
161158
# Skip cache to ensure latest data from Seer API.
@@ -168,12 +165,11 @@ def get(self, request: Request, group: Group) -> Response:
168165

169166
autofix_enabled = False
170167
autofix_automation_tuning = group.project.get_option("sentry:autofix_automation_tuning")
171-
if seer_seat_based_tier_enabled:
172-
if (
173-
autofix_automation_tuning
174-
and autofix_automation_tuning != AutofixAutomationTuningSettings.OFF
175-
):
176-
autofix_enabled = True
168+
if (
169+
autofix_automation_tuning
170+
and autofix_automation_tuning != AutofixAutomationTuningSettings.OFF
171+
):
172+
autofix_enabled = True
177173

178174
return Response(
179175
{

0 commit comments

Comments
 (0)