Commit 3a687973 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Fix remediated badge on vulnerabilities list

Client application is now correctly depending on the GraphQL API field
for resolved_on_default_branch information.
parent dc6fa046
...@@ -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 {
......
...@@ -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