Skip to content

[claude] Reset FLEx Bridge's custom field cache before each Send/Receive - #3010

Open
myieye wants to merge 1 commit into
developfrom
claude/reset-flexbridge-metadata-cache
Open

myieye wants to merge 1 commit into
developfrom
claude/reset-flexbridge-metadata-cache

Conversation

@myieye

@myieye myieye commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

[Claude, autonomous]

FwHeadless runs every project's Send/Receive in one process, and FLEx Bridge's static MetadataCache keeps the custom field types of the first project that defined each field. A project whose LexEntry custom field Plural is a single-WS String then fails validation (Invalid MultiUnicode 'Plural' ... Has non-AUni child element) and Chorus rolls back. This clears the cache by reflection before each LfMergeBridge.Execute, until sillsdev/flexbridge#431 ships.

  • The test splits two projects with the same custom field name and different types, then validates the second with Chorus. It fails without the reset. It calls the reset itself, so it doesn't cover the wiring in SendReceiveHelpers.

🤖 Generated with Claude Code

FLEx Bridge's MetadataCache is a process-wide static that keeps the first
project's custom field types, so FwHeadless validated a project's custom
fields against another project's types and Chorus rolled back the
Send/Receive. Clear it by reflection until sillsdev/flexbridge#431 ships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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 8 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: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fed6bb42-3e69-4a1a-a11d-c5c82051b876
Commits

Reviewing files that changed from the base of the PR and between 322d78d and ce1cd26.

Files selected for processing: 3

  • backend/FwHeadless/Services/FlexBridgeMetadataCache.cs
  • backend/FwHeadless/Services/SendReceiveHelpers.cs
  • backend/Testing/FwHeadless/FlexBridgeMetadataCacheTests.cs
  • 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

@github-actions github-actions Bot added the 📦 Lexbox issues related to any server side code, fw-headless included label Nov 19, 2026
@myieye
myieye marked this pull request as ready for review November 19, 2026 14:46

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 Lexbox issues related to any server side code, fw-headless included

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant