Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions src/sentry/seer/endpoints/group_autofix_setup_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from sentry.seer.autofix.utils import (
get_autofix_repos_from_project_code_mappings,
has_project_connected_repos,
is_seer_seat_based_tier_enabled,
)
from sentry.seer.constants import SEER_SUPPORTED_SCM_PROVIDERS
from sentry.seer.models import SeerApiError
Expand Down Expand Up @@ -151,11 +150,9 @@ def get(self, request: Request, group: Group) -> Response:
org_id=org.id, data_category=DataCategory.SEER_AUTOFIX
)

seer_seat_based_tier_enabled = is_seer_seat_based_tier_enabled(org)

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

autofix_enabled = False
autofix_automation_tuning = group.project.get_option("sentry:autofix_automation_tuning")
if seer_seat_based_tier_enabled:
if (
autofix_automation_tuning
and autofix_automation_tuning != AutofixAutomationTuningSettings.OFF
):
autofix_enabled = True
if (
autofix_automation_tuning
and autofix_automation_tuning != AutofixAutomationTuningSettings.OFF
):
autofix_enabled = True

return Response(
{
Expand Down
Loading