Skip to content

Bump SIL.Harmony to 0.2.1-rc.211 and adopt generic remote-resource types#2402

Closed
myieye wants to merge 3 commits into
developfrom
claude/naughty-haslett-60eaad
Closed

Bump SIL.Harmony to 0.2.1-rc.211 and adopt generic remote-resource types#2402
myieye wants to merge 3 commits into
developfrom
claude/naughty-haslett-60eaad

Conversation

@myieye

@myieye myieye commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Harmony PR sillsdev/harmony#75 made RemoteResource, ResourceService, IRemoteResourceService, and the resource change classes generic on TMetadata. We pick NoMetadata — lexbox media has no synced metadata today. EF migration adds a nullable Metadata jsonb column; existing rows get NULL. Wire discriminators are preserved (delete:RemoteResource etc.); legacy payloads round-trip with Metadata: null.

AddRemoteResourceEntity<NoMetadata>() stays in ConfigureCrdt (behind a RemoteResourcesEnabled guard) so bare-CrdtConfig callers — TypeGen, HistoryService.AllChangeTypes, LcmDebugger — still see the resource entity + change types. DI order matters: AddCrdtRemoteResources is registered first so its Configure delegate flips the guard before ConfigureCrdt runs.

Follow-up (separate PR, on top of #2393): plumb CommitMetadata into the ResourceService calls so media commits get author attribution the same way CrdtMiniLcmApi does.

Notes:

  • 0.2.1-rc.211 is an untagged main-branch prerelease from sillsdev/harmony, consistent with how we pinned rc.202.
  • Any future move off NoMetadata becomes wire-breaking for older clients — not this PR's concern, but this bump opens that door.

Test plan

  • LcmCrdt.Tests verified snapshots (12 pass) — includes DataModelSnapshotTests, ChangeSerializationTests.RegressionDataUpToDate, MigrationTests, SnapshotDeserializationTests
  • FwLiteProjectSync.Tests verified snapshots (2 pass)
  • dotnet build backend/FwLite/FwLiteShared/FwLiteShared.csproj — no generated-TS drift
  • Full build across LcmCrdt.Tests, FwLiteProjectSync.Tests, LcmDebugger, FwHeadless, FwLiteMaui, LexBoxApi — all green

Harmony PR #75 made RemoteResource / ResourceService / IRemoteResourceService / change classes generic on TMetadata. We pick NoMetadata (marker type — lexbox media has no synced metadata today). EF migration adds a nullable Metadata jsonb column; existing rows get NULL. Wire discriminators preserved (delete:RemoteResource etc.), old payloads round-trip with Metadata=null.

AddRemoteResourceEntity<NoMetadata>() stays in ConfigureCrdt (behind a RemoteResourcesEnabled guard) so bare CrdtConfig callers — TypeGen, HistoryService.AllChangeTypes, LcmDebugger — still see the resource entity. DI order: AddCrdtRemoteResources runs first so its Configure delegate flips the guard before ConfigureCrdt sees it.
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@myieye, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 21 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 43aa4485-2ca7-4b34-a21e-41cc85c7921c

📥 Commits

Reviewing files that changed from the base of the PR and between d92883c and 6a4a6ac.

📒 Files selected for processing (17)
  • backend/Directory.Packages.props
  • backend/FwLite/LcmCrdt.Tests/Changes/ChangeDeserializationRegressionData.latest.verified.txt
  • backend/FwLite/LcmCrdt.Tests/Changes/ChangeDeserializationRegressionData.legacy.verified.txt
  • backend/FwLite/LcmCrdt.Tests/Changes/UseChangesTests.cs
  • backend/FwLite/LcmCrdt.Tests/ConfigRegistrationTests.cs
  • backend/FwLite/LcmCrdt.Tests/Data/SnapshotDeserializationRegressionData.latest.verified.txt
  • backend/FwLite/LcmCrdt.Tests/Data/SnapshotDeserializationRegressionData.legacy.verified.txt
  • backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.VerifyChangeModels.verified.txt
  • backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.VerifyDbModel.verified.txt
  • backend/FwLite/LcmCrdt.Tests/DataModelSnapshotTests.VerifyIObjectBaseModels.verified.txt
  • backend/FwLite/LcmCrdt.Tests/EntityCopyMethodTests.cs
  • backend/FwLite/LcmCrdt/LcmCrdtKernel.cs
  • backend/FwLite/LcmCrdt/MediaServer/LcmMediaService.cs
  • backend/FwLite/LcmCrdt/Migrations/20260701154631_AddRemoteResourceMetadata.Designer.cs
  • backend/FwLite/LcmCrdt/Migrations/20260701154631_AddRemoteResourceMetadata.cs
  • backend/FwLite/LcmCrdt/Migrations/LcmCrdtDbContextModelSnapshot.cs
  • frontend/viewer/src/lib/dotnet-types/generated-types/SIL/Harmony/Resource/IRemoteResource.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/naughty-haslett-60eaad

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.

@github-actions github-actions Bot added the 💻 FW Lite issues related to the fw lite application, not miniLcm or crdt related label Jul 1, 2026
@argos-ci

argos-ci Bot commented Jul 1, 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 1, 2026, 6:25 PM

myieye added 2 commits July 1, 2026 20:13
Two Devin findings on #2402:
- ConfigRegistrationTests: DeleteChange<RemoteResource<NoMetadata>> is now constructible but unregistered (replaced by DeleteRemoteResourceChange). Add to _excludedChangeTypes.
- UseChangesTests: DeleteRemoteResourceChange<NoMetadata> and SetRemoteResourceMetadataChange<NoMetadata> weren't in GetAllChanges(). Add both, chained off createRemoteResourceChange.
@hahn-kev

hahn-kev commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Actually this is already mostly done in #2358

@myieye

myieye commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

OK oops. I actually just wanted to patch the missing commit-metadata and this was a blocker.

@myieye myieye closed this Jul 2, 2026
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