[release-4.20] OCPBUGS-77037: Fix QueryBrowser import to use SDK path to avoid circular dependency#16222
Conversation
…lar dependency Import QueryBrowser from @console/dynamic-plugin-sdk/src/lib-core instead of @console/shared/src/components/query-browser to break circular imports that cause React error openshift#306 on the Metrics page. Also update the test to import from the same path so Enzyme's find() matches by reference. Co-Authored-By: Claude <noreply@anthropic.com>
|
@Leo6Leo: This pull request references Jira Issue OCPBUGS-77037, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/jira refresh |
|
@Leo6Leo: This pull request references Jira Issue OCPBUGS-77037, which is invalid:
Comment 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. |
|
/jira refresh |
|
@Leo6Leo: This pull request references Jira Issue OCPBUGS-77037, which is invalid:
Comment 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. |
|
/jira refresh |
|
@Leo6Leo: This pull request references Jira Issue OCPBUGS-77037, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
Requesting review from QA contact: 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. |
|
/retest-required |
1 similar comment
|
/retest-required |
/verified by @yapei |
|
@yapei: This PR has been marked as verified by 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Leo6Leo, logonoff 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 |
|
/label backport-risk-assessed |
|
@Leo6Leo: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Summary
QueryBrowserfrom@console/dynamic-plugin-sdk/src/lib-coreinstead of@console/shared/src/components/query-browserto break the circular import that causes React error Add Alert Manager proxy #306 on the Metrics pagefind(QueryBrowser)matches by reference, fixing the 3 test failures inMonitoringDashboardGraph.spec.tsxContext
The automated cherry-pick PR #16040 (from #16016) changed the component import but not the test import, causing a reference mismatch where Enzyme could not find the
QueryBrowsercomponent in the shallow-rendered tree.Test plan
ci/prow/frontendtests pass (the 3 previously failingMonitoringDashboardGraphtests)🤖 Generated with Claude Code