CONSOLE-5065: Plugin runtime init code tweaks#16816
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@vojtechszocs: This pull request references CONSOLE-5065 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 "5.0.0" version, but no target version was set. DetailsIn response to this:
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughConsole plugin initialization now exposes the shared scope as ChangesConsole plugin initialization
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant StaticPlugins
participant PluginStore
participant DynamicPluginInitializer
StaticPlugins->>PluginStore: Start local plugin loads concurrently
PluginStore-->>StaticPlugins: Settle loading promises
StaticPlugins->>DynamicPluginInitializer: Initialize after all loads settle
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@frontend/public/plugins.ts`:
- Around line 134-137: Update the static plugin loading flow around Promise.all
and initConsolePlugins so one rejected pluginStore.loadPlugin call cannot
prevent dynamic initialization. Use Promise.allSettled or handle each load
failure individually, preserve error logging for failed static plugins, and
ensure initConsolePlugins(pluginStore) runs after all static load attempts
complete.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 4d8d77f3-fab2-4f90-bd5b-179994db0f32
📒 Files selected for processing (4)
frontend/.eslintrc.jsfrontend/@types/console/window.d.tsfrontend/packages/console-dynamic-plugin-sdk/src/runtime/plugin-init.tsfrontend/public/plugins.ts
|
tech debt: /label px-approved |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Scheduling tests matching the |
d97b8f2 to
31878a9
Compare
|
New changes are detected. LGTM label has been removed. |
Minor improvements to Console plugin runtime init code
windowglobalwebpackSharedScoperenamed topluginSharedScopeSummary by CodeRabbit