Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(SystemCVEs): RHINENG-11464 inventory tab advisory filter #2149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xmicha82
Copy link
Contributor

@xmicha82 xmicha82 commented Oct 1, 2024

Fix default advisory filter in vulnerability in inventory system detail

How to test

  1. Go to Inventory and open a system
  2. Go to Vulnerability tab
  3. Observe Advisory Available filter by default

Before

image

After

image

@xmicha82 xmicha82 requested a review from a team as a code owner October 1, 2024 14:49
Copy link

jira-linking bot commented Oct 1, 2024

Referenced Jiras:
https://issues.redhat.com/browse/RHINENG-11464

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 67.18%. Comparing base (0c9ebdf) to head (ff5d00f).

Files with missing lines Patch % Lines
...omponents/SmartComponents/SystemCves/SystemCves.js 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2149      +/-   ##
==========================================
+ Coverage   67.15%   67.18%   +0.03%     
==========================================
  Files         128      128              
  Lines        3440     3447       +7     
  Branches     1067     1070       +3     
==========================================
+ Hits         2310     2316       +6     
- Misses       1130     1131       +1     
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -128,9 +128,19 @@ export const SystemCVEs = ({
dispatch(changeSystemCVEsParameters(params));
};

const paramsWithoutAppname = (params) =>
Object.entries(params).reduce((acc, curr) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to use .filter here and Object.fromEntries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants