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(github-project): show linked PRs and sub-issue progress - #34185
GitHub Project views offered “Linked pull requests” and “Sub-issues progress” columns, but populated cells stayed blank because the items query, normalization and renderer did not read either value.
Desktop Project cells now show up to ten linked PR numbers plus the remaining count, and completed/total sub-issues with their percentage. Both values arrive through the existing paginated items query, with no per-item request. Missing values and zero sub-issues stay blank. Built-in column sorting/grouping and phone formatting keep their existing behavior.
The existing owner/host capability probe remembers each unsupported optional selection independently. An older server can omit an unsupported relation while keeping the others, and only an unsupported Parent issue selection triggers the existing parent warning. Named Enterprise hosts use the same capability checks. Authentication, quota and network failures retain their existing errors. Intended compatibility behavior: the bounded in-memory cache re-probes after eviction or process reload, as before.
Both relations are optional row content. Older renderers receive no new field-value kind, and newer renderers tolerate older hosts omitting the properties. The nested PR connection remains bounded at ten entries. A schema probe makes at most four first-page attempts, each retry removing a rejected selection.
Table loading preserves nullable field-value nodes and allows independent requests once every optional selection is already known unsupported. The implementation reuses the existing normalization and capability cache, with no new saved state. The final production diff is 346 changed lines.
Validation: 122 named root tests and 30 mobile tests passed locally. Coverage includes actual query → normalization → rendered cells, partial schemas, unrelated failures, null nodes, true older row payloads, local/environment store and cache readers, optimistic patch preservation, RPC pass-through, shared sort/group and mobile schema/projection/display. A 50/500-row contract verifies paginated request counts and linear PR reads. The cross-layer integration suite runs in the existing unit-test program; after relocation, all 41 tests in the three affected files passed. CI is the lint/typecheck gate.
Visual evidence uses the real ProjectCell component fed through production normalization in dark and light fixtures. The QA account lacked the read:project scope, so no live Project or whole-app validation is claimed. The fixture shows populated, complete and absent values; both themes had zero page/console errors. The screenshot and full-loop status are in the review comment.
Full path: optional host/renderer payload and capability failure handling across versions. Main was merged once before final CI; the PR’s production files were unchanged by that merge.
Builds on #12821 by @innocarpe, with contributor authorship preserved.
The project-item query now selects linked pull requests and sub-issue progress, and it omits unsupported optional fields based on cached per-owner capability data. Normalization adds these relation values to project rows, and ProjectCell renders their counts and progress. Tests cover query retries, pagination, rendering, transport, caching, mobile projection, and field mutations.
Priority: Normal
Merge Risk: Moderate · previous review ab14a
The added scale contract test can fail deterministically; clone each row’s nested PR nodes before merging.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surv…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the primary change: displaying linked pull requests and sub-issue progress in GitHub Project views.
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.
Description check
The description is detailed and covers the user impact, implementation, rationale, linked issues, testing, compatibility, performance, and visual evidence. It does not follow the template headings or …
Full details: Description check
Explanation
The description is detailed and covers the user impact, implementation, rationale, linked issues, testing, compatibility, performance, and visual evidence. It does not follow the template headings or include the checklist items, explicit AI disclosure, or a direct Fixes # reference, but the required information is mostly present.
Full details: Docstring Coverage
Explanation
Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 20 functions across 17 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.
68-75: Trivial · Performance & Scalability · Low value
Drop the unused title and url fields from the linked-PR selection.
pullRequests(first:10) requests title and url for each linked PR. ProjectCell renders only #${pr.number}, and no other reader in src uses those fields. Each fetched item carries payload that the row never displays.
Suggested fix
pullRequests(first:10) {
totalCount
- nodes { number title url }+ nodes { number }
}
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
GitHub Project columns for linked pull requests and sub-issue progress stayed blank because the items query and cell pipeline did not read the values. Desktop cells now show PR numbers with a remaining count and completed/total sub-issues with a percentage. Missing data stays blank, and older schemas keep every relation they support.
The full review loop completed two production review rounds and a fresh KEEP ruling after test-validation fixes. It fixed a legal null field-value node crashing the table and unnecessary waiting when every optional selection was already known unsupported. Safe cuts removed duplicate dispatch, unused query metadata and cache wrappers. No open production findings remain. Existing phone formatting and built-in sorting/grouping are unchanged; those are outside this desktop rendering fix.
Verified: 122 named root tests and 30 mobile tests passed locally, including query → normalization → real cells, independent schema fallback, legacy rows, local/environment store/cache reads, optimistic patches, RPC pass-through and mobile schema/projection/display. The 50/500-row contract checks pagination, 1/5 page requests and linear PR reads. Source readiness passed on 1c6cdc6874620c7d9703f9bb04bdf0cc7c2dee3a. Final CI passed on c6da7969d13bba77beffcb0b8296fb6b1912b211. Both main merges were clean. The first left the PR’s production files unchanged; the CI-fix merge left all 17 files in this PR’s change unchanged. Test-only CI cleanup combines duplicate imports, uses checked payload types, moves cross-layer tests into the existing test program, and removes an unused React binding. The affected named tests pass (41 after the final move).
For Brennan’s review
These are branch screenshots of the real ProjectCell fed through production normalization, using a component fixture. The QA account lacked read:project, so no live Project or whole-app result is claimed. Populated, fully complete and absent values passed in both themes with zero page/console errors.
Screenshot head: 07bd34b7d28d0ddd1ce8292c6047726ddd0bc46f. Later 5f5735dbc5147a8e1644d7f90981fa75265a27ed changes the tests-row null-input normalization and unsupported-fetch flows, covered by their regressions, and leaves cell appearance unchanged. 1c6cdc6874620c7d9703f9bb04bdf0cc7c2dee3a adds tests only. Main merge 52957c00768e8fe50223a385232c9749551bc11d and test-only cleanup commits 7a6df0daad0ee67df07201daa4d4677c56eb91ba / fb71713a4a4baf755370dc7252644d7d1f1e8cdc and test-program relocation ab14acb2f2a2bfbaa1cbff8a29f85bdc76d555bb and main CI-fix merge c6da7969d13bba77beffcb0b8296fb6b1912b211 carry this evidence; no required run-row flow changed. The latter merge includes #34202 and resolves the earlier main-branch CI blockers.
Clone the nested PR nodes for each scale-test row.
normalizeLinkedPullRequests reads node.number twice: once for validation and once for copying. The spy also reads node.number before installing its getter. Because { ...item } shares the nested PR nodes, later rows count that pre-read through the getter. The first case records 20 + (count - 1) * 30 reads instead of count * 20, so the assertion fails.
beforeEach and vi.restoreAllMocks() do not restore the mutated fixture nodes, so sharing can also affect the second parameterized case.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
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.
GitHub Project views offered “Linked pull requests” and “Sub-issues progress” columns, but populated cells stayed blank because the items query, normalization and renderer did not read either value.
Desktop Project cells now show up to ten linked PR numbers plus the remaining count, and completed/total sub-issues with their percentage. Both values arrive through the existing paginated items query, with no per-item request. Missing values and zero sub-issues stay blank. Built-in column sorting/grouping and phone formatting keep their existing behavior.
The existing owner/host capability probe remembers each unsupported optional selection independently. An older server can omit an unsupported relation while keeping the others, and only an unsupported Parent issue selection triggers the existing parent warning. Named Enterprise hosts use the same capability checks. Authentication, quota and network failures retain their existing errors. Intended compatibility behavior: the bounded in-memory cache re-probes after eviction or process reload, as before.
Both relations are optional row content. Older renderers receive no new field-value kind, and newer renderers tolerate older hosts omitting the properties. The nested PR connection remains bounded at ten entries. A schema probe makes at most four first-page attempts, each retry removing a rejected selection.
Table loading preserves nullable field-value nodes and allows independent requests once every optional selection is already known unsupported. The implementation reuses the existing normalization and capability cache, with no new saved state. The final production diff is 346 changed lines.
Validation: 122 named root tests and 30 mobile tests passed locally. Coverage includes actual query → normalization → rendered cells, partial schemas, unrelated failures, null nodes, true older row payloads, local/environment store and cache readers, optimistic patch preservation, RPC pass-through, shared sort/group and mobile schema/projection/display. A 50/500-row contract verifies paginated request counts and linear PR reads. The cross-layer integration suite runs in the existing unit-test program; after relocation, all 41 tests in the three affected files passed. CI is the lint/typecheck gate.
Visual evidence uses the real ProjectCell component fed through production normalization in dark and light fixtures. The QA account lacked the read:project scope, so no live Project or whole-app validation is claimed. The fixture shows populated, complete and absent values; both themes had zero page/console errors. The screenshot and full-loop status are in the review comment.
Full path: optional host/renderer payload and capability failure handling across versions. Main was merged once before final CI; the PR’s production files were unchanged by that merge.
Builds on #12821 by @innocarpe, with contributor authorship preserved.
Tracked in #12649
Tracked in STA-3462