-
Type:
Task
-
Resolution: Done
-
Priority:
High
-
Affects Version/s: None
Related: STOP-750
Fix: Identity-API PR #210, release-3.13.0
Fix version: 2.4
Problem
When a family member was added or re-sent from the tablet before the laptop's Data Sync, the household was marked as already sent (Processed = P) and was never uploaded to central.
Fix
Identity-API now saves every household and patient record received from the tablet as "to upload" (Processed = N).
Test steps (UAT, tablet + camp laptop, Identity-API 3.13.0)
1. On the tablet, create a new household with member 1 and let it sync to the laptop.
Check (laptop): household Processed = N.
2. Before any laptop Data Sync, add member 2 to the same household and let it sync.
Expected: household still Processed = N (before the fix it became P).
3. Run Data Sync on the laptop.
Expected: household Processed = P with SyncedDate filled.
4. Check central: the household exists, and both members show the household details.
5. Add member 3 after the sync, then run Data Sync again.
Expected: household updated on central (no duplicate), member 3 present.
Query (laptop):
SELECT houseoldId, Processed, SyncedDate FROM db_identity.i_householddetails ORDER BY houseHoldDetailsId DESC LIMIT 1;