ACM-27599: Installation wizard blocked due to AgentClusterInstallValidator#3372
Conversation
📝 WalkthroughWalkthroughRemoved Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@libs/ui-lib/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx`:
- Around line 146-149: When rendering the OpenShift version in the
StaticTextField for the edit flow, use the form's current value as a fallback
when forceOpenshiftVersion is undefined: update the JSX that shows the version
(inside the StaticTextField used when isEditFlow || forceOpenshiftVersion) to
render forceOpenshiftVersion ?? values.openshiftVersion (or equivalent) so that
when isEditFlow is true and forceOpenshiftVersion is not set the displayed
version comes from values.openshiftVersion; ensure you reference the existing
symbols isEditFlow, forceOpenshiftVersion, StaticTextField and
values.openshiftVersion so the change is localized to that component.
libs/ui-lib/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx
Outdated
Show resolved
Hide resolved
|
@LiorSoffer: This pull request references ACM-27599 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.22.0" version, but no target version was set. DetailsIn 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. |
2294381 to
3144f96
Compare
|
@LiorSoffer: This pull request references ACM-27599 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.22.0" version, but no target version was set. DetailsIn 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. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@libs/ui-lib/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx`:
- Around line 144-149: In ClusterDetailsFormFields.tsx inside the isEditFlow
branch (the StaticTextField rendering for name="openshiftVersion"), ensure
there's a space between the translated label t('ai:OpenShift') and the version
text (the expression using allVersions.find(...) || values.openshiftVersion);
update the rendering so the translated string and the version are separated
(e.g., append a trailing space to the translation or insert a literal space
between the two expressions) to prevent "OpenShift4.15" rendering.
libs/ui-lib/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx
Show resolved
Hide resolved
…sters Signed-off-by: Lior Soffer <lsoffer@redhat.com>
3144f96 to
5babbc6
Compare
|
@LiorSoffer: This pull request references ACM-27599 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.22.0" version, but no target version was set. DetailsIn 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. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@libs/ui-lib/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx`:
- Around line 49-56: The handleOnNext callback currently only calls
goToNextStep, skipping Formik submission; update ClusterDeploymentDetailsForm's
handleOnNext to invoke Formik's submitForm (from
useFormikContext<ClusterDetailsValues>()) instead of directly navigating so the
form's onSubmit/onSaveDetails runs and values persist, e.g., call submitForm()
(or submitForm() then await confirmation) within handleOnNext rather than only
calling goToNextStep.
🧹 Nitpick comments (1)
libs/ui-lib/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx (1)
33-40: UnusedagentClusterInstallprop in type definition.The
agentClusterInstallprop is defined inClusterDeploymentDetailsFormProps(line 36) but is not destructured or used in theClusterDeploymentDetailsFormcomponent (lines 92-98). This appears to be leftover from the refactor.♻️ Proposed fix to remove unused prop
type ClusterDeploymentDetailsFormProps = { clusterImages: ClusterImageSetK8sResource[]; clusterDeployment?: ClusterDeploymentK8sResource; - agentClusterInstall?: AgentClusterInstallK8sResource; extensionAfter?: ClusterDetailsFormFieldsProps['extensionAfter']; isNutanix?: boolean; osImages?: OsImage[]; };After removing the prop, also remove the unused import on line 12:
import { - AgentClusterInstallK8sResource, ClusterDeploymentK8sResource, OsImage, } from '../../../types';
.../ui-lib/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx
Show resolved
Hide resolved
|
@LiorSoffer: This pull request references ACM-27599 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.22.0" version, but no target version was set. DetailsIn 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 APPROVED This pull-request has been approved by: jgyselov, LiorSoffer The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick releases/v2.14-cim |
|
@LiorSoffer: once the present PR merges, I will cherry-pick it on top of DetailsIn 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 kubernetes-sigs/prow repository. |
04fc936
into
openshift-assisted:master
|
@LiorSoffer: #3372 failed to apply on top of branch "releases/v2.14-cim": DetailsIn 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 kubernetes-sigs/prow repository. |
1 similar comment
|
@LiorSoffer: #3372 failed to apply on top of branch "releases/v2.14-cim": DetailsIn 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 kubernetes-sigs/prow repository. |
|
@LiorSoffer: #3372 failed to apply on top of branch "releases/v2.15-cim": DetailsIn 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 kubernetes-sigs/prow repository. |
|
@LiorSoffer: new pull request created: #3390 DetailsIn 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 kubernetes-sigs/prow repository. |
|
@LiorSoffer: new pull request created: #3391 DetailsIn 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 kubernetes-sigs/prow repository. |
https://issues.redhat.com/browse/ACM-27599
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.