Skip to content

ROX-16032: Add handling for new CVE types in page header UI code#5299

Merged
vjwilson merged 1 commit intomasterfrom
ROX-16032-page-crash-image-to-cve-to-deployments
Mar 20, 2023
Merged

ROX-16032: Add handling for new CVE types in page header UI code#5299
vjwilson merged 1 commit intomasterfrom
ROX-16032-page-crash-image-to-cve-to-deployments

Conversation

@vjwilson
Copy link
Contributor

@vjwilson vjwilson commented Mar 17, 2023

Description

Add code to handle the name for the new Postgres-enabled CVE types to getEntityName hook, in file ui/apps/platform/src/utils/getEntityName.js

This fixes:

UI crash on a postgreSQL 3.74 install. It's pretty consistent, navigating from a particular CVE to the related entities like Deployment.
nav path is VM Dashboard -> Select #3 image in "Top Riskiest" -> Click on CVE-2014-9761 -> 4 Deployments

Analysis

When we split the CVE types for Postgres, an edge case opened in the page heading code, which picks the "name" field based on type. I forgot to add the new CVE types to the header code.

Doesn't matter, except that the fallback of generic name tries to print the image's name, which is nested in an object, as the page transitions from the single image view to the deployment list for a CVE, as one view goes out of scope and the other comes in.

(That's why going straight to the link works--there's no old image view to transition away from.)

Checklist

  • Investigated and inspected CI test results (ui-e2e failures are known flakes)

Testing Performed

Screen recording of this code path working with this code change

no-crash-image-cve-deployments-navigation.mov

@ghost
Copy link

ghost commented Mar 17, 2023

Images are ready for the commit at 747b9a1.

To use with deploy scripts, first export MAIN_IMAGE_TAG=3.74.x-410-g747b9a12fb.

@openshift-ci
Copy link

openshift-ci bot commented Mar 18, 2023

@vjwilson: The following tests 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 747b9a1 link false /test gke-ui-e2e-tests
ci/prow/gke-postgres-ui-e2e-tests 747b9a1 link false /test gke-postgres-ui-e2e-tests
ci/prow/aks-qa-e2e-tests 747b9a1 link false /test aks-qa-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.

Copy link
Contributor

@srcporter srcporter left a comment

Choose a reason for hiding this comment

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

LGTM but i'm hardly the expert.

@vjwilson vjwilson merged commit 2fdc667 into master Mar 20, 2023
@vjwilson vjwilson deleted the ROX-16032-page-crash-image-to-cve-to-deployments branch March 20, 2023 18:21
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