You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): the Checks filter narrows loaded pull requests right away - #44138
When Filters → Checks → Passing is picked (or checks:passing typed) on the web Pull Requests page, failing and pending rows stay listed until the host answers instead of narrowing at once.
Draft, review, label and author filters already narrow the loaded rows while the host answers; matchesPullRequestFilters never checks filters.checks.
Change
matchesPullRequestFilters (apps/web/src/components/pullRequest/pullRequestList.logic.ts) now checks filters.checks (3 lines): a row passes when the filter is unset, its checksState is unknown, or it matches. That is the rule of the server's matchesRowFilters (PullRequestService.ts) and mobile (pullRequestList.ts), so hosts without check state keep their rows.
Scope
Bug fix (wrong data: rows contradicting the active filter). Small fix of an obvious bug, no issue.
Verification
An AI agent ran each check below.
Open Pull requests on Linux with passing, failing, and pending PRs.
Pick Filters → Checks → Passing (or type checks:passing), then close the menu.
While the host answer loads, only passing rows stay (base also keeps failing and pending rows).
Checks: Passing is on, but failing #25 and #22 and pending #23 stay listed while the host answer is pending.
Checks: Passing is on, and only passing #24 and #21 are listed while the host answer is pending.
Once the host answers, both list #24/#21. vp run scenarios:prove (local scenario, not in this PR; fixture GitHub server, search held) exited 0: base 56dbca3bc5 failed (2 failing/pending rows, expected 0), head 9548369166 passed. Unit (it.each): base 2 failed | 49 passed (51) (got [1, 2, 3, 4]), head 51 passed (51); vp run check:changed passes. Green main8124f2e973 still shows the bug; with the fix merged locally onto it (unpushed): 2 files / 74 passed, the menu filter lists #24/#21 and typed checks:failing lists #25/#22 while the answer loads.
Reviewing files that changed from the base of the PR and between 9548369 and 902fcfa.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The pull request adds checks-state filtering to matchesPullRequestFilters. Rows with unknown checks state remain included. Parameterized tests cover the passing and failing filters.
Changes: Checks-state filtering
Layer / File(s)
Summary
Filter behavior and coverage apps/web/src/components/pullRequest/pullRequestList.logic.ts, apps/web/src/components/pullRequest/pullRequestList.logic.test.ts
When a checks filter is set, rows pass if their checks state is unknown or matches the requested value. Tests cover the passing and failing filters, including rows with other explicit states.
The Checks filter now narrows already-loaded pull requests immediately while keeping rows with unknown check state. The change is small and covered by tests, and no merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the change: the web Checks filter should narrow already-loaded pull requests immediately. The summary confirms that matchesPullRequestFilters now checks filters.checks while keeping ro…
Description check
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section explains the bug and expected behavior. The Change section explains the 3-line fix a…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the change: the web Checks filter should narrow already-loaded pull requests immediately. The summary confirms that matchesPullRequestFilters now checks filters.checks while keeping rows with unknown check state. The title is specific, follows a conventional commit format, and matches the main change.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section explains the bug and expected behavior. The Change section explains the 3-line fix and why unknown check state rows are kept. The Scope section states this is a bug fix, and gives a reason for having no issue. The Verification section gives focused unit test results, a scenario proof, and screenshots, and it lists what was not checked (mobile, desktop, real github.com). It also names the AI agent and model, as the template asks. The description is complete.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Real web app, Chromium, 1280×800, light theme, fresh isolated state and four synthetic PRs. Select Filters → Checks → Passing with filtered requests held; then reopen unfiltered and enter checks:failing with requests held again. Base retains known nonmatching rows. Head immediately hides them and retains unknown rows. scenarios:prove exited 0.
…ingdotgg#44138)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
(cherry picked from commit 7556bb6)
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
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
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.
Problem
When Filters → Checks → Passing is picked (or
checks:passingtyped) on the web Pull Requests page, failing and pending rows stay listed until the host answers instead of narrowing at once.Draft, review, label and author filters already narrow the loaded rows while the host answers;
matchesPullRequestFiltersnever checksfilters.checks.Change
matchesPullRequestFilters(apps/web/src/components/pullRequest/pullRequestList.logic.ts) now checksfilters.checks(3 lines): a row passes when the filter is unset, itschecksStateis unknown, or it matches. That is the rule of the server'smatchesRowFilters(PullRequestService.ts) and mobile (pullRequestList.ts), so hosts without check state keep their rows.Scope
Bug fix (wrong data: rows contradicting the active filter). Small fix of an obvious bug, no issue.
Verification
An AI agent ran each check below.
checks:passing), then close the menu.status:searches.Checks: Passing is on, but failing #25 and #22 and pending #23 stay listed while the host answer is pending.
Checks: Passing is on, and only passing #24 and #21 are listed while the host answer is pending.
Once the host answers, both list #24/#21.
vp run scenarios:prove(local scenario, not in this PR; fixture GitHub server, search held) exited 0: base56dbca3bc5failed (2 failing/pending rows, expected 0), head9548369166passed. Unit (it.each): base2 failed | 49 passed (51)(got[1, 2, 3, 4]), head51 passed (51);vp run check:changedpasses. Greenmain8124f2e973still shows the bug; with the fix merged locally onto it (unpushed): 2 files / 74 passed, the menu filter lists #24/#21 and typedchecks:failinglists #25/#22 while the answer loads.github.com(stand-in used).Unit test and scenario proof output (base vs head)
Unit tests — 56dbca3bc5:
Unit tests — 9548369166:
Scenario proof (
vp run scenarios:prove) — 56dbca3bc5 vs 9548369166:Generated with Gemini 4 Neon in T3 Code Nightly