Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 3697b34

Browse files
committed
Fix
1 parent 847013e commit 3697b34

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

graphs/views.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ def component_coverage(self, component_id, commit):
170170
commit (obj): commit object containing report
171171
"""
172172
report = commit.full_report
173-
log.warning("report", extra={"report": report})
174173
if report is None:
175174
log.warning(
176175
"Commit's report not found",
@@ -188,17 +187,12 @@ def component_coverage(self, component_id, commit):
188187
# Component not found
189188
log.warning("stopiteration")
190189
return None
191-
log.warning("component", extra={"component": component})
192190

193191
component_flags = component.get_matching_flags(report.get_flag_names())
194192

195-
log.warning("component_flags", extra={"component_flags": component_flags})
193+
filtered_report = report.filter(flags=component_flags, paths=component.paths)
196194

197-
report.filter(flags=component_flags, paths=component.paths)
198-
199-
log.warning("report_filtered", extra={"report": report})
200-
201-
return report.totals.coverage
195+
return filtered_report.totals.coverage
202196

203197

204198
class GraphHandler(APIView, RepoPropertyMixin, GraphBadgeAPIMixin):

0 commit comments

Comments
 (0)