Skip to content

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

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

ayoubdiourin7 wants to merge 6 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!

.order_by(Run.created_at.desc(), Run.run_id.desc())
)
result = await db.execute(stmt)
return BugRuns(runs=[RunDoc.model_validate(r) for r in result.scalars()])

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.

I just noticed that we return the runs as they are: we might want to accommodate the expected data here, especially origin. See https://github.com/mozilla/bmo/pull/2829/changes#diff-ab09301ff998f2ccac548b78b3934dcc02b3faf312415ecbdf09aaf850994946R180-R192

The origin is guessed on Bugzilla side: https://github.com/mozilla/bmo/pull/2829/changes#diff-ab09301ff998f2ccac548b78b3934dcc02b3faf312415ecbdf09aaf850994946R160-R172
I think we should do it here instead.

@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

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