SREP-4720: fix stale jira custom fields#929
Conversation
|
@rolandmkunkel: This pull request references SREP-4720 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: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
WalkthroughUpdates the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@rolandmkunkel: 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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #929 +/- ##
==========================================
- Coverage 54.00% 53.97% -0.04%
==========================================
Files 88 88
Lines 6662 6662
==========================================
- Hits 3598 3596 -2
- Misses 2596 2597 +1
- Partials 468 469 +1
🚀 New features to boost your workflow:
|
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bergmannf, MitaliBhalla, rolandmkunkel 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 |
What this PR does / Why we need it?
After the migration to Atlassian Cloud, the Jira custom field ID for Cluster ID (
customfield_12316349) no longer exists. TheformatIssue()function in the OHSS service reads the Cluster ID from this field, which always returns null/empty. This means any code relying onOHSSIssue.ClusterIDalwaysgets a blank value.
This PR updates the constant to the correct field ID (
customfield_10852) as confirmed via the Jira REST API.A corresponding fix for osdctl (which has the same issue plus two additional stale field IDs) will be submitted separately.
Which Jira/Github issue(s) does this PR fix?
Special notes for your reviewer
The old field ID
customfield_12316349became stale after the Atlassian Cloud migration. Verified against multiple OHSS tickets (OHSS-52710, OHSS-53044) that the old ID returns null while the new ID (customfield_10852) returns the correct Cluster ID value.JQL-based searches are not affected by this bug because they use the human-readable field name
"Cluster ID", which Jira resolves correctly at query time. Only direct field access via the API response is broken.Unit Test Coverage
Pre-checks (if applicable)
Summary by CodeRabbit