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

Bug 2044454

Summary: Handle sidebar section render that defines Adapter
Product: OpenShift Container Platform Reporter: Jaivardhan Kumar <jakumar>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED DUPLICATE QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: aos-bugs, cjerolim, nmukherj, viraj
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-23 10:05:39 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 Jaivardhan Kumar 2022-01-24 16:27:23 UTC
Description of problem:
renderNull property is introduced to the extension `console.topology/details/tab-section` for section that defines Adapter.

https://github.com/openshift/console/blob/master/frontend/packages/console-dynamic-plugin-sdk/src/extensions/topology-details.ts#L37-L42

as part of https://github.com/openshift/console/pull/10127

This change triggered a console warning that another component is updated while rendering the topology sidebar 

```
react_devtools_backend.js:4045 Warning: Cannot update a component (`SideBarTabLoader`) while rendering a different component (`BuildTabSection`)
```

as updates https://github.com/openshift/console/blob/master/frontend/packages/topology/src/components/side-bar/providers/SideBarTabLoader.tsx#L43-L56 


(which has been fixed https://github.com/openshift/console/pull/10842)

Above PR fixes the warning but not the actual render flow, if the section that defines the adapter needs to adapt then a hook /callback will be needed, it will render what is needed to show the tab.

Version-Release number of selected component (if applicable): 4.10



Additional info: slack thread https://coreos.slack.com/archives/CHGU4P8UU/p1642613543061800

Comment 3 Christoph Jerolimov 2022-05-23 10:05:39 UTC
This issue is solved with PR https://github.com/openshift/console/pull/11420 in 4.11.

As all these issues have the same root cause we mark this as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2064256

We will backport this back to 4.8.

*** This bug has been marked as a duplicate of bug 2064256 ***