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
Share repository assignee reads across task rows - #35564
Opening assignee or reviewer pickers for different rows repeats the same repository-wide assignee read because row-specific current logins are part of its cache key. Cache the base repository list by its existing host/runtime identity and add each row's extra users locally.
Ten sequential row pickers with different current users now make one base API call instead of ten within the existing cache lifetime. Concurrent rows share the in-flight request without sharing their extra users. Changing current users no longer reloads the base list. The PR sidebar also disables its unused path-based source when a slug source is selected, removing a second metadata read on a cold load.
Preserve user names/avatars, sorted seed order, successful empty lists, loading/errors, repository/Enterprise/runtime isolation and auth generation invalidation. Cache TTL, capacity and failure TTL are unchanged; no timers or refresh delays are added. Existing old-host RPC contracts remain intact because seeds were already optional.
Validation: 35 targeted tests pass across six files. Replaying original hook/panel production files reproduces ten base calls instead of one, two on seed edits instead of one, and the unused sidebar source call. Focused routing controls pass. pnpm check:changed --maxWorkers=2 --timeout=6 passed all 21 non-test checks; broad related-test discovery timed out at six minutes without results. Claude independently passed 37 targeted tests and found no actionable issues. No layout or style changes.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
Walkthrough
The metadata request hook now reports the key associated with cached or successfully loaded data. Slug-based assignee requests use owner, repository name, and host as their request identity; seed logins are projected onto matching results. PRAssigneesPanel selects slug-based loading when both slug parts are present and otherwise uses the path-based query.
Priority: Low
Merge Risk: Minimal · up to e8743
Assignee requests now share cached data and avoid an unused sidebar read. No merge-blocking regression was identified.
Pre-merge checks: 3 · 2
Failed checks: 2 warnings
Check name
Status
Explanation
Resolution
Description check
The description follows the repository template's main sections: it has a clear explanation of the change, the mechanism (base list cached by host/runtime identity with row users added locally), the u…
Restructure the description to use the template headings: add an ELI5 section in plain language, a What Changed section with before/after behavior, a Why section that explains why this approach was chosen over alternatives, and a Linked Iss…
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.
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title "Share repository assignee reads across task rows" matches the main change: the base repository assignee list is now cached and shared across row pickers instead of being re-read per row bec…
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 "Share repository assignee reads across task rows" matches the main change: the base repository assignee list is now cached and shared across row pickers instead of being re-read per row because row-specific seed logins were part of the cache key. It is short, specific, and avoids vague terms. The title does not mention the sidebar source change, but that is a secondary aspect and the title does not need to cover every detail.
Full details: Description check
Explanation
The description follows the repository template's main sections: it has a clear explanation of the change, the mechanism (base list cached by host/runtime identity with row users added locally), the user-visible effect (one base API call instead of ten within the cache lifetime), and validation details. However, it does not follow the template headings. The ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing checkboxes, AI Disclosure, and Agent skill upstream boundary sections are missing as labeled sections. The Linked Issue section is absent, and the template requires one for outside contributors. The Visual Proof section is also absent; the description says 'No layout or style changes' but does not write N/A with a reason as the template requires for no-visual changes. The checklist is not filled in. The description covers the substance well, but it is not structured per the template.
Resolution
Restructure the description to use the template headings: add an ELI5 section in plain language, a What Changed section with before/after behavior, a Why section that explains why this approach was chosen over alternatives, and a Linked Issue section with a 'Fixes #<issue>' reference (required for outside contributors). Add a Visual Proof section that says N/A with the reason (no UI or layout change). Complete the Testing section with the platforms tested and check the appropriate boxes. Add the Review, Agent skill upstream boundary, Notes, and Checklist sections, marking each item as done or N/A. Leave the AI Disclosure section filled or remove it according to whether you are a StablyAI team member.
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 4 functions across 7 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
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 assignee or reviewer pickers for different rows repeats the same repository-wide assignee read because row-specific current logins are part of its cache key. Cache the base repository list by its existing host/runtime identity and add each row's extra users locally.
Ten sequential row pickers with different current users now make one base API call instead of ten within the existing cache lifetime. Concurrent rows share the in-flight request without sharing their extra users. Changing current users no longer reloads the base list. The PR sidebar also disables its unused path-based source when a slug source is selected, removing a second metadata read on a cold load.
Preserve user names/avatars, sorted seed order, successful empty lists, loading/errors, repository/Enterprise/runtime isolation and auth generation invalidation. Cache TTL, capacity and failure TTL are unchanged; no timers or refresh delays are added. Existing old-host RPC contracts remain intact because seeds were already optional.
Validation: 35 targeted tests pass across six files. Replaying original hook/panel production files reproduces ten base calls instead of one, two on seed edits instead of one, and the unused sidebar source call. Focused routing controls pass.
pnpm check:changed --maxWorkers=2 --timeout=6passed all 21 non-test checks; broad related-test discovery timed out at six minutes without results. Claude independently passed 37 targeted tests and found no actionable issues. No layout or style changes.