File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
ui/shared/tabs/failureSummary Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 448
448
MAX_ERROR_LINES = 40
449
449
FAILURE_LINES_CUTOFF = 150
450
450
451
- # Required number of occurrences in a given time window before being prompted to file a bug in Bugzilla
451
+ # Count internal issue annotations in a limited time window ( before prompting user to file a bug in Bugzilla)
452
452
INTERNAL_OCCURRENCES_DAYS_WINDOW = 7
453
- INTERNAL_OCCURRENCES_COUNT = 3
454
453
455
454
# Perfherder
456
455
# Default minimum regression threshold for perfherder is 2% (otherwise
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ function BugListItem(props) {
21
21
} = props ;
22
22
const bugUrl = getBugUrl ( bug . id ) ;
23
23
const duplicateBugUrl = bug . dupe_of ? getBugUrl ( bug . dupe_of ) : undefined ;
24
+ // Number of internal issue classifications to open a bug in Bugzilla
25
+ const requiredInternalOcurrences = 3 ;
24
26
25
27
return (
26
28
< li data-testid = "bug-list-item" >
@@ -46,15 +48,14 @@ function BugListItem(props) {
46
48
{ bug . summary }
47
49
{ ! bug . bugzilla_id && (
48
50
< Button
49
- // TODO: Update the condition below to match backend configuration
50
- disabled = { bug . occurrences < - 1 }
51
+ disabled = { bug . occurrences < requiredInternalOcurrences }
51
52
className = "bg-light py-1 px-2 ml-2"
52
53
outline
53
54
style = { { fontSize : '8px' } }
54
55
onClick = { ( ) => toggleBugFiler ( suggestion ) }
55
56
title = {
56
- bug . occurrences < - 1
57
- ? 'Occurences must be > 3 to open a bug'
57
+ bug . occurrences < requiredInternalOcurrences
58
+ ? ` ${ requiredInternalOcurrences } classification occurrences are required to file a bug`
58
59
: 'File a bug for this internal issue'
59
60
}
60
61
>
You can’t perform that action at this time.
0 commit comments