aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/issue
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-10-25 16:53:22 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-10-30 09:20:37 +0100
commite4ef72e885308b113d89a7826d1b300c093134cf (patch)
treed747d066447c0924cf2cfb108bf107a8effd0144 /server/sonar-web/src/main/js/components/issue
parenteea79d51b8894ef98f1cd02388d06062df343e4d (diff)
downloadsonarqube-e4ef72e885308b113d89a7826d1b300c093134cf.tar.gz
sonarqube-e4ef72e885308b113d89a7826d1b300c093134cf.zip
update web dependencies (#2752)
Diffstat (limited to 'server/sonar-web/src/main/js/components/issue')
-rw-r--r--server/sonar-web/src/main/js/components/issue/IssueView.js24
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js8
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap5
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetSeverityPopup-test.js.snap5
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTransitionPopup-test.js.snap4
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTypePopup-test.js.snap3
6 files changed, 31 insertions, 18 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/IssueView.js b/server/sonar-web/src/main/js/components/issue/IssueView.js
index 5141e4d8032..6b8b4fd94c8 100644
--- a/server/sonar-web/src/main/js/components/issue/IssueView.js
+++ b/server/sonar-web/src/main/js/components/issue/IssueView.js
@@ -108,18 +108,18 @@ export default class IssueView extends React.PureComponent {
onChange={this.props.onChange}
/>
{issue.comments &&
- issue.comments.length > 0 && (
- <div className="issue-comments">
- {issue.comments.map(comment => (
- <IssueCommentLine
- comment={comment}
- key={comment.key}
- onEdit={this.editComment}
- onDelete={this.deleteComment}
- />
- ))}
- </div>
- )}
+ issue.comments.length > 0 && (
+ <div className="issue-comments">
+ {issue.comments.map(comment => (
+ <IssueCommentLine
+ comment={comment}
+ key={comment.key}
+ onEdit={this.editComment}
+ onDelete={this.deleteComment}
+ />
+ ))}
+ </div>
+ )}
<a className="issue-navigate js-issue-navigate">
<i className="issue-navigate-to-left icon-chevron-left" />
<i className="issue-navigate-to-right icon-chevron-right" />
diff --git a/server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js b/server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js
index fa66812411b..bb80c21b786 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js
+++ b/server/sonar-web/src/main/js/components/issue/popups/SimilarIssuesPopup.js
@@ -90,11 +90,9 @@ export default class SimilarIssuesPopup extends React.PureComponent {
</SelectListItem>
<SelectListItem item="resolution">
- {issue.resolution != null ? (
- translate('issue.resolution', issue.resolution)
- ) : (
- translate('unresolved')
- )}
+ {issue.resolution != null
+ ? translate('issue.resolution', issue.resolution)
+ : translate('unresolved')}
</SelectListItem>
<SelectListItem item="assignee">
diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap
index 1e649d62abb..65cade73cf8 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap
+++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.js.snap
@@ -25,7 +25,9 @@ exports[`should render the changelog popup correctly 1`] = `
created_by john.david.dalton@gmail.com
</td>
</tr>
- <tr>
+ <tr
+ key="0"
+ >
<td
className="thin text-left text-top nowrap"
>
@@ -53,6 +55,7 @@ exports[`should render the changelog popup correctly 1`] = `
"oldValue": "CRITICAL",
}
}
+ key="severity"
/>
</td>
</tr>
diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetSeverityPopup-test.js.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetSeverityPopup-test.js.snap
index 8d0995dce23..bc4c8e02c7f 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetSeverityPopup-test.js.snap
+++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetSeverityPopup-test.js.snap
@@ -19,6 +19,7 @@ exports[`should render tags popup correctly 1`] = `
>
<SelectListItem
item="BLOCKER"
+ key="BLOCKER"
>
<SeverityIcon
className="little-spacer-right"
@@ -28,6 +29,7 @@ exports[`should render tags popup correctly 1`] = `
</SelectListItem>
<SelectListItem
item="CRITICAL"
+ key="CRITICAL"
>
<SeverityIcon
className="little-spacer-right"
@@ -37,6 +39,7 @@ exports[`should render tags popup correctly 1`] = `
</SelectListItem>
<SelectListItem
item="MAJOR"
+ key="MAJOR"
>
<SeverityIcon
className="little-spacer-right"
@@ -46,6 +49,7 @@ exports[`should render tags popup correctly 1`] = `
</SelectListItem>
<SelectListItem
item="MINOR"
+ key="MINOR"
>
<SeverityIcon
className="little-spacer-right"
@@ -55,6 +59,7 @@ exports[`should render tags popup correctly 1`] = `
</SelectListItem>
<SelectListItem
item="INFO"
+ key="INFO"
>
<SeverityIcon
className="little-spacer-right"
diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTransitionPopup-test.js.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTransitionPopup-test.js.snap
index 249ca05ae77..4c67a6da4ec 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTransitionPopup-test.js.snap
+++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTransitionPopup-test.js.snap
@@ -18,24 +18,28 @@ exports[`should render tags popup correctly 1`] = `
>
<SelectListItem
item="confirm"
+ key="confirm"
title="issue.transition.confirm.description"
>
issue.transition.confirm
</SelectListItem>
<SelectListItem
item="resolve"
+ key="resolve"
title="issue.transition.resolve.description"
>
issue.transition.resolve
</SelectListItem>
<SelectListItem
item="falsepositive"
+ key="falsepositive"
title="issue.transition.falsepositive.description"
>
issue.transition.falsepositive
</SelectListItem>
<SelectListItem
item="wontfix"
+ key="wontfix"
title="issue.transition.wontfix.description"
>
issue.transition.wontfix
diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTypePopup-test.js.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTypePopup-test.js.snap
index fb727840075..6313549adb2 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTypePopup-test.js.snap
+++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetTypePopup-test.js.snap
@@ -17,6 +17,7 @@ exports[`should render tags popup correctly 1`] = `
>
<SelectListItem
item="BUG"
+ key="BUG"
>
<IssueTypeIcon
className="little-spacer-right"
@@ -26,6 +27,7 @@ exports[`should render tags popup correctly 1`] = `
</SelectListItem>
<SelectListItem
item="VULNERABILITY"
+ key="VULNERABILITY"
>
<IssueTypeIcon
className="little-spacer-right"
@@ -35,6 +37,7 @@ exports[`should render tags popup correctly 1`] = `
</SelectListItem>
<SelectListItem
item="CODE_SMELL"
+ key="CODE_SMELL"
>
<IssueTypeIcon
className="little-spacer-right"