Skip to content

Filter runs by bug id in the hackbot API - #7442

Open
ayoubdiourin7 wants to merge 9 commits into
mozilla:masterfrom
ayoubdiourin7:ayoubdiourin7/bug-2091030-add-the-ability-to-filter-runs-based
Open

ayoubdiourin7 wants to merge 9 commits into
mozilla:masterfrom
ayoubdiourin7:ayoubdiourin7/bug-2091030-add-the-ability-to-filter-runs-based

Conversation

@ayoubdiourin7

Copy link
Copy Markdown
Contributor

Fixes #7440

@ayoubdiourin7
ayoubdiourin7 requested a review from a team as a code owner November 9, 2026 19:07
@ayoubdiourin7
ayoubdiourin7 force-pushed the ayoubdiourin7/bug-2091030-add-the-ability-to-filter-runs-based branch from f866239 to 2e79718 Compare November 10, 2026 07:52

@suhaibmujahid suhaibmujahid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Thank you!

@ayoubdiourin7
ayoubdiourin7 force-pushed the ayoubdiourin7/bug-2091030-add-the-ability-to-filter-runs-based branch from 26fc98b to 059444f Compare December 2, 2026 14:38
dklawren added a commit to dklawren/bmo that referenced this pull request Dec 2, 2026
The Hackbot API's GET /bugs/{bug_id}/runs (mozilla/ai-dev#7442) now
returns slim BugRun objects: bug_id and revision_id are top-level,
inputs, requested_by, requested_via and dedupe_key are gone, and the
run's source and requester are included.

- Read the new fields, and still drop any run that is not for this bug.
- Show Hackbot's source as the origin instead of guessing it from
  dedupe keys and service accounts.
- Show the requester as plain text, with an email's domain removed.
- Default hackbot_api_url to https://hackbot-api.moz.tools/.
- Bump the run cache key to v2 for the new trimmed shape.

@suhaibmujahid suhaibmujahid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please test it on dev?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug 2091030 - Add the ability to filter runs based on bug id in the hackbot API

2 participants