Skip to content

Commit 88dc4ac

Browse files
committed
Format
1 parent b8c7dbb commit 88dc4ac

File tree

4 files changed

+5
-40
lines changed

4 files changed

+5
-40
lines changed

Diff for: ui/helpers/bug.js

-31
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,3 @@
1-
import React from 'react';
2-
import PropTypes from 'prop-types';
3-
import { connect } from 'react-redux';
4-
import {
5-
Button,
6-
Modal,
7-
ModalHeader,
8-
ModalBody,
9-
ModalFooter,
10-
Tooltip,
11-
FormGroup,
12-
Input,
13-
Label,
14-
} from 'reactstrap';
15-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
16-
import {
17-
faChevronCircleDown,
18-
faChevronCircleUp,
19-
faSpinner,
20-
faExclamationTriangle,
21-
} from '@fortawesome/free-solid-svg-icons';
22-
23-
import {
24-
bugzillaBugsApi,
25-
bzBaseUrl,
26-
bzComponentEndpoint,
27-
getApiUrl,
28-
} from '../helpers/url';
29-
import { create } from '../helpers/http';
30-
import { notify } from '../job-view/redux/stores/notifications';
31-
321
export const omittedLeads = [
332
'TEST-UNEXPECTED-FAIL',
343
'PROCESS-CRASH',

Diff for: ui/shared/InternalIssueFiler.jsx

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import { connect } from 'react-redux';
4-
import { create } from '../helpers/http';
5-
import { getApiUrl } from '../helpers/url';
64
import {
75
Button,
86
Modal,
@@ -13,6 +11,8 @@ import {
1311
Label,
1412
} from 'reactstrap';
1513

14+
import { create } from '../helpers/http';
15+
import { getApiUrl } from '../helpers/url';
1616
import { parseSummary, getCrashSignatures } from '../helpers/bug';
1717
import { notify } from '../job-view/redux/stores/notifications';
1818

@@ -32,13 +32,11 @@ export class InternalIssueFilerClass extends React.Component {
3232
const crashSignatures = getCrashSignatures(suggestion);
3333

3434
if (crashSignatures.length > 0) {
35-
isTestPath = false;
3635
const parts = summaryString.split(' | ');
3736
summaryString = `${parts[0]} | single tracking bug`;
38-
keywords.push('intermittent-testcase');
3937
}
4038

41-
let isAssertion = [
39+
const isAssertion = [
4240
/ASSERTION:/, // binary code
4341
/assertion fail/i, // JavaScript
4442
/assertion count \d+ is \w+ than expected \d+ assertion/, // layout
@@ -95,7 +93,6 @@ export class InternalIssueFilerClass extends React.Component {
9593
isTestPath = false;
9694
const parts = summaryString.split(' | ');
9795
summaryString = `${parts[0]} | single tracking bug`;
98-
keywords.push('intermittent-testcase');
9996
}
10097

10198
// trimming params from end of a test case name when filing for stb

Diff for: ui/shared/tabs/failureSummary/BugListItem.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import Highlighter from 'react-highlight-words';
44
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5-
import { faBug } from '@fortawesome/free-solid-svg-icons';
6-
import { faThumbtack } from '@fortawesome/free-solid-svg-icons';
5+
import { faBug, faThumbtack } from '@fortawesome/free-solid-svg-icons';
76
import { Button } from 'reactstrap';
87

98
import { getSearchWords } from '../../../helpers/display';

Diff for: ui/shared/tabs/failureSummary/FailureSummaryTab.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class FailureSummaryTab extends React.Component {
6464
pinJob(selectedJob);
6565
this.setState({
6666
isInternalIssueFilerOpen: true,
67-
suggestion: suggestion,
67+
suggestion,
6868
});
6969
};
7070

0 commit comments

Comments
 (0)