Skip to content

Share repository assignee reads across task rows - #35564

Merged
OrcaWin merged 2 commits into
mainfrom
OrcaWin/github-assignee-row-reuse
Oct 29, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
OrcaWin/github-assignee-row-reuse

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​263 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​260
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​34 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​22

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.

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 245bc589-f4d2-4e12-a590-4a5edc6d6c65
Commits

Reviewing files that changed from the base of the PR and between 18c4e6b and e8743c0.

Files selected for processing: 7
  • src/renderer/src/components/github/PRAssigneesPanel.metadata.test.tsx
  • src/renderer/src/components/github/PRAssigneesPanel.tsx
  • src/renderer/src/hooks/useGitHubSlugMetadata.assignee-reuse.test.tsx
  • src/renderer/src/hooks/useGitHubSlugMetadata.test.tsx
  • src/renderer/src/hooks/useGitHubSlugMetadata.ts
  • src/renderer/src/hooks/useMetadataListRequest.test.tsx
  • src/renderer/src/hooks/useMetadataListRequest.ts

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: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning 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 Warning 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 Passed checks: 3 passed
Check name Status Explanation
Title check Passed 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 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.
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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issue was found.

Summary

Shares repository assignee reads across rows while keeping each row’s extra users separate.

  • Rows share repository assignee lists without sharing their extra users.
  • The PR assignee panel uses one metadata source at a time.

Reviews (2) · Last reviewed commit: "test(github): trim redundant cases" · Reviewed by Greptile

@OrcaWin
OrcaWin merged commit 22e1af1 into main Oct 29, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant