Bug 2075189 - Imports from dynamic-plugin-sdk lead to failed module resolution errors
Summary: Imports from dynamic-plugin-sdk lead to failed module resolution errors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.11.0
Assignee: Vojtech Szocs
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-13 19:00 UTC by Phillip Bailey
Modified: 2023-09-15 01:53 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:07:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Stack traces (3.26 KB, text/plain)
2022-04-13 19:00 UTC, Phillip Bailey
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11381 0 None open Bug 2075189: Fix failed module resoltion errors in console sdk 2022-04-21 17:33:32 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:07:24 UTC

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


Note You need to log in before you can comment on or make changes to this bug.