OCPBUGS-113611: Preserve sort params after project delete - #17090
stefanonardo wants to merge 1 commit into
Conversation
|
@stefanonardo: This pull request references Jira Issue OCPBUGS-113611, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe namespace deletion modal is exported for testing. After successful deletion, navigation preserves the current URL query parameters. A test verifies preservation of ChangesNamespace deletion navigation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change preserves sorting and pagination parameters when returning to the project list after deletion. No actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
Full details: Description checkExplanation The description includes the root cause, solution, test setup, test cases, browser conformance section, and regression context. The screenshots section remains a placeholder, browser checks are unmarked, and reviewer assignments are not included, but the core information is complete. Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. Full details: Stable And Deterministic Test NamesExplanation PASS: The pull request adds a Jest test, not a Ginkgo test. Its Full details: Test Structure And QualityExplanation PASS — The custom check is scoped to Ginkgo test code, but this pull request adds a Jest/React Testing Library Full details: Microshift Test CompatibilityExplanation The check is not applicable. The pull request adds a TypeScript React Testing Library/Jest test in Full details: Single Node Openshift (Sno) Test CompatibilityExplanation PASS: The pull request adds a Jest/React Testing Library frontend unit test, not a Ginkgo end-to-end test. The changed files contain no Ginkgo tests or multi-node/HA assumptions, so the SNO compatibility check is not applicable. Full details: Topology-Aware Scheduling CompatibilityExplanation PASS: The pull request changes only a frontend modal and its test. The diff adds a navigation query string and exports Full details: Ote Binary Stdout ContractExplanation PASS: The pull request changes only two frontend TypeScript/TSX files. It adds a React test and changes browser navigation in Full details: Ipv6 And Disconnected Network Test CompatibilityExplanation PASS: The pull request adds one Jest/React Testing Library unit test, not a Ginkgo e2e test. The test uses Full details: No-Weak-CryptoExplanation PASS: The pull request changes only Full details: Container-PrivilegesExplanation PASS: The pull request changes only a TypeScript modal and its test. The parent-to-HEAD diff contains no container or Kubernetes manifest changes and no privilege-related settings such as privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, or allowPrivilegeEscalation. Full details: No-Sensitive-Data-In-LogsExplanation No logging was introduced by this pull request. The exact diff adds a test and appends ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@stefanonardo: This pull request references Jira Issue OCPBUGS-113611, which is valid. 3 validation(s) were run on this bug
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: stefanonardo 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 |
|
duplicate #17088 |
|
@stefanonardo: This pull request references Jira Issue OCPBUGS-113611. The bug has been updated to no longer 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. |
Analysis / Root cause: After a successful delete, the modal navigated to `/k8s/cluster/${kind.plural}` without search params, stripping `sortBy`/`orderBy` and causing ConsoleDataView to reset sort to the default column.
Solution description: Append `window.location.search` to the navigate call so sort (and page/perPage) params are preserved.
Screenshots / screen recording:
Test setup: Go to Home → Projects, sort by Requester, delete a project via the kebab menu.
Test cases:
Browser conformance:
Additional info: Regression introduced in 4.21 with the ConsoleDataView migration (CONSOLE-4719).
Summary by CodeRabbit
Bug Fixes
Tests