Update redux store with default plugins from CR without refreshing dashboard #20960
Labels
area/dashboard
kind/enhancement
A feature request - must adhere to the feature request template.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
severity/P2
Has a minor but important impact to the usage or development of the system.
sprint/next
Is your enhancement related to a problem? Please describe
From eclipse-che/che-dashboard#426, the default DevWorkspace plugins in the Redux store are only set on the preload phase (here). As a result, changes to the default plugins list (ie.
server.workspacesDefaultPugins
in the Che CR) are only updated in the Redux store when refreshing (F5) the Che dashboard.It would be great if the default plugins are updated in the Redux store when they are changed in the Che CR without having to refresh the dashboard.
Describe the solution you'd like
Use an approach similar to watching changes: https://github.com/eclipse-che/che-dashboard/blob/main/packages/dashboard-frontend/src/services/bootstrap/PreloadData.ts#L115
Add a function similar to watchInNamespace from
workspace-api.ts
, to serverConfigApi.ts to watch for changes toserver.workspacesDefaultPugins
in the Che CR.Additional context
Related issue: #20090
Related PR: eclipse-che/che-dashboard#426
The text was updated successfully, but these errors were encountered: