Skip to content

pm-stack: split the projector read path out of live.ts (#12671) - #12759

Closed
dezren39 wants to merge 1 commit into
mainfrom
claude/split-live-ts
Closed

dezren39 wants to merge 1 commit into
mainfrom
claude/split-live-ts

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Before:

The aggregator's sources/live.ts was 2532 lines. It sat on the production line guard's grandfather list for #12671.

After:

live.ts is 2206 lines and is off the grandfather list. Only render.ts and server.ts remain grandfathered for #12671.

How:

  • The projector read path moves unchanged to sources/projector.ts: row mapping, chunked item and comment fetches, LatestCommentsCache and registry links.
  • The shared getJson helper moves to sources/http.ts.
  • live.ts re-exports every public name, so server.ts and the tests keep importing from live.ts.
  • Ran the aggregator tests that touch these names: 169 pass across 8 files. The production line guard and its contract tests pass.

Refs #12671


Generated by Claude Code


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

sources/live.ts was 2532 lines, grandfathered past the 2500-line
production limit. The projector section (row mapping, chunked fetches,
the latest-comments cache, registry links) moves to sources/projector.ts
and the shared getJson helper to sources/http.ts. live.ts re-exports
every public name, so importers are unchanged; it is now 2206 lines and
leaves the grandfather list.

Refs #12671

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 23, 2026 01:35
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 01:35
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b38273d7-5ade-4bb6-b959-6b9567735939
Commits

Reviewing files that changed from the base of the PR and between a9496cb and 4701afa.

Files selected for processing: 4

  • .github/scripts/check-production-line-limit.sh
  • pm-stack/aggregator/src/sources/http.ts
  • pm-stack/aggregator/src/sources/live.ts
  • pm-stack/aggregator/src/sources/projector.ts
  • 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

@dezren39

Copy link
Copy Markdown
Member Author

Superseded — content landed via PR #13154 (Lane OY shepherd, 2026-11-23).

This PR's single commit (4701afae6fda) was cherry-picked onto current main as 0fc51d1dfd6b (original authorship preserved) and merged via PR #13154 (merge 356e9275d23e). The only conflict was the line-guard script: the cherry-pick keeps PR #13058's re-pointed grandfather entries for render.ts (#13051) and server.ts (#13052) and removes the sources/live.ts entry, exactly this PR's intent.

Verification on the rebased branch: line-guard output differs from pristine main only by the removed live.ts grandfather warning (the three OVER LIMIT errors are the pre-existing pkgs/id files, #13057); guard contract tests all pass; aggregator tests importing sources/live (27 files) 295 pass / 0 fail; tsc --noEmit clean. #13053 is closed by the merge; umbrella #12671 stays open for #13051/#13052.

Closing this PR as superseded — thank you for the implementation; it went in unchanged apart from the rebase.

@dezren39 dezren39 closed this Nov 23, 2026
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.

2 participants