@@ -103,8 +103,8 @@ def resolve_list_uploads(commit: Commit, info, **kwargs):
103
103
)
104
104
105
105
106
- @sentry_sdk .trace
107
106
@commit_bindable .field ("compareWithParent" )
107
+ @sentry_sdk .trace
108
108
async def resolve_compare_with_parent (commit : Commit , info , ** kwargs ):
109
109
if not commit .parent_commit_id :
110
110
return MissingBaseCommit ()
@@ -286,16 +286,16 @@ async def resolve_total_uploads(commit, info):
286
286
return await command .get_uploads_number (commit )
287
287
288
288
289
- @sentry_sdk .trace
290
289
@commit_bindable .field ("bundleStatus" )
291
290
@sync_to_async
291
+ @sentry_sdk .trace
292
292
def resolve_bundle_status (commit : Commit , info ) -> Optional [CommitStatus ]:
293
293
return commit_status (commit , CommitReport .ReportType .BUNDLE_ANALYSIS )
294
294
295
295
296
- @sentry_sdk .trace
297
296
@commit_bindable .field ("coverageStatus" )
298
297
@sync_to_async
298
+ @sentry_sdk .trace
299
299
def resolve_coverage_status (commit : Commit , info ) -> Optional [CommitStatus ]:
300
300
return commit_status (commit , CommitReport .ReportType .COVERAGE )
301
301
@@ -313,25 +313,25 @@ def resolve_commit_bundle_analysis(commit, info):
313
313
### Commit Coverage Bindable ###
314
314
315
315
316
- @sentry_sdk .trace
317
316
@commit_coverage_analytics_bindable .field ("totals" )
317
+ @sentry_sdk .trace
318
318
def resolve_coverage_totals (
319
319
commit : Commit , info : GraphQLResolveInfo
320
320
) -> Optional [ReportTotals ]:
321
321
command = info .context ["executor" ].get_command ("commit" )
322
322
return command .fetch_totals (commit )
323
323
324
324
325
- @sentry_sdk .trace
326
325
@commit_coverage_analytics_bindable .field ("flagNames" )
327
326
@sync_to_async
327
+ @sentry_sdk .trace
328
328
def resolve_coverage_flags (commit : Commit , info : GraphQLResolveInfo ) -> list [str ]:
329
329
return commit .full_report .get_flag_names () if commit .full_report else []
330
330
331
331
332
- @sentry_sdk .trace
333
332
@commit_coverage_analytics_bindable .field ("coverageFile" )
334
333
@sync_to_async
334
+ @sentry_sdk .trace
335
335
def resolve_coverage_file (commit , info , path , flags = None , components = None ):
336
336
fallback_file , paths = None , []
337
337
if components :
@@ -358,9 +358,9 @@ def resolve_coverage_file(commit, info, path, flags=None, components=None):
358
358
}
359
359
360
360
361
- @sentry_sdk .trace
362
361
@commit_coverage_analytics_bindable .field ("components" )
363
362
@sync_to_async
363
+ @sentry_sdk .trace
364
364
def resolve_coverage_components (commit : Commit , info , filters = None ) -> List [Component ]:
365
365
info .context ["component_commit" ] = commit
366
366
current_owner = info .context ["request" ].current_owner
@@ -377,9 +377,9 @@ def resolve_coverage_components(commit: Commit, info, filters=None) -> List[Comp
377
377
### Commit Bundle Analysis Bindable ###
378
378
379
379
380
- @sentry_sdk .trace
381
380
@commit_bundle_analysis_bindable .field ("bundleAnalysisCompareWithParent" )
382
381
@sync_to_async
382
+ @sentry_sdk .trace
383
383
def resolve_commit_bundle_analysis_compare_with_parent (
384
384
commit : Commit , info : GraphQLResolveInfo
385
385
) -> Union [BundleAnalysisComparison , Any ]:
@@ -406,9 +406,9 @@ def resolve_commit_bundle_analysis_compare_with_parent(
406
406
return bundle_analysis_comparison
407
407
408
408
409
- @sentry_sdk .trace
410
409
@commit_bundle_analysis_bindable .field ("bundleAnalysisReport" )
411
410
@sync_to_async
411
+ @sentry_sdk .trace
412
412
def resolve_commit_bundle_analysis_report (commit : Commit , info ) -> BundleAnalysisReport :
413
413
bundle_analysis_report = load_bundle_analysis_report (commit )
414
414
0 commit comments