Repository navigation
refactor(domain): reuse ordered map appends in index builders - #14548
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] This refactor appears safe to merge; no actionable issues were found. SummaryReplaces 62 inline map-list appends across 49 files with the existing
Reviews (1) · Last reviewed commit: "refactor(domain): reuse ordered map appe..." · Reviewed by Greptile |
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.
Summary
Replace 62 inlined get/set/push blocks with the existing internal
appendToMapListoperation. Each index keeps its own membership criteria, key, value and insertion site. This continues the consolidation in #14538. TheunknownIdsByFamilysite 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.