Skip to content

Commit

Permalink
NVSHAS-9614: Include a sortable feed_rating column into vulnerabiliti…
Browse files Browse the repository at this point in the history
…es tab
  • Loading branch information
rushk014 authored and BinX-Suse committed Dec 17, 2024
1 parent 0222aeb commit 458e982
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions admin/webapp/websrc/app/common/types/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export type VulQueryOrderByColumnOption =
| 'name'
| 'score'
| 'score_v3'
| 'feed_rating'
| 'published_timestamp'
| 'impact';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface VulnerabilityAsset {
name: string;
severity: string;
description: string;
feed_rating: string;
packages: VulnerabilityAssetPackages;
link: string;
score: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export class VulnerabilityItemsTableComponent
sortable: true,
resizable: true,
headerValueGetter: () => this.translate.instant('scan.gridHeader.NAME'),
width: 140,
minWidth: 100,
},
{
field: 'severity',
Expand Down Expand Up @@ -131,6 +133,14 @@ export class VulnerabilityItemsTableComponent
maxWidth: 140,
minWidth: 140,
},
{
field: 'feed_rating',
sortable: true,
resizable: true,
headerValueGetter: () =>
this.translate.instant('scan.gridHeader.FEED_RATING'),
width: 100,
},
{
field: 'published_timestamp',
sortable: true,
Expand All @@ -139,8 +149,6 @@ export class VulnerabilityItemsTableComponent
headerValueGetter: () =>
this.translate.instant('scan.gridHeader.PUBLISHED_TIME'),
width: 130,
maxWidth: 150,
minWidth: 130,
},
{
colId: 'impact',
Expand All @@ -157,9 +165,8 @@ export class VulnerabilityItemsTableComponent
},
cellClass: ['d-flex', 'align-items-center', 'justify-content-end'],
headerValueGetter: () => this.translate.instant('setting.ACTIONS'),
width: 150,
maxWidth: 160,
minWidth: 150,
width: 140,
minWidth: 140,
},
];

Expand Down

0 comments on commit 458e982

Please sign in to comment.