COO-1650: Troubleshooting panel not updated by internal URL changes.#203
COO-1650: Troubleshooting panel not updated by internal URL changes.#203alanconway wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
@alanconway: This pull request references COO-1650 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 bug to target the "4.22.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: Pro Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughReplaces react-router-dom-v5-compat location usage with a custom Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alanconway 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 |
|
@alanconway: This pull request references COO-1650 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 bug to target the "4.22.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. |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@web/src/components/Korrel8rPanel.tsx`:
- Around line 85-90: The two hardcoded user-facing strings in Korrel8rPanel (the
empty-query branch using queryStr and the later call around onResult at the
second location) must be localized: replace literal titles/messages passed into
onResult with calls to the i18n translation function (e.g., t('...')) and use
appropriate translation keys, ensuring Korrel8rPanel imports/uses the same
translation hook or function your app uses (so wrap the 'No Correlation' title
and the 'Use the [Focus] button...' message, and the similar strings at the
second onResult call, with t(...)). Ensure the translation keys are descriptive
and consistent with existing keys in your project.
- Around line 104-108: The check response?.nodes treats empty arrays as truthy
so an empty graph is rendered; update the condition in Korrel8rPanel (the branch
where onResult is called) to treat empty arrays as empty results (e.g., check
Array.isArray(response.nodes) && response.nodes.length > 0) and call onResult({
graph: new korrel8r.Graph(response) }) only when nodes are non-empty; otherwise
call onResult with translated strings (use the component's i18n function, e.g.,
t('Empty Graph') and t('No correlation results were found')) so the empty-state
message is localized.
ℹ️ Review info
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to data retention organization setting
📒 Files selected for processing (3)
web/src/components/Korrel8rPanel.tsxweb/src/hooks/useLocationQuery.tsweb/src/hooks/useQueryParams.ts
💤 Files with no reviewable changes (1)
- web/src/hooks/useQueryParams.ts
|
/label qe-approved |
|
@alanconway: This pull request references COO-1650 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 bug to target the "4.22.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. |
e56417c to
c3eeb08
Compare
The metric page "Insert example query" button changes the URL from inside the browser, these changes are not picked up by useLocation. Extended the useLocationQuery hook to notice these changes.
c3eeb08 to
6803620
Compare
|
@alanconway: This pull request references COO-1650 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 bug to target the "4.22.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. |
|
@alanconway: all tests passed! 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. |
The metric page "Insert example query" button changes the URL from inside the browser,
these changes are not picked up by useLocation.
Extended the useLocationQuery hook to notice these changes.
/cherry-pick release-0.4
Summary by CodeRabbit
Bug Fixes
Improvements
Localization