File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,10 @@ def meets_threshold(bug_data):
130130 for bug_id , data in fenix_general_classification .items ():
131131 confidence = data ["prob" ][data ["index" ]]
132132
133- if confidence > self .fenix_confidence_threshold :
133+ if (
134+ confidence > self .fenix_confidence_threshold
135+ and data ["class" ] != "General"
136+ ):
134137 data ["class" ] = f"Fenix::{ data ['class' ]} "
135138 bugs [bug_id ] = data
136139
@@ -160,6 +163,10 @@ def meets_threshold(bug_data):
160163 if "::" not in suggestion and bug ["product" ] == suggestion :
161164 continue
162165
166+ # No need to move a bug to the same component.
167+ if f"{ bug ['product' ]} ::{ bug ['component' ]} " == suggestion :
168+ continue
169+
163170 suggestion = conflated_components_mapping .get (suggestion , suggestion )
164171
165172 if "::" not in suggestion :
You can’t perform that action at this time.
0 commit comments