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
7e67f483
Commit
7e67f483
authored
Mar 23, 2022
by
nanmu42
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix code quality report display
Changelog: fixed
parent
5edeedc0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/assets/javascripts/reports/codequality_report/components/codequality_issue_body.vue
.../codequality_report/components/codequality_issue_body.vue
+1
-1
spec/frontend/reports/codequality_report/components/codequality_issue_body_spec.js
...equality_report/components/codequality_issue_body_spec.js
+1
-0
No files found.
app/assets/javascripts/reports/codequality_report/components/codequality_issue_body.vue
View file @
7e67f483
...
...
@@ -34,7 +34,7 @@ export default {
return
`
${
this
.
severityLabel
}
-
${
this
.
issue
.
name
}
`
;
},
issueSeverity
()
{
return
this
.
issue
.
severity
.
toLowerCase
();
return
this
.
issue
.
severity
?
.
toLowerCase
();
},
isStatusSuccess
()
{
return
this
.
status
===
STATUS_SUCCESS
;
...
...
spec/frontend/reports/codequality_report/components/codequality_issue_body_spec.js
View file @
7e67f483
...
...
@@ -51,6 +51,7 @@ describe('code quality issue body issue body', () => {
${
'
blocker
'
}
|
${
'
text-danger-800
'
}
|
${
'
severity-critical
'
}
${
'
unknown
'
}
|
${
'
text-secondary-400
'
}
|
${
'
severity-unknown
'
}
${
'
invalid
'
}
|
${
'
text-secondary-400
'
}
|
${
'
severity-unknown
'
}
${
undefined
}
|
${
'
text-secondary-400
'
}
|
${
'
severity-unknown
'
}
`
(
'
renders correct icon for "$severity" severity rating
'
,
({
severity
,
iconClass
,
iconName
})
=>
{
...
...
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