Bug 1789979

Summary: Webhook triggers table does not properly respond to prop changes
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, hasha, jokerman
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Version: 4.4.0-0.ci-2020-01-10-182016 Cluster ID: 7eb39ba0-730f-4d2e-96c5-552e914c2653 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0
Last Closed: 2020-05-04 11:23:58 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:

Description Samuel Padgett 2020-01-10 21:43:39 UTC
See https://github.com/openshift/console/blob/master/frontend/public/components/utils/webhooks.tsx#L62-L93

The `useEffect` hook isn't re-run when the webhooks change since it's not part of the dependencies. This also results in a linter warning (which we should probably promote to an error).

Comment 2 shahan 2020-01-22 08:11:50 UTC
1. make bc "secretReference"  reference to secret that does not exist
It will have alert like: There are 1 warning alerts.
Error: secrets "test2" not found‘
2. update bc "secretReference" with different webhook secret
The secret of webhook will be changed on the bc detail page.
4.4.0-0.nightly-2020-01-21-202840

Comment 4 errata-xmlrpc 2020-05-04 11:23:58 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