Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
78aef33c
Commit
78aef33c
authored
Sep 14, 2020
by
Kev
Committed by
Olena Horal-Koretska
Sep 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Duplicate Keys in Vulnerability Details
parent
7bc75068
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
ee/app/assets/javascripts/vulnerabilities/components/details.vue
...assets/javascripts/vulnerabilities/components/details.vue
+9
-6
ee/changelogs/unreleased/247045-Fix-Duplicate-Keys-in-Vulnerability-Details.yml
...ed/247045-Fix-Duplicate-Keys-in-Vulnerability-Details.yml
+5
-0
No files found.
ee/app/assets/javascripts/vulnerabilities/components/details.vue
View file @
78aef33c
...
...
@@ -202,7 +202,7 @@ export default {
<
template
v-if=
"vulnerability.links && vulnerability.links.length"
>
<h3>
{{
__
(
'
Links
'
)
}}
</h3>
<ul>
<li
v-for=
"
link in vulnerability.links"
:key=
"link.url
"
>
<li
v-for=
"
(link, index) in vulnerability.links"
:key=
"`$
{index}:${link.url}`
">
<gl-link
:href=
"link.url"
data-testid=
"link"
...
...
@@ -219,7 +219,10 @@ export default {
<
template
v-if=
"vulnerability.identifiers && vulnerability.identifiers.length"
>
<h3>
{{
__
(
'
Identifiers
'
)
}}
</h3>
<ul>
<li
v-for=
"identifier in vulnerability.identifiers"
:key=
"identifier.url"
>
<li
v-for=
"(identifier, index) in vulnerability.identifiers"
:key=
"`$
{index}:${identifier.url}`"
>
<gl-link
:href=
"identifier.url"
data-testid=
"identifier"
target=
"_blank"
>
{{
identifier
.
name
}}
</gl-link>
...
...
@@ -231,8 +234,8 @@ export default {
<h3>
{{ s__('Vulnerability|Request') }}
</h3>
<ul>
<detail-item
v-for=
"
{ label, isCode, content }
in requestData"
:key=
"
label
"
v-for=
"
({ label, isCode, content }, index)
in requestData"
:key=
"
`${index}:${label}`
"
:sprintf-message=
"label"
>
<code-block
v-if=
"isCode"
class=
"mt-1"
:code=
"content"
max-height=
"225px"
/>
...
...
@@ -247,8 +250,8 @@ export default {
<h3>
{{ s__('Vulnerability|Response') }}
</h3>
<ul>
<detail-item
v-for=
"
{ label, isCode, content }
in responseData"
:key=
"
label
"
v-for=
"
({ label, isCode, content }, index)
in responseData"
:key=
"
`${index}:${label}`
"
:sprintf-message=
"label"
>
<code-block
v-if=
"isCode"
class=
"mt-1"
:code=
"content"
max-height=
"225px"
/>
...
...
ee/changelogs/unreleased/247045-Fix-Duplicate-Keys-in-Vulnerability-Details.yml
0 → 100644
View file @
78aef33c
---
title
:
Fix Duplicate Keys in Vulnerability Details
merge_request
:
42027
author
:
Kev @KevSlashNull
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment