[release-4.19] OCPBUGS-90623: Allow VolumeSnapshot restore when parent PVC is deleted#16661
[release-4.19] OCPBUGS-90623: Allow VolumeSnapshot restore when parent PVC is deleted#16661sg00dwin wants to merge 1 commit into
Conversation
|
@sg00dwin: This pull request references Jira Issue OCPBUGS-59404, 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. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sg00dwin 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 |
|
@sg00dwin: This pull request references Jira Issue OCPBUGS-90623, 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. |
|
/jira refresh |
|
@sg00dwin: This pull request references Jira Issue OCPBUGS-90623, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (yapei@redhat.com), skipping review request. 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. |
|
/test e2e-gcp-console |
1 similar comment
|
/test e2e-gcp-console |
|
@sg00dwin: This pull request references Jira Issue OCPBUGS-90623, which is valid. 7 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Jira (yapei@redhat.com), skipping review request. 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. |
|
/verified by @sg00dwin and claude |
|
@sg00dwin: This PR has been marked as verified by 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. |
|
@sg00dwin: all tests passed! 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. |
This is a manual backport of #16447 to release-4.19.
The cherry-pick had merge conflicts because the 4.19 branch still uses the older
withHandlePromiseclass-style component pattern (extra indentation,React.useState,classNameprops on FormGroups), while the main branch had been refactored. I resolved by applying the PR's logic changes (pvcNotFound,formReady, conditional filter, guardedisInputDisabled) while preserving the 4.19 code style.Assisted by: Claude (Opus 4.6)
Test Verification (4.19 backport)
Adapted unit tests from the main branch PR (#16447) to work with the 4.19 component structure (withHandlePromise HOC, React.useState, different import paths, no renderWithProviders util). The logic changes are identical to the 4.21 and 4.22 backports — the only differences are structural, matching the older component pattern in 4.19.
Results:
All 4 tests pass on the backport branch (with fix)
The "deleted PVC" test correctly fails on release-4.19 without the fix (skeleton loaders render instead of form fields)
3 regression tests pass on both branches, confirming no breakage
Tests:
Renders all form fields when parent PVC exists (regression)
Renders all form fields when parent PVC is deleted (OCPBUGS-59404 fix)
Shows skeleton loaders while PVC is still loading
Pre-populates restore name from snapshot name