From face78dde37d33f505c7e5669ca7cce3cb588242 Mon Sep 17 00:00:00 2001 From: Grzegorz Siewruk Date: Thu, 21 Sep 2023 21:57:57 +0200 Subject: [PATCH 1/3] adding possibility to group vulns via branches --- CHANGELOG.md | 5 ++++ package.json | 2 +- src/app/@core/Model/Vulnerability.ts | 8 +++++ .../extra-components/details-component.ts | 27 ++++++++++++----- .../details-tables.component.ts | 29 ++++++++++++++++--- 5 files changed, 59 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8accaab..694eff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.8.1 (2023-09-21) + +#### New Features +* Grouping vulnerabilities via branch (affect only vulnerabilities in code) + ## 1.8.0 (2023-08-08) #### New Features diff --git a/package.json b/package.json index ca3f02e..f883643 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mixeway-frontend", - "version": "1.8.0", + "version": "1.8.1", "license": "MIT", "scripts": { "ng": "ng", diff --git a/src/app/@core/Model/Vulnerability.ts b/src/app/@core/Model/Vulnerability.ts index 210a6c5..d36ae0e 100644 --- a/src/app/@core/Model/Vulnerability.ts +++ b/src/app/@core/Model/Vulnerability.ts @@ -23,6 +23,7 @@ export class Vulnerability { vulnerability: Vuln; cisRequirement: CisRequirement; project: Project; + codeProjectBranch: CodeProjectBranch; } export class VulnerabilitySource { name: string; @@ -45,3 +46,10 @@ export class CisRequirement { type: string; severity: string; } +export class CodeProjectBranch { + name: string; +} + +export class ExtendedVulnerability extends Vulnerability { + codeProjectBranches: CodeProjectBranch[]; +} diff --git a/src/app/pages/extra-components/details-component.ts b/src/app/pages/extra-components/details-component.ts index 18d0682..841caa6 100644 --- a/src/app/pages/extra-components/details-component.ts +++ b/src/app/pages/extra-components/details-component.ts @@ -17,8 +17,8 @@ interface EventItem { @Component({ template: ` - -