@@ -748,8 +748,8 @@ def organization_project_issue_substatus_summaries(ctx: OrganizationReportContex
748748 project_ctx .total_substatus_count += item ["total" ]
749749
750750
751- _PAST_ISSUES_CANDIDATE_LIMIT = 50
752- _PAST_ISSUES_LINK_BOOST = 2
751+ PAST_ISSUES_CANDIDATE_LIMIT = 50
752+ PAST_ISSUES_LINK_BOOST = 2
753753
754754
755755def project_past_resolved_issues (
@@ -765,7 +765,7 @@ def project_past_resolved_issues(
765765 status = GroupStatus .RESOLVED ,
766766 resolved_at__gte = ctx .start ,
767767 resolved_at__lt = ctx .end + timedelta (days = 1 ),
768- ).order_by ("-times_seen" )[:_PAST_ISSUES_CANDIDATE_LIMIT ]
768+ ).order_by ("-times_seen" )[:PAST_ISSUES_CANDIDATE_LIMIT ]
769769 )
770770
771771 if not candidates :
@@ -853,7 +853,6 @@ def _past_resolved_error_counts(
853853 Op .EQ ,
854854 GroupStatus .RESOLVED ,
855855 ),
856- Condition (Column ("level" , entity = events_entity ), Op .EQ , "error" ),
857856 ],
858857 groupby = [Column ("group_id" , entity = events_entity )],
859858 orderby = [OrderBy (Function ("count" , []), Direction .DESC )],
@@ -926,7 +925,7 @@ def fetch_past_resolved_issue_links(ctx: OrganizationReportContext) -> None:
926925 # Re-sort with link boost applied, then truncate to top 3
927926 for project_ctx in ctx .projects_context_map .values ():
928927 project_ctx .past_resolved_issues .sort (
929- key = lambda x : x [1 ] * (_PAST_ISSUES_LINK_BOOST if x [2 ] else 1 ),
928+ key = lambda x : x [1 ] * (PAST_ISSUES_LINK_BOOST if x [2 ] else 1 ),
930929 reverse = True ,
931930 )
932931 project_ctx .past_resolved_issues = project_ctx .past_resolved_issues [:3 ]
0 commit comments