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

CNV-33531: Fix broken Diagnostics link in VM Overview Details card #1570

Merged

Conversation

hstastna
Copy link

@hstastna hstastna commented Sep 27, 2023

📝 Description

Fixes:
https://issues.redhat.com/browse/CNV-33531

Make View diagnostic broken link, displayed in VM Overview Details card Status popover, lead to Diagnostics tab successfully, in case of some VM status error. Make the link work by using createUrl util to generate the url for the page correctly.

Note that when finding and then investigating this bug, I've found that all other links present in the VM Overview tab were created by use of createUrl. It seems it was just forgotten to use it also for that broken link hidden in the popover of one field in that page.

Also note that you must click on Overview tab to be able to always reproduce the bug. When accessing Overview tab from VM list page and not clicking on the tab name explicitly, you won't be able to reproduce the bug, because the url string will be missing "/" at its end.

🎥 Demo

Before:

diag_before.mp4

After:

diag_after.mp4

Make "View diagnostic" broken link displayed in VM Overview Details card
Status popover lead to Diagnostics tab successfully, in case of some VM
status error. make the link work by using createUrl to generate the url
for the page correctly.

Fixes https://issues.redhat.com/browse/CNV-33531
@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Sep 27, 2023

@hstastna: This pull request references CNV-33531 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set.

In response to this:

📝 Description

Fixes:
https://issues.redhat.com/browse/CNV-33531

Make View diagnostic broken link, displayed in VM Overview Details card Status popover, lead to Diagnostics tab successfully, in case of some VM status error. Make the link work by using createUrl util to generate the url for the page correctly.

Note that when investigating this bug, I've found that all other links present in the VM Overview tab were created by use of createUrl. It seems it was just forgotten to use it also for that broken link hidden in the popover of one field in that page.

Also note that you must click on Overview tab to be able to always reproduce the bug. When accessing Overview tab from VM list page and not clicking on the tab name explicitly, you won't be able to reproduce the bug, because the url string will be missing "/" at its end.

🎥 Demo

Before:

diag_before.mp4

After:

diag_after.mp4

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.

@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Sep 27, 2023
@hstastna
Copy link
Author

@avivtur @metalice @pcbailey @upalatucci @vojtechszocs please review

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Sep 27, 2023

@hstastna: This pull request references CNV-33531 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set.

In response to this:

📝 Description

Fixes:
https://issues.redhat.com/browse/CNV-33531

Make View diagnostic broken link, displayed in VM Overview Details card Status popover, lead to Diagnostics tab successfully, in case of some VM status error. Make the link work by using createUrl util to generate the url for the page correctly.

Note that when finding and then investigating this bug, I've found that all other links present in the VM Overview tab were created by use of createUrl. It seems it was just forgotten to use it also for that broken link hidden in the popover of one field in that page.

Also note that you must click on Overview tab to be able to always reproduce the bug. When accessing Overview tab from VM list page and not clicking on the tab name explicitly, you won't be able to reproduce the bug, because the url string will be missing "/" at its end.

🎥 Demo

Before:

diag_before.mp4

After:

diag_after.mp4

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.

@pcbailey
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Sep 27, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 27, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hstastna, pcbailey

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit c2dfb99 into kubevirt-ui:main Sep 27, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is something we want to fix jira/valid-reference lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants