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-41522: Fix customize IT #1922

Merged

Conversation

metalice
Copy link
Member

@metalice metalice commented May 7, 2024

📝 Description

Fix the flow of customize IT

Edit disk
Edit nic
Cancel redirect
Adding SSH
Boot managment

🎥 Demo

Please add a video or an image of the behavior/changes

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented May 7, 2024

@metalice: This pull request references CNV-41522 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.16.0" version, but no target version was set.

In response to this:

📝 Description

Fix the flow of customize IT

Edit disk
Edit nic
Cancel redirect
Adding SSH
Boot managment

🎥 Demo

Please add a video or an image of the behavior/changes

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from avivtur and upalatucci May 7, 2024 05:53
@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label May 7, 2024
Signed-off-by: Matan Schatzman <mschatzm@redhat.com>
@metalice metalice force-pushed the CNV-41522-fix-customize-it branch from f576d28 to 56a95a9 Compare May 7, 2024 05:56
@@ -28,6 +28,7 @@ import './CustomizeITVMFooter.scss';
const CustomizeITVMFooter: FC = () => {
const { t } = useKubevirtTranslation();
const navigate = useNavigate();
const [activeNamespace] = useActiveNamespace();
Copy link
Member

Choose a reason for hiding this comment

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

Can this page be rendered on 'all-namespaces' ? In this case activeNamespace will be ALL_NAMESPACES_SESSION_KEY

Copy link
Member Author

Choose a reason for hiding this comment

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

should be fine, as this is only for the cancel button, but a wider check and adjustment will be followed so changes will be made again

@@ -37,12 +37,14 @@ export const updateCustomizeInstanceType: UpdateCustomizeInstanceType = (
updateValues,
): V1VirtualMachine => {
let vm = vmSignal.value;

Copy link
Member

Choose a reason for hiding this comment

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

🎉

const { createModal } = useModal();

const vm = vmSignal.value || vmContext;
Copy link
Member

Choose a reason for hiding this comment

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

Is this a temporary solution or will we always use context as a fallback? If it's not temporary, what's the value in having two store solutions?

Copy link
Member Author

Choose a reason for hiding this comment

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

in the end i would like to remove all use of context and stay only with signals so its temp until a wider refactor

@upalatucci
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label May 13, 2024
Copy link
Contributor

openshift-ci bot commented May 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: metalice, upalatucci

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:
  • OWNERS [metalice,upalatucci]

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

@openshift-merge-bot openshift-merge-bot bot merged commit e2e4e2b into kubevirt-ui:main May 13, 2024
9 of 10 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