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

Bug 2175274: Display Edit CPU | Memory modal in VM Details #1105

Conversation

hstastna
Copy link

@hstastna hstastna commented Mar 3, 2023

📝 Description

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=2175274

Fix the error, prevent blank page to be displayed, after trying to edit CPU/Memory of a VM, created from a template without spec.template.spec.domain.cpu defined in its VM object (see the YAML of a VM or a Template).

Fix the error by making sure the path exists (using ensurePath), when editing the VM or Template object (the same problem occurs in more places).

🎥 Demo

Before:
cpu_before

After:
cpu_after

Fix the error, prevent blank page to be displayed, after trying
to edit CPU/Memory of a VM, created from a template without
"spec.template.spec.domain.cpu" defined in its VM object.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2175274
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 3, 2023

@hstastna: This pull request references Bugzilla bug 2175274, which is invalid:

  • expected the bug to target the "4.14.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 2175274: Display Edit CPU | Memory modal in VM 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.

@hstastna
Copy link
Author

hstastna commented Mar 3, 2023

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

@pcbailey
Copy link
Member

pcbailey commented Mar 4, 2023

/lgtm

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

openshift-ci bot commented Mar 4, 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-ci openshift-ci bot added the approved This issue is something we want to fix label Mar 4, 2023
@pcbailey
Copy link
Member

pcbailey commented Mar 4, 2023

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 4, 2023

@hstastna: All pull requests linked via external trackers have merged:

Bugzilla bug 2175274 has been moved to the MODIFIED state.

In response to this:

Bug 2175274: Display Edit CPU | Memory modal in VM 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.

This pull request was closed.
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 bugzilla/severity-medium bugzilla/valid-bug lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants