Repository navigation
pm-stack: Project pool graph edges contract (#2399, part 1 of #1122) - #2744
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
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. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 22c1432d31
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| type | ||
| content { | ||
| ... on Issue { number title state url repository { nameWithOwner } updatedAt author { login } labels(first: 20) { nodes { name } } } | ||
| ... on Issue { number title state url repository { nameWithOwner } updatedAt author { login } labels(first: 20) { nodes { name } } parent { number url repository { nameWithOwner } } blockedBy(first: 10) { nodes { number url repository { nameWithOwner } } } blocking(first: 10) { nodes { number url repository { nameWithOwner } } } } |
There was a problem hiding this comment.
Collect every supported dependency edge
When an issue has more than ten blockers or blocked issues, blockedBy(first: 10) and blocking(first: 10) silently discard the remaining relationships. Neither connection requests pagination metadata, and fetchProjectPool only paginates Project items, so the feed publishes incomplete dependency arrays without indicating truncation. GitHub supports up to 50 issues per relationship type; request that supported maximum or paginate both connections so the graph contract preserves all dependencies.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 568ffa3: both dependency connections now request GitHub's supported maximum — blockedBy(first: 50) and blocking(first: 50) in the Project pool GraphQL read (pm-stack/aggregator/src/projects.ts) — so no supported dependency edge is silently truncated. Added a regression test asserting both limits in PROJECT_QUERY (test/projects.test.ts); targeted tests pass on the laptop worktree: projects + feed suites 16/16.
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Part 1 of the #1122 split (issue #2399, queue task 3572): the Project pool graph-edges contract. Weighted rendering is part 2 (#2400), not in this PR.
Collector (
src/projects.ts): the Project GraphQL read now requests sub-issueparent,blockedBy, andblockingedges for issue items; the parser maps them to canonicalowner/repo#123refs, andresolveEpicRefsderives epic membership by walking parent chains within the fetched pool to the nearest item whose Project Kind is "Epic" (cycle-safe; never invents membership when the chain leaves the pool).Model (
src/model.ts):ProjectPoolItemgainsparentRef?,blockedBy?,blocks?,epicRef?— all absence-friendly: a missing edge means GitHub has none, never an error. Issue-only; PRs and drafts never carry them.Feed check (
src/feed.ts,src/sources/live.ts): one shared predicate (isProjectPoolItem) gates the collector parse, the feed validation, and the live source's fail-soft read (poolFromFeed), so collector and feed check cannot drift. Malformed edges fail the item with an index diagnosis; a bad item drops individually, never the pool.Tests: collector fixture carrying parent/blocked-by/blocks/epic edges + epic-resolution and cycle cases (
test/projects.test.ts), and feed-gate tests for graphed, edgeless, and malformed shapes (test/feed.test.ts, new).Local verification (laptop): targeted suites 15/15 pass; full aggregator suite 507 pass with 7 failures that are identical on the untouched primary clone (pre-existing page-manifest failures, unrelated). Part 2 (#2400) is unblocked once this lands; #1122 closes only when both parts land.
Need help on this PR? Tag
@codesmith-botwith what you need.