Skip to content

[claude][vibe] Remove unused SetComplexFormComponentChange - #2462

Merged
myieye merged 1 commit into
developfrom
claude/setcomplexformcomponentchange-review-af7fab
Jul 22, 2026
Merged

[claude][vibe] Remove unused SetComplexFormComponentChange#2462
myieye merged 1 commit into
developfrom
claude/setcomplexformcomponentchange-review-af7fab

Conversation

@myieye

@myieye myieye commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

[Claude-drafted]

SetComplexFormComponentChange hasn't been created by any code path since #1816 (complex-form components go through AddEntryComponentChange now). Removing it drops a chunk of change-application logic plus its registration and test fixtures.

Verified unused in prod — no CrdtCommits reference the type:

SELECT p."Code", count(*) AS num_changes
FROM "CrdtCommits" c
JOIN "Projects" p ON p."Id" = c."ProjectId"
CROSS JOIN LATERAL jsonb_array_elements(c."ChangeEntities") AS ce
WHERE ce->'Change'->>'$type' = 'SetComplexFormComponentChange'
GROUP BY p."Code";
-- 0 rows (sanity-checked: this query does return rows for change types that are present)
Text-match variant — also catches the legacy string-encoded Change form
SELECT p."Code", c."ProjectId", count(*) AS commits_with_change
FROM "CrdtCommits" c
JOIN "Projects" p ON p."Id" = c."ProjectId"
WHERE c."ChangeEntities"::text LIKE '%SetComplexFormComponentChange%'
GROUP BY p."Code", c."ProjectId";

Heads up for review: retiring a polymorphic change type means deleting its samples from the change regression fixtures — they can't move to the legacy file, they'd fail to deserialize once the $type is unregistered — so this bends the "never remove" note in those files.

No production code creates this change since #1816, and a prod query
confirmed no CrdtCommits reference it, so retire the type and its
registration/serialization test fixtures.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot added the 💻 FW Lite issues related to the fw lite application, not miniLcm or crdt related label Jul 21, 2026
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 85a0bfb2-56ae-435e-b289-0ce2f6f8737d

📥 Commits

Reviewing files that changed from the base of the PR and between bd2c823 and 9c037eb.

📒 Files selected for processing (6)
  • backend/FwLite/LcmCrdt.Tests/Changes/ChangeDeserializationRegressionData.latest.verified.txt
  • backend/FwLite/LcmCrdt.Tests/Changes/ChangeSerializationTests.cs
  • backend/FwLite/LcmCrdt.Tests/Changes/UseChangesTests.cs
  • backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.VerifyChangeModels.verified.txt
  • backend/FwLite/LcmCrdt/Changes/Entries/SetComplexFormComponentChange.cs
  • backend/FwLite/LcmCrdt/LcmCrdtKernel.cs
💤 Files with no reviewable changes (6)
  • backend/FwLite/LcmCrdt.Tests/Changes/UseChangesTests.cs
  • backend/FwLite/LcmCrdt/Changes/Entries/SetComplexFormComponentChange.cs
  • backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.VerifyChangeModels.verified.txt
  • backend/FwLite/LcmCrdt.Tests/Changes/ChangeSerializationTests.cs
  • backend/FwLite/LcmCrdt/LcmCrdtKernel.cs
  • backend/FwLite/LcmCrdt.Tests/Changes/ChangeDeserializationRegressionData.latest.verified.txt

📝 Walkthrough

Walkthrough

The obsolete SetComplexFormComponentChange implementation and registrations are removed. Related serialization, usage, snapshot, and deserialization regression data are updated, while ConfigureCrdt registers additional change types.

Changes

CRDT change registration and validation

Layer / File(s) Summary
Update CRDT change registration
backend/FwLite/LcmCrdt/LcmCrdtKernel.cs
Removes SetComplexFormComponentChange from ConfigureCrdt and adds complex-form, custom-view, comment, morph-type, and ordering change registrations.
Remove obsolete change coverage
backend/FwLite/LcmCrdt/Changes/Entries/SetComplexFormComponentChange.cs, backend/FwLite/LcmCrdt.Tests/Changes/*, backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.VerifyChangeModels.verified.txt
Deletes the change implementation and removes its generated instances, snapshot entry, and regression records.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Poem

A bunny hops through changes bright,
No complex-form entry in sight.
New types join the CRDT queue,
Test snapshots match the view.
Thump, thump—clean data blooms!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: removing the unused SetComplexFormComponentChange type.
Description check ✅ Passed The description is directly related to the changeset and explains why the type, fixtures, and registration were removed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/setcomplexformcomponentchange-review-af7fab

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

Comment @coderabbitai help to get the list of available commands.

@argos-ci

argos-ci Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Jul 21, 2026, 4:00 PM
e2e (Inspect) ✅ No changes detected - Jul 21, 2026, 4:08 PM

@hahn-kev hahn-kev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scary

@myieye
myieye merged commit 2386e61 into develop Jul 22, 2026
25 checks passed
@myieye
myieye deleted the claude/setcomplexformcomponentchange-review-af7fab branch July 22, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💻 FW Lite issues related to the fw lite application, not miniLcm or crdt related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants