Skip to content

ROX-9766: Add severity column to Image CVEs and Node CVEs tables#2768

Merged
sachaudh merged 1 commit intomasterfrom
ROX-9766
Aug 22, 2022
Merged

ROX-9766: Add severity column to Image CVEs and Node CVEs tables#2768
sachaudh merged 1 commit intomasterfrom
ROX-9766

Conversation

@sachaudh
Copy link
Contributor

Description

This change ensures that we show the severity column in the Image and Node CVEs tables

Checklist

  • Investigated and inspected CI test results
  • Unit test and regression tests added
  • Evaluated and added CHANGELOG entry if required
  • Determined and documented upgrade steps
  • Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

Testing Performed

Screen Shot 2022-08-19 at 4 41 22 PM

Screen Shot 2022-08-19 at 4 41 28 PM

@sachaudh sachaudh requested a review from vjwilson August 19, 2022 23:45
@sachaudh sachaudh requested a review from md2119 August 19, 2022 23:45
@ghost
Copy link

ghost commented Aug 20, 2022

Images are ready for the commit at 6fc0fc9.

To use with deploy scripts, first export MAIN_IMAGE_TAG=3.71.x-334-g6fc0fc9644.

@openshift-ci
Copy link

openshift-ci bot commented Aug 20, 2022

@sachaudh: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/gke-ui-e2e-tests 6fc0fc9 link false /test gke-ui-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

}
case 'severity': {
return shouldKeepDiscoveredAtImageColumn;
return shouldKeepSeverity || shouldKeepDiscoveredAtImageColumn;
Copy link
Contributor

Choose a reason for hiding this comment

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

why are you checking for shouldKeepDiscoveredAtImageColumn to determine the visibility of severity?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems like we use that to determine whether to show the severity column. If you git blame you can track it down to this PR https://github.com/stackrox/rox/pull/8080. It seems like he added it according to that PR. All I know is that we want to show the severity for the Image CVEs and Node CVEs tables so I'm adding that conditional logic to display it for those. I don't want to mess around too much with what's here right now since we will eventually make changes to VM soon. If you want to dig into why it was added, maybe you can ask Gorman for clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants