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(RHINENG-12310): Tag filter error on Reports page #2166

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

johnsonm325
Copy link
Contributor

To reproduce:

  1. Go to https://console.redhat.com/insights/vulnerability/cves
  2. At top in 'Filter by tag' select a value with systems
  3. Navigate to https://console.redhat.com/insights/vulnerability/reports#SIDs=&tags=
  4. Select Create report
  5. Error is displayed

The issue is that the useSelector on ReportsPage was not putting the tags into an array, AND if there were no tags, then it wasn't returning an empty array properly.

Make sure to apply multiple variations of workloads, SAP IDs, and tags to make sure this feature works correctly.

@johnsonm325 johnsonm325 requested a review from a team as a code owner November 8, 2024 19:32
@codecov-commenter
Copy link

codecov-commenter commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.22%. Comparing base (911a033) to head (b1bffaf).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2166      +/-   ##
==========================================
+ Coverage   67.07%   67.22%   +0.15%     
==========================================
  Files         129      129              
  Lines        3468     3469       +1     
  Branches     1077     1078       +1     
==========================================
+ Hits         2326     2332       +6     
+ Misses       1142     1137       -5     

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

To reproduce:
Go to https://console.redhat.com/insights/vulnerability/cves
At top in 'Filter by tag' select a value with systems
Navigate to https://console.redhat.com/insights/vulnerability/reports#SIDs=&tags=
Select Create report
Error is displayed

The issue is that the `useSelector` on ReportsPage was not putting the tags into an array, AND if there were no tags, then it wasn't returning an empty array properly.

Make sure to apply multiple variations of workloads, SAP IDs, and tags to make sure this feature works correctly.
Copy link

jira-linking bot commented Nov 25, 2024

Commits missing Jira IDs:
b1bffaf
Referenced Jiras:
https://issues.redhat.com/browse/RHINENG-12310

Copy link
Collaborator

@adonispuente adonispuente left a comment

Choose a reason for hiding this comment

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

This seems to work as intended, LGTM

@johnsonm325 johnsonm325 merged commit 1c761db into RedHatInsights:master Nov 26, 2024
6 checks passed
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