Bug 2084292 - Access to dashboard resources is needed in dynamic plugin SDK
Summary: Access to dashboard resources is needed in dynamic plugin SDK
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.11
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Phillip Bailey
QA Contact: Yadan Pei
Depends On:
TreeView+ depends on / blocked
Reported: 2022-05-11 19:56 UTC by Phillip Bailey
Modified: 2022-08-10 11:11 UTC (History)
1 user (show)

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

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift console pull 11467 0 None open Bug 2084292: Add useDashboardResources hook 2022-05-11 19:57:16 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:11:45 UTC

Description Phillip Bailey 2022-05-11 19:56:13 UTC
Description of problem:

The withDashboardResources HOC provides needed access to data inside the Console redux store for static plugins. That isn't an option when migrating to a dynamic plugin, but access to that data is still needed.

The preferred option to fill this gap is a hook that provides the data once provided by withDashboardResources that hasn't already been replaced by existing hooks such as watchK8sResources.

Comment 2 Yadan Pei 2022-05-17 07:09:04 UTC
Hi Phillip

Trying to figure out how to verify the new changes fix PR has brought in but still no clue, to my understanding, this PR just adds a new useDashboardResources Hook, but I didn't see any references/usages about it, how can I make sure it is functionally working?

Comment 4 Yadan Pei 2022-06-01 08:23:24 UTC
confirmed that the useDashboardResources hook is exported in our console-dynamic-plugin-sdk

$ cat packages/console-dynamic-plugin-sdk/dist/internal/lib/api/internal-api.js
export const useDashboardResources = require('@console/shared/src/hooks/useDashboardResources')

Comment 6 errata-xmlrpc 2022-08-10 11:11:18 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.


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