@@ -103,8 +103,8 @@ def resolve_list_uploads(commit: Commit, info, **kwargs):
103103 )
104104
105105
106- @sentry_sdk .trace
107106@commit_bindable .field ("compareWithParent" )
107+ @sentry_sdk .trace
108108async def resolve_compare_with_parent (commit : Commit , info , ** kwargs ):
109109 if not commit .parent_commit_id :
110110 return MissingBaseCommit ()
@@ -286,16 +286,16 @@ async def resolve_total_uploads(commit, info):
286286 return await command .get_uploads_number (commit )
287287
288288
289- @sentry_sdk .trace
290289@commit_bindable .field ("bundleStatus" )
291290@sync_to_async
291+ @sentry_sdk .trace
292292def resolve_bundle_status (commit : Commit , info ) -> Optional [CommitStatus ]:
293293 return commit_status (commit , CommitReport .ReportType .BUNDLE_ANALYSIS )
294294
295295
296- @sentry_sdk .trace
297296@commit_bindable .field ("coverageStatus" )
298297@sync_to_async
298+ @sentry_sdk .trace
299299def resolve_coverage_status (commit : Commit , info ) -> Optional [CommitStatus ]:
300300 return commit_status (commit , CommitReport .ReportType .COVERAGE )
301301
@@ -313,25 +313,25 @@ def resolve_commit_bundle_analysis(commit, info):
313313### Commit Coverage Bindable ###
314314
315315
316- @sentry_sdk .trace
317316@commit_coverage_analytics_bindable .field ("totals" )
317+ @sentry_sdk .trace
318318def resolve_coverage_totals (
319319 commit : Commit , info : GraphQLResolveInfo
320320) -> Optional [ReportTotals ]:
321321 command = info .context ["executor" ].get_command ("commit" )
322322 return command .fetch_totals (commit )
323323
324324
325- @sentry_sdk .trace
326325@commit_coverage_analytics_bindable .field ("flagNames" )
327326@sync_to_async
327+ @sentry_sdk .trace
328328def resolve_coverage_flags (commit : Commit , info : GraphQLResolveInfo ) -> list [str ]:
329329 return commit .full_report .get_flag_names () if commit .full_report else []
330330
331331
332- @sentry_sdk .trace
333332@commit_coverage_analytics_bindable .field ("coverageFile" )
334333@sync_to_async
334+ @sentry_sdk .trace
335335def resolve_coverage_file (commit , info , path , flags = None , components = None ):
336336 fallback_file , paths = None , []
337337 if components :
@@ -358,9 +358,9 @@ def resolve_coverage_file(commit, info, path, flags=None, components=None):
358358 }
359359
360360
361- @sentry_sdk .trace
362361@commit_coverage_analytics_bindable .field ("components" )
363362@sync_to_async
363+ @sentry_sdk .trace
364364def resolve_coverage_components (commit : Commit , info , filters = None ) -> List [Component ]:
365365 info .context ["component_commit" ] = commit
366366 current_owner = info .context ["request" ].current_owner
@@ -377,9 +377,9 @@ def resolve_coverage_components(commit: Commit, info, filters=None) -> List[Comp
377377### Commit Bundle Analysis Bindable ###
378378
379379
380- @sentry_sdk .trace
381380@commit_bundle_analysis_bindable .field ("bundleAnalysisCompareWithParent" )
382381@sync_to_async
382+ @sentry_sdk .trace
383383def resolve_commit_bundle_analysis_compare_with_parent (
384384 commit : Commit , info : GraphQLResolveInfo
385385) -> Union [BundleAnalysisComparison , Any ]:
@@ -406,9 +406,9 @@ def resolve_commit_bundle_analysis_compare_with_parent(
406406 return bundle_analysis_comparison
407407
408408
409- @sentry_sdk .trace
410409@commit_bundle_analysis_bindable .field ("bundleAnalysisReport" )
411410@sync_to_async
411+ @sentry_sdk .trace
412412def resolve_commit_bundle_analysis_report (commit : Commit , info ) -> BundleAnalysisReport :
413413 bundle_analysis_report = load_bundle_analysis_report (commit )
414414
0 commit comments