Skip to content

Commit b0c7a9a

Browse files
committed
move autofix check to the front
1 parent f7b615c commit b0c7a9a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sentry/seer/endpoints/organization_seer_onboarding_check.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ class OrganizationSeerOnboardingCheck(OrganizationEndpoint):
9898

9999
def get(self, request: Request, organization: Organization) -> Response:
100100
"""Check if the organization has completed Seer onboarding/configuration."""
101-
has_scm_integration = has_supported_scm_integration(organization.id)
102-
code_review_enabled = is_code_review_enabled(organization.id)
103-
104101
try:
105102
autofix_enabled = is_autofix_enabled(organization)
106103
except SeerApiError as e:
@@ -112,7 +109,8 @@ def get(self, request: Request, organization: Organization) -> Response:
112109
{"detail": "Failed to check autofix status"},
113110
status=status.HTTP_500_INTERNAL_SERVER_ERROR,
114111
)
115-
112+
has_scm_integration = has_supported_scm_integration(organization.id)
113+
code_review_enabled = is_code_review_enabled(organization.id)
116114
needs_config_reminder = is_in_seer_config_reminder_list(organization)
117115
is_seer_configured = has_scm_integration and (code_review_enabled or autofix_enabled)
118116

0 commit comments

Comments
 (0)