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
405b6954
Commit
405b6954
authored
Jan 25, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issues
parent
1a2baf98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
14 deletions
+36
-14
ee/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_report_issues.vue
...rge_request_widget/components/mr_widget_report_issues.vue
+11
-12
ee/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js
...javascripts/vue_merge_request_widget/mr_widget_options.js
+25
-2
No files found.
ee/app/assets/javascripts/vue_merge_request_widget/components/mr_widget_report_issues.vue
View file @
405b6954
<
script
>
import
{
s__
}
from
'
~/locale
'
;
import
{
spriteIcon
}
from
'
~/lib/utils/common_utils
'
;
import
icon
from
'
~/vue_shared/components/icon.vue
'
;
import
modal
from
'
./mr_widget_dast_modal.vue
'
;
const
modalDefaultData
=
{
...
...
@@ -15,6 +15,7 @@
name
:
'
MrWidgetReportIssues
'
,
components
:
{
modal
,
icon
,
},
props
:
{
issues
:
{
...
...
@@ -41,12 +42,6 @@
return
modalDefaultData
;
},
computed
:
{
icon
()
{
return
this
.
isStatusSuccess
?
spriteIcon
(
'
plus
'
)
:
this
.
cutIcon
;
},
cutIcon
()
{
return
spriteIcon
(
'
cut
'
);
},
fixedLabel
()
{
return
s__
(
'
ciReport|Fixed:
'
);
},
...
...
@@ -117,12 +112,16 @@
v-for="(issue, index) in issues"
:key="index"
>
<span
<icon
class=
"mr-widget-code-quality-icon"
v-if=
"isStatusSuccess"
name=
"status_success_borderless"
/>
<icon
v-else
class=
"mr-widget-code-quality-icon"
v-html=
"icon"
>
</span>
name=
"status_failed_borderless"
/>
<template
v-if=
"isStatusSuccess && isTypeQuality"
>
{{
fixedLabel
}}
</
template
>
<
template
v-if=
"shouldRenderPriority(issue)"
>
{{
issue
.
priority
}}
:
</
template
>
...
...
ee/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js
View file @
405b6954
...
...
@@ -41,6 +41,7 @@ export default {
return
this
.
mr
.
sast
;
},
shouldRenderDockerReport
()
{
return
true
;
return
this
.
mr
.
sastContainer
;
},
shouldRenderDastReport
()
{
...
...
@@ -311,9 +312,31 @@ export default {
if
(
this
.
shouldRenderSecurityReport
)
{
this
.
fetchSecurity
();
}
this
.
mr
.
setDockerReport
({
unapproved
:
[
'
CVE-2017-12944
'
,
'
CVE-2017-16232
'
],
vulnerabilities
:
[
{
vulnerability
:
'
CVE-2017-12944
'
,
namespace
:
'
debian:8
'
,
severity
:
'
Medium
'
},
{
vulnerability
:
'
CVE-2017-16232
'
,
namespace
:
'
debian:8
'
,
severity
:
'
Negligible
'
},
{
vulnerability
:
'
CVE-2014-8130
'
,
namespace
:
'
debian:8
'
,
severity
:
'
Negligible
'
}
]
});
if
(
this
.
shouldRenderDockerReport
)
{
this
.
fetchDockerReport
();
//
this.fetchDockerReport();
}
if
(
this
.
shouldRenderDastReport
)
{
...
...
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