aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/securityReports
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-10-24 09:56:27 +0200
committerSonarTech <sonartech@sonarsource.com>2018-10-26 20:21:00 +0200
commit3026740ee3e483b542aca2fad5f5e79a931faa87 (patch)
treec9866b262771baa0bd3470b8d831392c6ced1f92 /server/sonar-web/src/main/js/apps/securityReports
parent69bcb8faa2f40f0e0e6e6a8427d178c02df2eff6 (diff)
downloadsonarqube-3026740ee3e483b542aca2fad5f5e79a931faa87.tar.gz
sonarqube-3026740ee3e483b542aca2fad5f5e79a931faa87.zip
update web dependencies
Diffstat (limited to 'server/sonar-web/src/main/js/apps/securityReports')
-rw-r--r--server/sonar-web/src/main/js/apps/securityReports/components/__tests__/__snapshots__/VulnerabilityList-test.tsx.snap2018
1 files changed, 940 insertions, 1078 deletions
diff --git a/server/sonar-web/src/main/js/apps/securityReports/components/__tests__/__snapshots__/VulnerabilityList-test.tsx.snap b/server/sonar-web/src/main/js/apps/securityReports/components/__tests__/__snapshots__/VulnerabilityList-test.tsx.snap
index bdd6fa5d8eb..238d720bad0 100644
--- a/server/sonar-web/src/main/js/apps/securityReports/components/__tests__/__snapshots__/VulnerabilityList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/securityReports/components/__tests__/__snapshots__/VulnerabilityList-test.tsx.snap
@@ -64,73 +64,40 @@ exports[`renders 1`] = `
</tr>
</thead>
<tbody>
- <React.Fragment
- key="a1"
- >
- <tr>
- <td
- className=""
- >
- <React.Fragment>
- A1
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ <tr>
+ <td
+ className=""
+ >
+ A1
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
>
- <div
- className="display-inline-flex-center"
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a1",
+ "resolved": "false",
+ "types": "VULNERABILITY",
+ },
+ }
+ }
+ >
+ 2
+ </Link>
+ <Tooltip
+ overlay="metric.security_rating.tooltip.E"
>
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a1",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- 2
- </Link>
- <Tooltip
- overlay="metric.security_rating.tooltip.E"
- >
- <Link
- className="link-no-underline spacer-left"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a1",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- <Rating
- value={5}
- />
- </Link>
- </Tooltip>
- </React.Fragment>
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- <React.Fragment>
<Link
+ className="link-no-underline spacer-left"
onlyActiveOnIndex={false}
style={Object {}}
to={
@@ -140,116 +107,102 @@ exports[`renders 1`] = `
"id": "foo",
"owaspTop10": "a1",
"resolved": "false",
- "statuses": "OPEN,REOPENED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 10
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a1",
- "resolutions": "FIXED",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
+ "types": "VULNERABILITY",
},
}
}
>
- 2
+ <Rating
+ value={5}
+ />
</Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ </Tooltip>
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a1",
+ "resolved": "false",
+ "statuses": "OPEN,REOPENED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
- 0
- </React.Fragment>
- </td>
- </tr>
- </React.Fragment>
- <React.Fragment
- key="a2"
- >
- <tr>
- <td
- className=""
+ 10
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a1",
+ "resolutions": "FIXED",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
- A2
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ 2
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ 0
+ </td>
+ </tr>
+ <tr>
+ <td
+ className=""
+ >
+ A2
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
>
- <div
- className="display-inline-flex-center"
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a2",
+ "resolved": "false",
+ "types": "VULNERABILITY",
+ },
+ }
+ }
+ >
+ 2
+ </Link>
+ <Tooltip
+ overlay="metric.security_rating.tooltip.E"
>
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a2",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- 2
- </Link>
- <Tooltip
- overlay="metric.security_rating.tooltip.E"
- >
- <Link
- className="link-no-underline spacer-left"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a2",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- <Rating
- value={5}
- />
- </Link>
- </Tooltip>
- </React.Fragment>
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- <React.Fragment>
<Link
+ className="link-no-underline spacer-left"
onlyActiveOnIndex={false}
style={Object {}}
to={
@@ -259,189 +212,169 @@ exports[`renders 1`] = `
"id": "foo",
"owaspTop10": "a2",
"resolved": "false",
- "statuses": "OPEN,REOPENED",
- "types": "SECURITY_HOTSPOT",
+ "types": "VULNERABILITY",
},
}
}
>
- 10
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a2",
- "resolutions": "FIXED",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 2
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <React.Fragment>
- 0
- </React.Fragment>
- </td>
- </tr>
- </React.Fragment>
- <React.Fragment
- key="a3"
- >
- <tr>
- <td
- className=""
- >
- <React.Fragment>
- A3
- <HelpTooltip
- className="spacer-left"
- overlay={
- <React.Fragment>
- <p>
- security_reports.activate_rules
- </p>
- <hr
- className="spacer-top spacer-bottom"
- />
- <Link
- className="spacer-left link-no-underline"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/coding_rules",
- "query": Object {
- "languages": "",
- "tags": "owasp-a3",
- "types": "SECURITY_HOTSPOT,VULNERABILITY",
- },
- }
- }
- >
- security_reports.activate_rules.link
- </Link>
- </React.Fragment>
- }
- >
- <PlusCircleIcon
- className="vertical-middle"
- fill="#4b9fd5"
- size={12}
+ <Rating
+ value={5}
/>
- </HelpTooltip>
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <div
- className="display-inline-flex-center"
- >
- -
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- -
- </td>
- <td
- className="text-right"
- >
- -
- </td>
- <td
- className="text-right"
- >
- -
- </td>
- </tr>
- </React.Fragment>
- <React.Fragment
- key="unknown"
- >
- <tr>
- <td
- className=""
+ </Link>
+ </Tooltip>
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a2",
+ "resolved": "false",
+ "statuses": "OPEN,REOPENED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
- UNKNOWN
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ 10
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a2",
+ "resolutions": "FIXED",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <div
- className="display-inline-flex-center"
- >
+ 2
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ 0
+ </td>
+ </tr>
+ <tr>
+ <td
+ className=""
+ >
+ A3
+ <HelpTooltip
+ className="spacer-left"
+ overlay={
<React.Fragment>
+ <p>
+ security_reports.activate_rules
+ </p>
+ <hr
+ className="spacer-top spacer-bottom"
+ />
<Link
+ className="spacer-left link-no-underline"
onlyActiveOnIndex={false}
style={Object {}}
to={
Object {
- "pathname": "/project/issues",
+ "pathname": "/coding_rules",
"query": Object {
- "id": "foo",
- "owaspTop10": "unknown",
- "resolved": "false",
- "types": "VULNERABILITY",
+ "languages": "",
+ "tags": "owasp-a3",
+ "types": "SECURITY_HOTSPOT,VULNERABILITY",
},
}
}
>
- 3
+ security_reports.activate_rules.link
</Link>
- <Tooltip
- overlay="metric.security_rating.tooltip.C"
- >
- <Link
- className="link-no-underline spacer-left"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "unknown",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- <Rating
- value={3}
- />
- </Link>
- </Tooltip>
</React.Fragment>
- </div>
- </td>
- <td
- className="text-right security-column-separator"
+ }
>
- <React.Fragment>
+ <PlusCircleIcon
+ className="vertical-middle"
+ fill="#4b9fd5"
+ size={12}
+ />
+ </HelpTooltip>
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
+ >
+ -
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ -
+ </td>
+ <td
+ className="text-right"
+ >
+ -
+ </td>
+ <td
+ className="text-right"
+ >
+ -
+ </td>
+ </tr>
+ <tr>
+ <td
+ className=""
+ >
+ UNKNOWN
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "unknown",
+ "resolved": "false",
+ "types": "VULNERABILITY",
+ },
+ }
+ }
+ >
+ 3
+ </Link>
+ <Tooltip
+ overlay="metric.security_rating.tooltip.C"
+ >
<Link
+ className="link-no-underline spacer-left"
onlyActiveOnIndex={false}
style={Object {}}
to={
@@ -451,66 +384,85 @@ exports[`renders 1`] = `
"id": "foo",
"owaspTop10": "unknown",
"resolved": "false",
- "statuses": "OPEN,REOPENED",
- "types": "SECURITY_HOTSPOT",
+ "types": "VULNERABILITY",
},
}
}
>
- 100
+ <Rating
+ value={3}
+ />
</Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ </Tooltip>
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "unknown",
+ "resolved": "false",
+ "statuses": "OPEN,REOPENED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "unknown",
- "resolutions": "FIXED",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 8
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ 100
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "unknown",
+ "resolutions": "FIXED",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "unknown",
- "resolutions": "WONTFIX",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 10
- </Link>
- </React.Fragment>
- </td>
- </tr>
- </React.Fragment>
+ 8
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "unknown",
+ "resolutions": "WONTFIX",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
+ >
+ 10
+ </Link>
+ </td>
+ </tr>
</tbody>
</table>
</div>
@@ -580,73 +532,40 @@ exports[`renders with cwe 1`] = `
</tr>
</thead>
<tbody>
- <React.Fragment
- key="a1"
- >
- <tr>
- <td
- className=""
- >
- <React.Fragment>
- A1
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ <tr>
+ <td
+ className=""
+ >
+ A1
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
>
- <div
- className="display-inline-flex-center"
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a1",
+ "resolved": "false",
+ "types": "VULNERABILITY",
+ },
+ }
+ }
+ >
+ 2
+ </Link>
+ <Tooltip
+ overlay="metric.security_rating.tooltip.E"
>
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a1",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- 2
- </Link>
- <Tooltip
- overlay="metric.security_rating.tooltip.E"
- >
- <Link
- className="link-no-underline spacer-left"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a1",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- <Rating
- value={5}
- />
- </Link>
- </Tooltip>
- </React.Fragment>
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- <React.Fragment>
<Link
+ className="link-no-underline spacer-left"
onlyActiveOnIndex={false}
style={Object {}}
to={
@@ -656,239 +575,211 @@ exports[`renders with cwe 1`] = `
"id": "foo",
"owaspTop10": "a1",
"resolved": "false",
- "statuses": "OPEN,REOPENED",
- "types": "SECURITY_HOTSPOT",
+ "types": "VULNERABILITY",
},
}
}
>
- 10
+ <Rating
+ value={5}
+ />
</Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ </Tooltip>
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a1",
+ "resolved": "false",
+ "statuses": "OPEN,REOPENED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
+ 10
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a1",
+ "resolutions": "FIXED",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
+ >
+ 2
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ 0
+ </td>
+ </tr>
+ <tr>
+ <td
+ className="cwe-title-cell"
+ >
+ CWE-42
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "cwe": "42",
+ "id": "foo",
+ "owaspTop10": "a1",
+ "resolved": "false",
+ "types": "VULNERABILITY",
+ },
+ }
+ }
+ >
+ 1
+ </Link>
+ <Tooltip
+ overlay="metric.security_rating.tooltip.A"
+ >
<Link
+ className="link-no-underline spacer-left"
onlyActiveOnIndex={false}
style={Object {}}
to={
Object {
"pathname": "/project/issues",
"query": Object {
+ "cwe": "42",
"id": "foo",
"owaspTop10": "a1",
- "resolutions": "FIXED",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
+ "resolved": "false",
+ "types": "VULNERABILITY",
},
}
}
>
- 2
+ <Rating
+ value={1}
+ />
</Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ </Tooltip>
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "cwe": "42",
+ "id": "foo",
+ "owaspTop10": "a1",
+ "resolved": "false",
+ "statuses": "OPEN,REOPENED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
- 0
- </React.Fragment>
- </td>
- </tr>
- <React.Fragment
- key="42"
- >
- <tr>
- <td
- className="cwe-title-cell"
- >
- <React.Fragment>
- CWE-42
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <div
- className="display-inline-flex-center"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a1",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- 1
- </Link>
- <Tooltip
- overlay="metric.security_rating.tooltip.A"
- >
- <Link
- className="link-no-underline spacer-left"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a1",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- <Rating
- value={1}
- />
- </Link>
- </Tooltip>
- </React.Fragment>
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a1",
- "resolved": "false",
- "statuses": "OPEN,REOPENED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 10
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a1",
- "resolutions": "FIXED",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 2
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <React.Fragment>
- 0
- </React.Fragment>
- </td>
- </tr>
- </React.Fragment>
- </React.Fragment>
- <React.Fragment
- key="a2"
- >
- <tr>
- <td
- className=""
+ 10
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "cwe": "42",
+ "id": "foo",
+ "owaspTop10": "a1",
+ "resolutions": "FIXED",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
- A2
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ 2
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ 0
+ </td>
+ </tr>
+ <tr>
+ <td
+ className=""
+ >
+ A2
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
>
- <div
- className="display-inline-flex-center"
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a2",
+ "resolved": "false",
+ "types": "VULNERABILITY",
+ },
+ }
+ }
+ >
+ 2
+ </Link>
+ <Tooltip
+ overlay="metric.security_rating.tooltip.E"
>
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a2",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- 2
- </Link>
- <Tooltip
- overlay="metric.security_rating.tooltip.E"
- >
- <Link
- className="link-no-underline spacer-left"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "a2",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- <Rating
- value={5}
- />
- </Link>
- </Tooltip>
- </React.Fragment>
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- <React.Fragment>
<Link
+ className="link-no-underline spacer-left"
onlyActiveOnIndex={false}
style={Object {}}
to={
@@ -898,483 +789,387 @@ exports[`renders with cwe 1`] = `
"id": "foo",
"owaspTop10": "a2",
"resolved": "false",
- "statuses": "OPEN,REOPENED",
- "types": "SECURITY_HOTSPOT",
+ "types": "VULNERABILITY",
},
}
}
>
- 10
+ <Rating
+ value={5}
+ />
</Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ </Tooltip>
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a2",
+ "resolved": "false",
+ "statuses": "OPEN,REOPENED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
+ 10
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "a2",
+ "resolutions": "FIXED",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
+ >
+ 2
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ 0
+ </td>
+ </tr>
+ <tr>
+ <td
+ className="cwe-title-cell"
+ >
+ CWE-42
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "cwe": "42",
+ "id": "foo",
+ "owaspTop10": "a2",
+ "resolved": "false",
+ "types": "VULNERABILITY",
+ },
+ }
+ }
+ >
+ 1
+ </Link>
+ <Tooltip
+ overlay="metric.security_rating.tooltip.A"
+ >
<Link
+ className="link-no-underline spacer-left"
onlyActiveOnIndex={false}
style={Object {}}
to={
Object {
"pathname": "/project/issues",
"query": Object {
+ "cwe": "42",
"id": "foo",
"owaspTop10": "a2",
- "resolutions": "FIXED",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
+ "resolved": "false",
+ "types": "VULNERABILITY",
},
}
}
>
- 2
+ <Rating
+ value={1}
+ />
</Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ </Tooltip>
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "cwe": "42",
+ "id": "foo",
+ "owaspTop10": "a2",
+ "resolved": "false",
+ "statuses": "OPEN,REOPENED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
- 0
- </React.Fragment>
- </td>
- </tr>
- <React.Fragment
- key="42"
- >
- <tr>
- <td
- className="cwe-title-cell"
- >
- <React.Fragment>
- CWE-42
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <div
- className="display-inline-flex-center"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a2",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- 1
- </Link>
- <Tooltip
- overlay="metric.security_rating.tooltip.A"
- >
- <Link
- className="link-no-underline spacer-left"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a2",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- <Rating
- value={1}
- />
- </Link>
- </Tooltip>
- </React.Fragment>
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a2",
- "resolved": "false",
- "statuses": "OPEN,REOPENED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 10
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
+ 10
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "cwe": "42",
+ "id": "foo",
+ "owaspTop10": "a2",
+ "resolutions": "FIXED",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
+ >
+ 2
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ 0
+ </td>
+ </tr>
+ <tr>
+ <td
+ className=""
+ >
+ A3
+ <HelpTooltip
+ className="spacer-left"
+ overlay={
<React.Fragment>
+ <p>
+ security_reports.activate_rules
+ </p>
+ <hr
+ className="spacer-top spacer-bottom"
+ />
<Link
+ className="spacer-left link-no-underline"
onlyActiveOnIndex={false}
style={Object {}}
to={
Object {
- "pathname": "/project/issues",
+ "pathname": "/coding_rules",
"query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a2",
- "resolutions": "FIXED",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
+ "languages": "",
+ "tags": "owasp-a3",
+ "types": "SECURITY_HOTSPOT,VULNERABILITY",
},
}
}
>
- 2
+ security_reports.activate_rules.link
</Link>
</React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <React.Fragment>
- 0
- </React.Fragment>
- </td>
- </tr>
- </React.Fragment>
- </React.Fragment>
- <React.Fragment
- key="a3"
- >
- <tr>
- <td
- className=""
+ }
>
- <React.Fragment>
- A3
- <HelpTooltip
- className="spacer-left"
- overlay={
- <React.Fragment>
- <p>
- security_reports.activate_rules
- </p>
- <hr
- className="spacer-top spacer-bottom"
- />
- <Link
- className="spacer-left link-no-underline"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/coding_rules",
- "query": Object {
- "languages": "",
- "tags": "owasp-a3",
- "types": "SECURITY_HOTSPOT,VULNERABILITY",
- },
- }
- }
- >
- security_reports.activate_rules.link
- </Link>
- </React.Fragment>
- }
- >
- <PlusCircleIcon
- className="vertical-middle"
- fill="#4b9fd5"
- size={12}
- />
- </HelpTooltip>
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <div
- className="display-inline-flex-center"
- >
- -
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- -
- </td>
- <td
- className="text-right"
+ <PlusCircleIcon
+ className="vertical-middle"
+ fill="#4b9fd5"
+ size={12}
+ />
+ </HelpTooltip>
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
>
-
- </td>
- <td
- className="text-right"
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ -
+ </td>
+ <td
+ className="text-right"
+ >
+ -
+ </td>
+ <td
+ className="text-right"
+ >
+ -
+ </td>
+ </tr>
+ <tr>
+ <td
+ className="cwe-title-cell"
+ >
+ CWE-42
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
>
- -
- </td>
- </tr>
- <React.Fragment
- key="42"
- >
- <tr>
- <td
- className="cwe-title-cell"
- >
- <React.Fragment>
- CWE-42
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <div
- className="display-inline-flex-center"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a3",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- 1
- </Link>
- <Tooltip
- overlay="metric.security_rating.tooltip.A"
- >
- <Link
- className="link-no-underline spacer-left"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a3",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- <Rating
- value={1}
- />
- </Link>
- </Tooltip>
- </React.Fragment>
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a3",
- "resolved": "false",
- "statuses": "OPEN,REOPENED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 10
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "cwe": "42",
- "id": "foo",
- "owaspTop10": "a3",
- "resolutions": "FIXED",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 2
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "cwe": "42",
+ "id": "foo",
+ "owaspTop10": "a3",
+ "resolved": "false",
+ "types": "VULNERABILITY",
+ },
+ }
+ }
>
- <React.Fragment>
- 0
- </React.Fragment>
- </td>
- </tr>
- </React.Fragment>
- </React.Fragment>
- <React.Fragment
- key="unknown"
- >
- <tr>
- <td
- className=""
- >
- <React.Fragment>
- UNKNOWN
- </React.Fragment>
- </td>
- <td
- className="text-right"
- >
- <div
- className="display-inline-flex-center"
+ 1
+ </Link>
+ <Tooltip
+ overlay="metric.security_rating.tooltip.A"
>
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "unknown",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- 3
- </Link>
- <Tooltip
- overlay="metric.security_rating.tooltip.C"
- >
- <Link
- className="link-no-underline spacer-left"
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "unknown",
- "resolved": "false",
- "types": "VULNERABILITY",
- },
- }
- }
- >
- <Rating
- value={3}
- />
- </Link>
- </Tooltip>
- </React.Fragment>
- </div>
- </td>
- <td
- className="text-right security-column-separator"
- >
- <React.Fragment>
<Link
+ className="link-no-underline spacer-left"
onlyActiveOnIndex={false}
style={Object {}}
to={
Object {
"pathname": "/project/issues",
"query": Object {
+ "cwe": "42",
"id": "foo",
- "owaspTop10": "unknown",
+ "owaspTop10": "a3",
"resolved": "false",
- "statuses": "OPEN,REOPENED",
- "types": "SECURITY_HOTSPOT",
+ "types": "VULNERABILITY",
},
}
}
>
- 100
+ <Rating
+ value={1}
+ />
</Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ </Tooltip>
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "cwe": "42",
+ "id": "foo",
+ "owaspTop10": "a3",
+ "resolved": "false",
+ "statuses": "OPEN,REOPENED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
>
- <React.Fragment>
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to={
- Object {
- "pathname": "/project/issues",
- "query": Object {
- "id": "foo",
- "owaspTop10": "unknown",
- "resolutions": "FIXED",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
- },
- }
- }
- >
- 8
- </Link>
- </React.Fragment>
- </td>
- <td
- className="text-right"
+ 10
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "cwe": "42",
+ "id": "foo",
+ "owaspTop10": "a3",
+ "resolutions": "FIXED",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
+ >
+ 2
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ 0
+ </td>
+ </tr>
+ <tr>
+ <td
+ className=""
+ >
+ UNKNOWN
+ </td>
+ <td
+ className="text-right"
+ >
+ <div
+ className="display-inline-flex-center"
>
- <React.Fragment>
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "unknown",
+ "resolved": "false",
+ "types": "VULNERABILITY",
+ },
+ }
+ }
+ >
+ 3
+ </Link>
+ <Tooltip
+ overlay="metric.security_rating.tooltip.C"
+ >
<Link
+ className="link-no-underline spacer-left"
onlyActiveOnIndex={false}
style={Object {}}
to={
@@ -1383,19 +1178,86 @@ exports[`renders with cwe 1`] = `
"query": Object {
"id": "foo",
"owaspTop10": "unknown",
- "resolutions": "WONTFIX",
- "statuses": "RESOLVED",
- "types": "SECURITY_HOTSPOT",
+ "resolved": "false",
+ "types": "VULNERABILITY",
},
}
}
>
- 10
+ <Rating
+ value={3}
+ />
</Link>
- </React.Fragment>
- </td>
- </tr>
- </React.Fragment>
+ </Tooltip>
+ </div>
+ </td>
+ <td
+ className="text-right security-column-separator"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "unknown",
+ "resolved": "false",
+ "statuses": "OPEN,REOPENED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
+ >
+ 100
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "unknown",
+ "resolutions": "FIXED",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
+ >
+ 8
+ </Link>
+ </td>
+ <td
+ className="text-right"
+ >
+ <Link
+ onlyActiveOnIndex={false}
+ style={Object {}}
+ to={
+ Object {
+ "pathname": "/project/issues",
+ "query": Object {
+ "id": "foo",
+ "owaspTop10": "unknown",
+ "resolutions": "WONTFIX",
+ "statuses": "RESOLVED",
+ "types": "SECURITY_HOTSPOT",
+ },
+ }
+ }
+ >
+ 10
+ </Link>
+ </td>
+ </tr>
</tbody>
</table>
</div>