Skip to content

fix(CI): update triage periodic to jira cloud#19442

Merged
janisz merged 1 commit intomasterfrom
fix_triage_on_call
Mar 17, 2026
Merged

fix(CI): update triage periodic to jira cloud#19442
janisz merged 1 commit intomasterfrom
fix_triage_on_call

Conversation

@janisz
Copy link
Contributor

@janisz janisz commented Mar 16, 2026

Description

We need to upgrade to latest JIRA API. It removes searching with filter so we need to get jql for a filter and search. There is an option to get approximated search count but in our case it should be single digit so it should be fine to call the API and count objects.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

Run locally with different filters that returns some data.

Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
@janisz janisz requested a review from a team as a code owner March 16, 2026 16:52
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • The total_issues_in_filter function now pulls all issues (with maxResults=5000) and counts them locally; consider either using the approximate count API you referenced or implementing pagination/maxResults=0 with .total to avoid silently truncating counts when filters exceed the chosen limit.
  • When invoking total_issues_in_filter $curr_filter and $prev_filter, it’s safer to quote the filter arguments (e.g., "$curr_filter") to avoid unexpected word splitting if the IDs are ever replaced by JQL or non-numeric values.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The `total_issues_in_filter` function now pulls all issues (with `maxResults=5000`) and counts them locally; consider either using the approximate count API you referenced or implementing pagination/`maxResults=0` with `.total` to avoid silently truncating counts when filters exceed the chosen limit.
- When invoking `total_issues_in_filter $curr_filter` and `$prev_filter`, it’s safer to quote the filter arguments (e.g., `"$curr_filter"`) to avoid unexpected word splitting if the IDs are ever replaced by JQL or non-numeric values.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@janisz janisz requested a review from rukletsov March 16, 2026 16:57
@rhacs-bot
Copy link
Contributor

Images are ready for the commit at 45d2cbe.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-333-g45d2cbeb3c.

@janisz
Copy link
Contributor Author

janisz commented Mar 17, 2026

/dog

@janisz janisz enabled auto-merge (squash) March 17, 2026 10:50
@codecov
Copy link

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.55%. Comparing base (4953071) to head (45d2cbe).
⚠️ Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19442      +/-   ##
==========================================
- Coverage   49.73%   49.55%   -0.18%     
==========================================
  Files        2703     2711       +8     
  Lines      204040   204849     +809     
==========================================
+ Hits       101482   101522      +40     
- Misses      94982    95746     +764     
- Partials     7576     7581       +5     
Flag Coverage Δ
go-unit-tests 49.55% <ø> (-0.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@janisz janisz merged commit 2654a0e into master Mar 17, 2026
109 of 110 checks passed
@janisz janisz deleted the fix_triage_on_call branch March 17, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants