Skip to content

Commit 2b80ed7

Browse files
dnplkndllclaude
andcommitted
fix(seer): Fix supergroups @json_api/@Inject decorator conflict
@json_api inspects the function signature for a BaseModel parameter, but @Inject wraps the function and hides it. Use resolve(AppConfig) inside the function body instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ab4a1a9 commit 2b80ed7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/seer/app.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,10 +1374,7 @@ def workflows_compare_cohort_endpoint(
13741374

13751375

13761376
@json_api(blueprint, "/v0/issues/supergroups")
1377-
@inject
1378-
def supergroups_endpoint(
1379-
data: SupergroupsRequest, app_config: AppConfig = injected
1380-
) -> SupergroupsResponse:
1377+
def supergroups_endpoint(data: SupergroupsRequest) -> SupergroupsResponse:
13811378
"""Embed root cause analysis for issue supergroup clustering.
13821379
13831380
Receives root cause artifact data from completed autofix runs,
@@ -1387,6 +1384,7 @@ def supergroups_endpoint(
13871384
if not data.group_id or not data.artifact_data:
13881385
return SupergroupsResponse(status="ok")
13891386

1387+
app_config = resolve(AppConfig)
13901388
if not app_config.is_grouping_enabled:
13911389
logger.info(
13921390
"supergroups.skipped_grouping_disabled",

0 commit comments

Comments
 (0)