Skip to content

fix(client-runtime): keep inherited qualifier values as PR search text - #28095

Open
Motaghi wants to merge 1 commit into
pingdotgg:mainfrom
Motaghi:behmot/pr-query-own-filter-values-20261031
Open

Motaghi wants to merge 1 commit into
pingdotgg:mainfrom
Motaghi:behmot/pr-query-own-filter-values-20261031

Conversation

@Motaghi

@Motaghi Motaghi commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Problem

Entering review:constructor or checks:__proto__ in PR search removes the literal token and produces a filter containing an inherited object property. That filter violates the existing request contract. Web and mobile use the same parser.

Change

Require each review/checks value to be an own entry in its lookup table. Unknown values retain their original text, while valid spellings, aliases, negation and precedence keep their existing behavior. This is a small correction to the existing unknown-value fallback.

Scope and approval

This is a small, directly reproducible correction to the existing unknown-qualifier fallback, submitted under the focused obvious-bug exception in CONTRIBUTING.md. It adds no filter, setting or product default.

Verification

Found by source inspection and reproduced on base 9b1d351ba0f6, using macOS arm64 and Node 26.12.1. Eight new parser cases failed before the fix while all 17 existing cases passed. All 25 pass afterward.

vp run check:changed --concurrency 1 passes on the two changed files: formatting, lint, both knip steps, typechecks of seven affected packages, and the focused test file. Independent QA also exercised 595 behavior cases and 12 schema rejection controls. Full repository suites and build were not run, following the repository's scoped-check policy. Real browser, native-client and live RPC execution were not exercised.

Fresh validation on fe5f7f159ff4037fdea1e4fc69a56788cc46f132 against main 2359643cffa6ba9ee84d6f2694b935de54a8013e: source review found no issues; parser, contract and mobile PR-list tests and base/target diagnostics passed. Fresh formatting, lint, both Knip scans and typechecks for seven affected packages passed with no tracked changes. The no-mistakes run completed with an explicit exception for unavailable live-client validation; this is not a clean live Test pass.

Models and harnesses: Claude Sonnet 5.5 through T3 Code's Claude Agent harness; GPT-6.1-sol through T3 Code's Codex harness.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Oct 31, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at fe5f7f1

Macroscope's review found this PR approvable — PR search now preserves inherited property names as literal text rather than interpreting them as review or checks filters. Recognized qualifiers and product defaults remain unchanged.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between eef35b0 and fe5f7f1.

Files selected for processing: 2
  • packages/client-runtime/src/pullRequestQuery.test.ts
  • packages/client-runtime/src/pullRequestQuery.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The pull request updates parsePullRequestQuery to reject inherited property names as review and checks qualifier values. New tests cover constructor and __proto__, including mixed-case forms.

Changes: Query qualifier validation

Layer / File(s) Summary
Own-property checks and regression tests
packages/client-runtime/src/pullRequestQuery.ts, packages/client-runtime/src/pullRequestQuery.test.ts
Review and checks qualifier parsing accepts only own lookup-table properties. Tests verify that prototype-like values remain query text and produce no filters.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested labels: bugfix, size:XS

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to fe5f7

No merge-blocking risk was identified; the parser change is ready to merge.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title is concise, follows the repository's conventional format, and clearly describes the main parser fix for inherited qualifier values.
Description check Passed The description includes all required sections and provides a clear problem statement, implementation details, scope justification, verification results, limitations, and tool information.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant