OCPBUGS-81630: Fix unnecessary error on Node Terminal tab#16263
OCPBUGS-81630: Fix unnecessary error on Node Terminal tab#16263stefanonardo wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
@stefanonardo: This pull request references Jira Issue OCPBUGS-81630, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (1)
📝 WalkthroughWalkthroughThe NodeTerminal component was updated to add proper loading state handling. Previously, the component would render NodeTerminalInner based solely on whether an errorMessage existed, regardless of the podName state. The change introduces an additional conditional branch: when no errorMessage is present AND the podName is falsy—indicating the debug pod hasn't been initialized yet—the component now renders a LoadingBox instead of attempting to render the inner component. This modification adds two lines of code with no removals. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Show a loading spinner while the debug pod is being created, instead of briefly flashing "Debug pod not found or was deleted." The error occurred because useK8sWatchResource(null) returns loaded=true before pod creation completes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
170581d to
28239f2
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, stefanonardo 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 |
|
@stefanonardo: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Summary
useK8sWatchResource(null)returnsloaded=truebefore pod creation completesdebug-terminal.tsxTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit