-
Notifications
You must be signed in to change notification settings - Fork 606
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
OCPBUGS-4026: Fix rerender loop/crash when bindable-kinds is found but has no status #12296
OCPBUGS-4026: Fix rerender loop/crash when bindable-kinds is found but has no status #12296
Conversation
@jerolimov: This pull request references Jira Issue OCPBUGS-4026, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. In 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 |
/cherry-pick release-4.12 |
@jerolimov: once the present PR merges, I will cherry-pick it on top of release-4.12 in a new PR and assign it to you. In 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. |
/lgtm |
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 locally. and it works as expected
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: invincibleJai, jerolimov, vikram-raj The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@jerolimov: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-4026 has been moved to the MODIFIED state. In 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. |
@jerolimov: new pull request created: #12304 In 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-4026
Analysis / Root cause:
This statement creates always a new
bindableServices
array when thebindable-kinds
resource is found, but has no status.Since this is used for the
useCallback
dependencies this catalog providers updates the catalog again and again.Solution Description:
Changed the
useCallback
dependencies to thebindableKinds
andloaded
so that the callback is only updated if one of these both changed. Checked that the status array is defined (with isArray) in the callback function.Screen shots / Gifs for design review:
Before:
before.mp4
After:
after.mp4
Unit test coverage report:
Unchanged
Test setup:
Browser conformance: