Skip to content

fix(stoptb): fix RMNCH VanID placeholder-zero and id/VanSerialNo coll… - #183

Merged
SauravBizbRolly merged 1 commit into
release-3.8.3from
van
Aug 6, 2026
Merged

fix(stoptb): fix RMNCH VanID placeholder-zero and id/VanSerialNo coll…#183
SauravBizbRolly merged 1 commit into
release-3.8.3from
van

Conversation

@vishwab1

@vishwab1 vishwab1 commented Aug 6, 2026

Copy link
Copy Markdown
Member

…ision

  • RMNCHBeneficiaryDetailsRmnch: mobile sends VanID=0 as a placeholder (not null) for a fresh record - the existing '== null' check never caught it, leaving the real vanID from Redis unapplied. Now checks for both null and 0.
  • Both RMNCHBeneficiaryDetailsRmnch and RMNCHHouseHoldDetails map their VanSerialNo column to a Java field literally named 'id' with no @SerializedName - any incoming JSON payload that happens to carry its own 'id' key collides with it during Gson deserialization, silently overwriting the intended VanSerialNo with whatever unrelated value the client sent (observed live: every row stuck at VanSerialNo=1). Added updateVanSerialNo() to both repos and call it after each saveAll(), same pattern already used for i_beneficiaryimage/i_beneficiaryaddress in IdentityService.createIdentity().
  • Left RMNCHCBACdetails/RMNCHBornBirthDetails alone despite sharing the same id-collision pattern - not part of the Stop TB flow, zero rows in practice, out of scope for this fix.

📋 Description

JIRA ID:

Please provide a summary of the change and the motivation behind it. Include relevant context and details.


✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

…ision

- RMNCHBeneficiaryDetailsRmnch: mobile sends VanID=0 as a placeholder
  (not null) for a fresh record - the existing '== null' check never
  caught it, leaving the real vanID from Redis unapplied. Now checks
  for both null and 0.
- Both RMNCHBeneficiaryDetailsRmnch and RMNCHHouseHoldDetails map their
  VanSerialNo column to a Java field literally named 'id' with no
  @SerializedName - any incoming JSON payload that happens to carry its
  own 'id' key collides with it during Gson deserialization, silently
  overwriting the intended VanSerialNo with whatever unrelated value the
  client sent (observed live: every row stuck at VanSerialNo=1). Added
  updateVanSerialNo() to both repos and call it after each saveAll(),
  same pattern already used for i_beneficiaryimage/i_beneficiaryaddress
  in IdentityService.createIdentity().
- Left RMNCHCBACdetails/RMNCHBornBirthDetails alone despite sharing the
  same id-collision pattern - not part of the Stop TB flow, zero rows
  in practice, out of scope for this fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0e8bffc1-c0fe-4570-84c4-c47d52001deb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

@SauravBizbRolly
SauravBizbRolly merged commit 0227820 into release-3.8.3 Aug 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants