Skip to content

refactor(domain): reuse ordered map appends in index builders - #14548

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/reuse-map-list-appends
Nov 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/reuse-map-list-appends

Conversation

@vincentkoc

Copy link
Copy Markdown
Collaborator

Summary

Replace 62 inlined get/set/push blocks with the existing internal appendToMapList operation. Each index keeps its own membership criteria, key, value and insertion site. This continues the consolidation in #14538. The unknownIdsByFamily site stays with #2092 and #2094, which change its retention policy. The grouping-key changes in #9204 are independent of the append operation.

Verification

Compared every replaced block against its new call in the TypeScript AST. Receiver, key, value and surrounding control flow matched. Across 8,990 appends, insertion order, duplicate values and existing list identities matched. All 584 comparisons through production projections and indexes matched, including 3,761 input-reference controls. Changed files passed formatting and diff checks. Full project checks run in CI.

@vincentkoc
vincentkoc marked this pull request as ready for review November 25, 2026 14:59
@vincentkoc
vincentkoc enabled auto-merge (squash) November 25, 2026 14:59
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T14:59:15.317455Z
We couldn’t complete this review. Comment @codex review to try again.
0c86ca6 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Low impact] This refactor appears safe to merge; no actionable issues were found.

Summary

Replaces 62 inline map-list appends across 49 files with the existing appendToMapList helper.

  • Index builders now share one map-list append operation.

Reviews (1) · Last reviewed commit: "refactor(domain): reuse ordered map appe..." · Reviewed by Greptile

@vincentkoc
vincentkoc merged commit 5cd8658 into main Nov 25, 2026
51 checks passed
@vincentkoc
vincentkoc deleted the refactor/reuse-map-list-appends branch November 25, 2026 15:19
Davmunrey added a commit to Davmunrey/rea that referenced this pull request Nov 26, 2026
Main replaced the hand-written append in the field constant index with
appendToMapList (morluto#14548). The branch keeps that index in
ManagedConstants.ts keyed by the parent token, so it uses the helper
with the token key.
@morluto morluto added the area: domain Domain logic, errors, and pure functions label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants