Bug 2075189

Summary: Imports from dynamic-plugin-sdk lead to failed module resolution errors
Product: OpenShift Container Platform Reporter: Phillip Bailey <phbailey>
Component: Management ConsoleAssignee: Vojtech Szocs <vszocs>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.11CC: aos-bugs, bflorkie, vszocs, yapei
Target Milestone: ---   
Target Release: 4.11.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: 2022-08-10 11:07:06 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
Stack traces none

Description Phillip Bailey 2022-04-13 19:00:00 UTC
Created attachment 1872298 [details]
Stack traces

Description of problem:
Attempting to import allModels from @openshift-console/dynamic-plugin-sdk/lib/utils/k8s caused module resolution errors related to the following imports. See the attachment for the full stack traces.

'typesafe-actions' in https://github.com/openshift/console/blob/master/frontend/packages/console-dynamic-plugin-sdk/src/app/core/actions/core.ts

'whatwg-fetch' in https://github.com/openshift/console/blob/master/frontend/packages/console-dynamic-plugin-sdk/src/utils/fetch/console-fetch.ts

'@console/internal/models' in https://github.com/openshift/console/blob/master/frontend/packages/console-dynamic-plugin-sdk/src/utils/k8s/k8s-utils.ts

Comment 1 Yaacov Zamir 2022-04-13 19:29:21 UTC
Vojtech hi, PTAL

Comment 2 Yaacov Zamir 2022-04-13 19:30:36 UTC
moving to management because it's related to the dynamic plugin sdk core package

Comment 4 Bryan Florkiewicz 2022-04-21 17:32:20 UTC
Setting the severity to high as this is blocking plugin developers from using the dynamic core API package in the console SDK

Comment 8 Yadan Pei 2022-05-17 08:12:19 UTC
Hi Phillip

Could you help move the bug to VERIFIED status if the fix is working for your kubevirt-plugin developing?

Comment 9 Phillip Bailey 2022-05-17 20:22:14 UTC
This bug can be closed. Between the changes Bryan made to remove the external dependencies and the availability of the useK8sModels hook, which negates the need to import from the file that led to the discovery of the problem, it should no longer be an issue.

Comment 11 errata-xmlrpc 2022-08-10 11:07:06 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security 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/RHSA-2022:5069

Comment 12 Red Hat Bugzilla 2023-09-15 01:53:54 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days