OCPBUGS-69379: Fix RBAC role rules filter input handling#16749
OCPBUGS-69379: Fix RBAC role rules filter input handling#16749rzhabbarov wants to merge 1 commit into
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@rzhabbarov: This pull request references Jira Issue OCPBUGS-69379, 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rzhabbarov 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 |
|
Hi @rzhabbarov. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
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 (1)
WalkthroughUpdated the RBAC role details filter handler to accept TextFilter’s ChangesRBAC filter alignment
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ 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 |
Analysis / Root cause:
The RBAC Role rules filter handled the TextInput
onChangecallback incorrectly. PatternFly TextInput passes the input value as the second argument, but the component stored the first argument in state, which is the change event. As a result, the rules filter did not use the entered filter text correctly.Solution description:
Updated the Role details rules filter handler to read the filter text from the second
onChangeargument.Screenshots / screen recording:
before fix:
https://github.com/user-attachments/assets/0a140b95-781d-4779-bcd1-d0c3f6743847
after fix:
https://github.com/user-attachments/assets/8eb4e15d-2828-4009-9286-d6317df42f41
Test setup:
No special setup required.
Test cases:
pods, in the rules filter input and verify that matching rules remain visible.getorcreate, and verify that matching rules remain visible.Browser conformance:
Additional info:
The component is currently implemented in JSX, which made this callback signature mismatch easy to miss. I kept this PR scoped to the bug fix, but I can follow up with a separate TSX migration if maintainers think it would be useful.
Reviewers and assignees:
Summary by CodeRabbit