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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 2128002: Display VM Templates list after template deletion #886

Conversation

hstastna
Copy link
Member

馃摑 Description

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

馃帴 Demo

Before:
temp_before
After:
temp_after

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 19, 2022

@hstastna: This pull request references Bugzilla bug 2128002, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.12.0) matches configured target release for branch (4.12.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @gouyang

In response to this:

Bug 2128002: Display VM Templates list after template deletion

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 requested a review from gouyang September 19, 2022 17:47
@hstastna hstastna force-pushed the BZ_Error_after_VM_template_deletion branch 2 times, most recently from 9041053 to b20da75 Compare September 19, 2022 17:51
@hstastna
Copy link
Member Author

@avivtur @metalice @pcbailey @yzamir @vojtechszocs please review

history.push(`/k8s/${lastNamespacePath}/templates`);
})
.then(() => history.push(`/k8s/${lastNamespacePath}/templates`))
.catch((e) => console.error(e));
Copy link
Member

Choose a reason for hiding this comment

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

If you remove this, the modal will handle the error showing the message in an alert on top of submit button

Copy link
Member Author

Choose a reason for hiding this comment

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

The catch block is unnecessary here, of course. But it's a good practice to use it whenever working with promises.

Copy link
Member

Choose a reason for hiding this comment

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

Yes but the modal will not handle the expection because it's catched here. So no error message will be prompted. If you want this, you should re throw the expection in the catch function or just remove the catch

Copy link
Member

Choose a reason for hiding this comment

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

@hstastna Can you confirm that you don't want the error message to be shown? I don't feel comfortable lgtm'ing this without resolving this conversation.

@hstastna hstastna force-pushed the BZ_Error_after_VM_template_deletion branch from b20da75 to 609eeeb Compare September 22, 2022 12:26
@hstastna hstastna force-pushed the BZ_Error_after_VM_template_deletion branch from 609eeeb to ec98807 Compare September 22, 2022 14:17
@pcbailey
Copy link
Member

/lgtm

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

openshift-ci bot commented Sep 22, 2022

[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 Sep 22, 2022
@openshift-merge-robot openshift-merge-robot merged commit 5698ce1 into kubevirt-ui:main Sep 22, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 22, 2022

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

Bugzilla bug 2128002 has been moved to the MODIFIED state.

In response to this:

Bug 2128002: Display VM Templates list after template deletion

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.

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.

None yet

4 participants