-
Notifications
You must be signed in to change notification settings - Fork 657
CONSOLE-4606: [METAL3] Drop createModalLauncher and use useOverlay hook instead. #15394
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
base: main
Are you sure you want to change the base?
Conversation
@krishagarwal278: This pull request references CONSOLE-4606 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 story to target the "4.20.0" version, but no target version was set. In response to this: 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: krishagarwal278 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2cc0646
to
babadbd
Compare
/retest |
1 similar comment
/retest |
@krishagarwal278: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
}); | ||
}); | ||
}; | ||
|
||
export const useMenuActionsCreator = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You introduced this hook, but haven't actually replaced themenuActionsCreator
, that we are targeting to replace and also remove the menuActions
. We should remove menuActionsCreator
and menuActions
.
submitDisabled={!canPowerOffSafely && !forceOff} | ||
submitText={t('metal3-plugin~Power Off')} | ||
return ( | ||
<Modal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactoring the existing modals was out of scope of this story, but kudos for going for it anyway. Be sure to test it out if there are not some visual discrepancies, its hard for me to test this out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your suggestion on launching a bare metal cluster. Should be able to test out my changes soon.
@@ -22,7 +22,8 @@ import { | |||
import { HOST_POWER_STATUS_POWERING_OFF, HOST_POWER_STATUS_POWERING_ON } from './constants'; | |||
import { | |||
detectBaremetalPlatform, | |||
BAREMETAL_FLAG, | |||
// BAREMETAL_FLAG, | |||
BMO_ENABLED_FLAG, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this for testing/development purposes?
bmoEnabled, | ||
t, | ||
}} | ||
customActionMenu={customActionMenu} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Robb figured out that we can also do:
customActionMenu={customActionMenu} | |
customActionMenu={(kindObj: K8sModel, obj: K8sResourceKind) => ( | |
<LazyActionMenu context={{ [referenceForModel(BareMetalHostModel)]: obj }} variant={ActionMenuVariant.DROPDOWN} /> | |
)} |
and remove the customActionMenu
above.
PR needs rebase. 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-sigs/prow repository. |
No description provided.