Skip to content

fix(Deduplicator): Duplicate Immutable Associations#5763

Open
igbanam wants to merge 1 commit intomasterfrom
igbanam/SIMPLEBACK-47/duplicate-immutables-during-deduplication
Open

fix(Deduplicator): Duplicate Immutable Associations#5763
igbanam wants to merge 1 commit intomasterfrom
igbanam/SIMPLEBACK-47/duplicate-immutables-during-deduplication

Conversation

@igbanam
Copy link
Contributor

@igbanam igbanam commented Feb 6, 2026

Story card: SIMPLEBACK-47

Because

Relinking removes the existing association from the old record. This causes a breakage for one specific scenario on the app

  • Deduplication happens
  • App sync association
    • App does not sync patient
  • Relinking takes effect on mobile
  • App no longer sees associated records linked to old records
  • Users panic because what they did has gone away

This addresses

Duplicating when the association is immutable.

Since the association is immutable, the duplicate should also carry all information as in the original. Relinking saves us space, but it's a luxury which comes with its own operational issues

Test instructions

suite tests

@igbanam igbanam self-assigned this Feb 6, 2026
@igbanam igbanam requested a review from a team February 6, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant