OU-1409: feat: align proposal url with ols detail view, check multiple namespaces for proposals#1044
Conversation
…ces for proposals Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
|
@jgbernalp: This pull request references OU-1409 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 task 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 YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
WalkthroughThe proposal-checking hook now queries both the default and alert-specific namespaces, filtering results by fingerprint instead of full alert matching. AlertTableRow derives its investigation URL from the first returned proposal via a new local helper, and the previously exported getProposalsUrl helper was removed. ChangesProposal fetching and URL flow
Estimated code review effort: 2 (Simple) | ~15 minutes Sequence Diagram(s)sequenceDiagram
participant AlertTableRow
participant useProposalCheck
participant K8sAPI
AlertTableRow->>useProposalCheck: useProposalCheck(alert)
useProposalCheck->>K8sAPI: query proposals(PROPOSAL_NAMESPACE)
alt alert namespace differs
useProposalCheck->>K8sAPI: query proposals(alertNamespace)
end
K8sAPI-->>useProposalCheck: proposal lists
useProposalCheck->>useProposalCheck: filter by matchesFp(fingerprint)
useProposalCheck-->>AlertTableRow: proposals, isFetching, isError
AlertTableRow->>AlertTableRow: getProposalUrl(namespace, proposals[0].name)
🚥 Pre-merge checks | ✅ 5 | ❌ 10❌ Failed checks (10 inconclusive)
✅ Passed checks (5 passed)
✨ 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 |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jgbernalp, PeterYurkovich 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 |
|
/test e2e-monitoring |
|
@jgbernalp: 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. |
This PR:
Summary by CodeRabbit