-
Notifications
You must be signed in to change notification settings - Fork 667
[release-4.13] OCPBUGS-18443: Fix crash when filtering the quick start catalog #13127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release-4.13] OCPBUGS-18443: Fix crash when filtering the quick start catalog #13127
Conversation
|
@jerolimov: This pull request references Jira Issue OCPBUGS-18443, 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 kubernetes/test-infra repository. |
|
/kind bug |
824a632 to
ce605f3
Compare
vikram-raj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified it.
GH-13127.mov
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerolimov, vikram-raj 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 |
|
@jerolimov: This pull request references Jira Issue OCPBUGS-18443, which is invalid:
Comment 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 kubernetes/test-infra repository. |
|
/label backport-risk-assessed |
|
@jerolimov: This pull request references Jira Issue OCPBUGS-18443, which is invalid:
Comment 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 kubernetes/test-infra repository. |
|
/jira refresh |
|
@vikram-raj: This pull request references Jira Issue OCPBUGS-18443, which is valid. 6 validation(s) were run on this bug
Requesting review from QA contact: 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 kubernetes/test-infra repository. |
|
/label cherry-pick-approved |
|
@jerolimov: 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/test-infra repository. I understand the commands that are listed here. |
|
@jerolimov: Jira Issue OCPBUGS-18443: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-18443 has been moved to the MODIFIED state. 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 kubernetes/test-infra repository. |
Fixes:
https://issues.redhat.com/browse/OCPBUGS-18443
This is a manual "backport" of #13126
Analysis / Root cause:
When the user enters a filter into the quick start catalog the catalog page crashes. This happened because the PatternFly Quick Start library uses a PF Search field, which changed the props 'recently': patternfly/patternfly-react#8516
So the Quick Start library and the used Search component aren't compatible, and the callback handler expects a string value but receives an event. But the same function is called with a string value when the user clicks the clear button.
A fix for the PatternFly Quick Start library wasn't merged yet: patternfly/patternfly-quickstarts#237
Solution Description:
Since the PF fix wasn't merged yet and this would require a PF Quick Start update, I decided to clone the
QuickStartCatalogPagecomponent from@patternfly/quickstartsand add it to our code base. And fix the issue in the copied version.This reduces the risk of more incompatible issues with an update, esp. in this backport !
The difference to the origin version is mostly that the
onSearchInputChangecallback handles now strings and events:Screen shots / Gifs for design review:
Crash without this PR:
4-13-broken.mp4
No crash with this PR:
4-13-fixed.mp4
Unit test coverage report:
Untouched
Test setup:
Browser conformance: