Skip to content

Conversation

@logonoff
Copy link
Member

CSP violations are now stored in the store.UI.pluginCSPViolations[pluginName] as a boolean for whether a violation has been committed.

Removes setCustomDynamicPluginInfo and findDynamicPluginInfo because they will not be included in openshift/dynamic-plugin-sdk.

There should be no functional or UI changes in this PR, everything should remain the same to an end user.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Oct 23, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Oct 23, 2025

@logonoff: This pull request references CONSOLE-4841 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

CSP violations are now stored in the store.UI.pluginCSPViolations[pluginName] as a boolean for whether a violation has been committed.

Removes setCustomDynamicPluginInfo and findDynamicPluginInfo because they will not be included in openshift/dynamic-plugin-sdk.

There should be no functional or UI changes in this PR, everything should remain the same to an end user.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@logonoff
Copy link
Member Author

/label px-approved
/label docs-approved

/assign @yapei @vojtechszocs

@openshift-ci openshift-ci bot added px-approved Signifies that Product Support has signed off on this PR docs-approved Signifies that Docs has signed off on this PR labels Oct 23, 2025
@openshift-ci openshift-ci bot requested review from TheRealJon and jhadvig October 23, 2025 04:05
@openshift-ci openshift-ci bot added component/core Related to console core functionality component/sdk Related to console-plugin-sdk approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 23, 2025
@openshift-ci openshift-ci bot added the component/shared Related to console-shared label Oct 23, 2025
@logonoff logonoff force-pushed the CONSOLE-4841-csp branch 4 times, most recently from 8c88a87 to 543a22c Compare October 23, 2025 20:35
@openshift-ci openshift-ci bot added component/dashboard Related to dashboard component/topology Related to topology labels Oct 23, 2025
@logonoff logonoff changed the title CONSOLE-4841: Move CSP from plugin to redux store CONSOLE-4841: Move CSP from plugin to redux store + some sdk adoption prep work Oct 23, 2025
@logonoff logonoff force-pushed the CONSOLE-4841-csp branch 4 times, most recently from 7717f17 to 9073393 Compare October 27, 2025 04:05
* @returns Console dynamic plugin runtime information.
*/
export const useDynamicPluginInfo = (): [DynamicPluginInfo[], boolean] => {
export const usePluginInfo = (): [DynamicPluginInfo[], boolean] => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, why do we remove dynamic from name? any special consideration?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will be transitioning to a new SDK which uses the name usePluginInfo

https://github.com/openshift/dynamic-plugin-sdk/blob/main/packages/lib-core/src/runtime/usePluginInfo.ts

So I'm changing the name here in preparation

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, this is just to align with upcoming change to use the runtime (core) package from the above mentioned repo.

@yapei
Copy link
Contributor

yapei commented Oct 27, 2025

performed some testing about dynamic plugin CSP status checking in Dynamic Plugin status card and ConsolePlugins list table
Screenshot 2025-10-27 at 3 57 22 PM
Screenshot 2025-10-27 at 3 57 59 PM
no regression issues found

@openshift-ci-robot
Copy link
Contributor

@logonoff: This PR has been marked as verified by yapei.

In response to this:

just a rebase

/verified by yapei

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

pluginInfoEntries.find((entry) =>
isLoadedDynamicPluginInfo(entry)
? entry.metadata.name === pluginName
: entry.pluginName === pluginName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI - in [1] we need a manifest object (provided either directly or via URL) before loading a plugin, so this code should become more simple in future, e.g. entry.manifest.name.

[1] https://github.com/openshift/dynamic-plugin-sdk/blob/main/packages/lib-core/src/types/store.ts

* - **Yes**
* - Functional components: use `useExtensions` hook.
* - Class components: use `withExtensions` higher-order component.
* - Use `useExtensions` hook.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks for updating code docs

* @returns Console dynamic plugin runtime information.
*/
export const useDynamicPluginInfo = (): [DynamicPluginInfo[], boolean] => {
export const usePluginInfo = (): [DynamicPluginInfo[], boolean] => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, this is just to align with upcoming change to use the runtime (core) package from the above mentioned repo.

@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Nov 4, 2025
@logonoff
Copy link
Member Author

logonoff commented Nov 4, 2025

reapplying verified because the suggestion doesn't have any functional impact

/verified by yapei

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Nov 4, 2025
@openshift-ci-robot
Copy link
Contributor

@logonoff: This PR has been marked as verified by yapei.

In response to this:

reapplying verified because the suggestion doesn't have any functional impact

/verified by yapei

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Nov 4, 2025
@logonoff
Copy link
Member Author

logonoff commented Nov 4, 2025

rebase

/verified by yapei

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Nov 4, 2025
@openshift-ci-robot
Copy link
Contributor

@logonoff: This PR has been marked as verified by yapei.

In response to this:

rebase

/verified by yapei

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

CSP violations are now stored in the `store.UI.pluginCSPViolations[pluginName]` as a boolean for whether a violation has been committed.

Removes `setCustomDynamicPluginInfo` and `findDynamicPluginInfo` because they will not be included in `openshift/dynamic-plugin-sdk`.

There should be no functional or UI changes in this PR, everything should remain the same to an end user.
Also remove `usePluginInfo` and `usePluginStore` from the barrel file so we can move towards removing the barrel file entirely
It's used in one spot which we can remove
@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Nov 5, 2025
@logonoff
Copy link
Member Author

logonoff commented Nov 5, 2025

rebase

/verified by yapei

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Nov 5, 2025
@openshift-ci-robot
Copy link
Contributor

@logonoff: This PR has been marked as verified by yapei.

In response to this:

rebase

/verified by yapei

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@vojtechszocs
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 5, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: logonoff, vojtechszocs

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 9dcc55d and 2 for PR HEAD 77967b5 in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 6, 2025

@logonoff: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-gcp-console 77967b5 link true /test e2e-gcp-console

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD c8d3ac2 and 1 for PR HEAD 77967b5 in total

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/dashboard Related to dashboard component/sdk Related to console-plugin-sdk component/shared Related to console-shared component/topology Related to topology docs-approved Signifies that Docs has signed off on this PR hacktoberfest-accepted jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants