Bug 1953728

Summary: Fix issues related to loading dynamic plugins
Product: OpenShift Container Platform Reporter: Vojtech Szocs <vszocs>
Component: Management ConsoleAssignee: Vojtech Szocs <vszocs>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.7CC: aos-bugs, jokerman, yanpzhan, yapei
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1953726 Environment:
Last Closed: 2021-05-19 15:16:51 UTC Type: ---
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: 1953726    
Bug Blocks:    

Description Vojtech Szocs 2021-04-26 18:53:05 UTC
+++ This bug was initially created as a clone of Bug #1953726 +++

Description of problem:

Some fixes are needed to ensure Console dynamic plugins are loaded properly in the browser.

Issue details:

(1) loadPluginFromURL function should wait until the plugin is loaded
(2) generated plugin-entry.js file should use /api/plugins/{PluginName}/ to load plugin-specific assets
(3) extension validation should not fail upon plugin's production build (due to webpack module concatenation)

Tech docs reference:

https://github.com/openshift/console/blob/master/frontend/packages/console-dynamic-plugin-sdk/README.md

Comment 5 Siddharth Sharma 2021-05-10 17:59:36 UTC
This bug will be shipped as part of next z-stream release 4.7.11 on May 19th, as 4.7.10 was dropped due to a blocker https://bugzilla.redhat.com/show_bug.cgi?id=1958518.

Comment 9 errata-xmlrpc 2021-05-19 15:16:51 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 (OpenShift Container Platform 4.7.11 bug fix update), 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-2021:1550