Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1779076

Summary: WithDashboardResources HOC has incorrect comparison for alerts results
Product: OpenShift Container Platform Reporter: Rastislav Wagner <rawagner>
Component: Management ConsoleAssignee: Rastislav Wagner <rawagner>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: aos-bugs, bparees, jokerman, rhrazdil, spadgett
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The comparison of new and previous alerts was not correct. Consequence: Status card in Dashboards page may rerender frequently causing performance issues. Fix: Fixed the new/previous comparison logic. Result: Status card is rerendered only when alerts actually changed.
Story Points: ---
Clone Of:
: 1781053 (view as bug list) Environment:
Last Closed: 2020-05-13 21:53:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1781053, 1781055    

Description Rastislav Wagner 2019-12-03 08:53:45 UTC
Description of problem:
shouldComponentUpdate of WithDashboardResources HOC should compare old results of alerts vs new ones but it actually compares new alerts vs old prometheus results which is never true. In case a component watches alerts, this may cause performance problems due to unnecessary rerenders.

The issue is already fixed in 4.3 by https://github.com/openshift/console/pull/2805

Comment 2 Radim Hrazdil 2019-12-09 08:25:47 UTC
Verified

Comment 4 errata-xmlrpc 2020-05-13 21:53:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0581