AGENT-1352: revert ABI host unbinding when reset cluster#3280
AGENT-1352: revert ABI host unbinding when reset cluster#3280ElayAharoni wants to merge 1 commit intoopenshift-assisted:masterfrom
Conversation
Signed-off-by: Elay Aharoni <elayaha@gmail.com>
|
@ElayAharoni: This pull request references AGENT-1352 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 sub-task to target the "4.21.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 NOT APPROVED This pull-request has been approved by: ElayAharoni The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
WalkthroughThe cluster reset flow in ResetSingleClusterModal is simplified by removing the host unbinding loop. The handleResetAsync function now directly calls ClustersService.remove() without iterating over cluster hosts to unbind them individually. Changes
Sequence DiagramsequenceDiagram
participant User
participant Modal as ResetSingleClusterModal
participant Cluster as ClustersService
participant Nav as Navigation
rect rgb(240, 248, 255)
Note over User,Nav: Previous Flow (with host unbinding)
User->>Modal: Initiate reset
Modal->>Modal: Get cluster hosts (loop)
loop For each host
Modal->>Cluster: unbind(host)
end
Modal->>Cluster: remove(cluster.id)
Modal->>Nav: Navigate home
end
rect rgb(255, 250, 240)
Note over User,Nav: New Flow (simplified)
User->>Modal: Initiate reset
Modal->>Cluster: remove(cluster.id)
Modal->>Nav: Navigate home
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-10-21T04:40:36.292ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
🔇 Additional comments (2)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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 |
|
@ElayAharoni: This pull request references AGENT-1352 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 sub-task to target the "4.21.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. |
https://issues.redhat.com/browse/AGENT-1352
revert some of the logic regarding host unbinding
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.