Repository navigation
Filter runs by bug id in the hackbot API - #7442
Open
ayoubdiourin7 wants to merge 6 commits into
Open
ayoubdiourin7 wants to merge 6 commits into
ayoubdiourin7 wants to merge 6 commits into
Conversation
ayoubdiourin7
force-pushed
the
ayoubdiourin7/bug-2091030-add-the-ability-to-filter-runs-based
branch
from
November 10, 2026 07:52
f866239 to
2e79718
Compare
suhaibmujahid
approved these changes
Dec 2, 2026
suhaibmujahid
requested changes
Dec 2, 2026
| .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()]) |
Member
There was a problem hiding this comment.
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
force-pushed
the
ayoubdiourin7/bug-2091030-add-the-ability-to-filter-runs-based
branch
from
December 2, 2026 14:38
26fc98b to
059444f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7440