File tree 3 files changed +11
-7
lines changed
shared/tabs/failureSummary
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -363,4 +363,4 @@ export const sxsTaskName = 'side-by-side';
363
363
export const geckoProfileTaskName = 'geckoprofile' ;
364
364
365
365
// Number of internal issue classifications to open a bug in Bugzilla
366
- export const requiredInternalOcurrences = 3 ;
366
+ export const requiredInternalOccurrences = 3 ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { Button } from 'reactstrap';
7
7
8
8
import { getSearchWords } from '../../../helpers/display' ;
9
9
import { getBugUrl } from '../../../helpers/url' ;
10
- import { requiredInternalOcurrences } from '../../../helpers/constants' ;
10
+ import { requiredInternalOccurrences } from '../../../helpers/constants' ;
11
11
12
12
function BugListItem ( props ) {
13
13
const {
@@ -46,14 +46,14 @@ function BugListItem(props) {
46
46
{ bug . summary }
47
47
{ ! bug . bugzilla_id && (
48
48
< Button
49
- disabled = { bug . occurrences < requiredInternalOcurrences }
49
+ disabled = { bug . occurrences < requiredInternalOccurrences }
50
50
className = "bg-light py-1 px-2 ml-2"
51
51
outline
52
52
style = { { fontSize : '8px' } }
53
53
onClick = { ( ) => toggleBugFiler ( suggestion ) }
54
54
title = {
55
- bug . occurrences < requiredInternalOcurrences
56
- ? `${ requiredInternalOcurrences } classification occurrences are required to file a bug`
55
+ bug . occurrences < requiredInternalOccurrences
56
+ ? `${ requiredInternalOccurrences } classification occurrences are required to file a bug`
57
57
: 'File a bug for this internal issue'
58
58
}
59
59
>
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { faSpinner } from '@fortawesome/free-solid-svg-icons';
7
7
import {
8
8
thBugSuggestionLimit ,
9
9
thEvents ,
10
- requiredInternalOcurrences ,
10
+ requiredInternalOccurrences ,
11
11
} from '../../../helpers/constants' ;
12
12
import { getResultState , isReftest } from '../../../helpers/job' ;
13
13
import { getReftestUrl } from '../../../helpers/url' ;
@@ -104,7 +104,11 @@ class FailureSummaryTab extends React.Component {
104
104
const existingBug = internalBugs . filter (
105
105
( bug ) => bug . internal_id === data . internal_id ,
106
106
) [ 0 ] ;
107
- if ( existingBug && existingBug . occurrences >= requiredInternalOcurrences ) {
107
+ // Check if we reached the required number of occurrence to open a bug in Bugzilla
108
+ if (
109
+ existingBug &&
110
+ existingBug . occurrences >= requiredInternalOccurrences - 1
111
+ ) {
108
112
this . fileBug ( suggestion ) ;
109
113
}
110
114
} ;
You can’t perform that action at this time.
0 commit comments