Commit d038ca24 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '227113_add_resolved_on_default_branch_badge_to_vuln_list' into 'master'

Fix remediated badge on vulnerabilities list

See merge request gitlab-org/gitlab!38478
parents ad01acf3 f5d60bb9
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
{{ createLocationString(item.location) }} {{ createLocationString(item.location) }}
</div> </div>
</div> </div>
<remediated-badge v-if="item.resolved_on_default_branch" class="ml-2" /> <remediated-badge v-if="item.resolvedOnDefaultBranch" class="ml-2" />
</template> </template>
<template #cell(identifier)="{ item }"> <template #cell(identifier)="{ item }">
......
...@@ -5,6 +5,7 @@ fragment Vulnerability on Vulnerability { ...@@ -5,6 +5,7 @@ fragment Vulnerability on Vulnerability {
severity severity
vulnerabilityPath vulnerabilityPath
userNotesCount userNotesCount
resolvedOnDefaultBranch
issueLinks(linkType: CREATED) { issueLinks(linkType: CREATED) {
nodes { nodes {
issue { issue {
......
---
title: Utilize `resolvedOnDefaultBranch` field to show the remediated badge on vulnerabilities
list
merge_request: 38478
author:
type: fixed
...@@ -289,7 +289,7 @@ describe('Vulnerability list component', () => { ...@@ -289,7 +289,7 @@ describe('Vulnerability list component', () => {
beforeEach(() => { beforeEach(() => {
newVulnerabilities = generateVulnerabilities(); newVulnerabilities = generateVulnerabilities();
newVulnerabilities[0].resolved_on_default_branch = true; newVulnerabilities[0].resolvedOnDefaultBranch = true;
wrapper = createWrapper({ props: { vulnerabilities: newVulnerabilities } }); wrapper = createWrapper({ props: { vulnerabilities: newVulnerabilities } });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment