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

Bug 1768662

Summary: kubevirt-web-ui-components dependency loads on console load, significantly increasing the size of console JS
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Console Kubevirt PluginAssignee: Marek Libra <mlibra>
Status: CLOSED ERRATA QA Contact: Nelly Credi <ncredi>
Severity: high Docs Contact:
Priority: high    
Version: 4.3.0CC: aos-bugs, bparees, rawagner
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 11:10:52 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:
Attachments:
Description Flags
yarn run analyze report none

Description Samuel Padgett 2019-11-04 22:12:41 UTC
Created attachment 1632774 [details]
yarn run analyze report

This dependency should only load when the user visits a kubevirt page. kubevirt-web-ui-components increases the console main vendor bundle size from 1.68 MB to 2.94 MB. As a side effect, it broke console loading on the Edge browser (bug 1767853).

It appears to have been introduced in https://github.com/openshift/console/pull/2392

This is only an issue in nightly 4.3 builds, not in 4.2.

Comment 1 Samuel Padgett 2019-11-08 17:52:31 UTC
This is the line that introduced the problem:

https://github.com/openshift/console/pull/2392/files#diff-80f3aa1672977fbd4c80165ab2066031R2

packages/kubevirt-plugin/src/selectors/vm-template/selectors.ts
2:import { getVmTemplate } from 'kubevirt-web-ui-components';

Comment 3 Rastislav Wagner 2019-11-27 11:51:15 UTC
kubevirt-web-ui-components are not in main vendor bundle anymore - checked with yarn run analyze against release-4.3 branch

Comment 5 errata-xmlrpc 2020-01-23 11:10:52 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:0062