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
Combine PR participants and viewed-file queries - #34842
Opening a PR fetched participants and viewed-file state through separate GraphQL requests. Fetch them together to save one GraphQL request and point per complete context read. Body/head/base metadata stays on its existing cached REST path, preserving its freshness relationship with the cached REST file list.
Isolate participants and viewed files in separately aliased PR selections, so GraphQL null propagation in one cannot discard the other.
Preserve successful partial stdout from nonzero gh exits. Recover unavailable participants with the existing reader; keep failed/incomplete viewed state unavailable.
Later pages select only files, retaining the existing 300-file bound. File patches, conversation reads and detailed checks stay on their existing paths. Cached metadata and the combined GraphQL read each own a semaphore permit; nested client reads remain outside those permits.
No batching wait, new response cache, longer TTL or change to refresh cadence. Existing account, host, WSL/SSH, folder-workspace and mobile contracts are preserved.
Validation:
28 focused tests passed across detail context, viewed files, file-list handling, concurrent loads and Enterprise/remote routing. Includes real null-propagation envelopes, reverse alias failure, partial stdout, pagination, failure recovery, exhausted REST quota and preservation of the 60-second metadata cache.
Replayed four concurrent PR loads against the prior head: the new guard fails with 5 concurrent gh reads despite the four-permit limit. The fix passes with at most 4, returns viewed state, and releases all permits without deadlock.
pnpm check:changed --maxWorkers=2: 19/20 checks passed; the broad affected-test phase timed out at 300 seconds. The five focused suites passed separately. Full CI passed on exact head 07677472453a446fd975f75fa58fb642ecef1160 (run 40764835928), including all five unit shards, relay integration and Linux/Windows packaging. No full local pass is claimed.
Independent Claude review found no actionable regressions and passed all 28 focused tests on this head.
Executed locally on Linux. Native Windows/macOS/WSL/SSH transport checks were not run; execution routing is covered by mocks.
Follow-up to #28778. No UI changes; visual proof is not applicable. No RPC or persisted-data changes.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Walkthrough
Pull-request detail loading now retrieves participants and viewed-file states through a combined GraphQL flow. The flow supports paginated file results, partial GraphQL failures, and participant fallback. Metadata and file reads remain separate concurrent operations. Tests cover retrieval, pagination, rate-limit behavior, execution routing, and detail-loading integration.
Priority: Low
Merge Risk: Minimal · up to 07677
No merge-blocking issue is established; complete the normal checks before merging.
Pre-merge checks: 3 · 2
Failed checks: 2 warnings
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check
The description explains the change, rationale, testing, scope, and platform coverage. It does not follow the required template structure and omits several required sections, including ELI5, explicit …
Rewrite the description using all template headings. Add a plain-language ELI5 section, explicit before/after and mechanism details, the linked issue in the required format, N/A with a reason under Visual Proof, review and compatibility n…
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the primary change: combining PR participant and viewed-file GraphQL queries.
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: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 7 functions across 8 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Full details: Description check
Explanation
The description explains the change, rationale, testing, scope, and platform coverage. It does not follow the required template structure and omits several required sections, including ELI5, explicit What Changed, Why, Linked Issue with Fixes #, Review, Agent skill upstream boundary, Notes, and Checklist confirmations.
Resolution
Rewrite the description using all template headings. Add a plain-language ELI5 section, explicit before/after and mechanism details, the linked issue in the required format, N/A with a reason under Visual Proof, review and compatibility notes, the Agent skill upstream boundary selection, and completed Checklist items. Preserve the existing testing and validation details.
Finishing Touches: 💡 1
📝 Generate docstrings: 💡
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
Opening a PR fetched participants and viewed-file state through separate GraphQL requests. Fetch them together to save one GraphQL request and point per complete context read. Body/head/base metadata stays on its existing cached REST path, preserving its freshness relationship with the cached REST file list.
Validation:
pnpm check:changed --maxWorkers=2: 19/20 checks passed; the broad affected-test phase timed out at 300 seconds. The five focused suites passed separately. Full CI passed on exact head07677472453a446fd975f75fa58fb642ecef1160(run 40764835928), including all five unit shards, relay integration and Linux/Windows packaging. No full local pass is claimed.Follow-up to #28778. No UI changes; visual proof is not applicable. No RPC or persisted-data changes.