Skip to content

fix(downsync): create worklist rows for down-synced beneficiaries - #203

Merged
vanitha1822 merged 2 commits into
release-3.12.0from
vb/3.12.0-downsync-worklist
Oct 23, 2026
Merged

vanitha1822 merged 2 commits into
release-3.12.0from
vb/3.12.0-downsync-worklist

Conversation

@vishwab1

Copy link
Copy Markdown
Member

Down-sync copies the beneficiary tables but not i_ben_flow_outreach, and FLW-API getBeneficiaryData serves tabs only beneficiaries that have a worklist row. Beneficiaries registered elsewhere and down-synced to the laptop therefore never reached the laptop's other tabs, so tab counts differed.

After each down-sync, insert the missing worklist row for this van's beneficiaries, filled as TM-API does at registration. Processed = 'P' so it is not uploaded back (central already has its own row); modified_by = 'downsync' marks these rows. A failure here is logged and does not undo the down-sync.

📋 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.

Down-sync copies the beneficiary tables but not i_ben_flow_outreach, and
FLW-API getBeneficiaryData serves tabs only beneficiaries that have a
worklist row. Beneficiaries registered elsewhere and down-synced to the
laptop therefore never reached the laptop's other tabs, so tab counts
differed.

After each down-sync, insert the missing worklist row for this van's
beneficiaries, filled as TM-API does at registration. Processed = 'P' so
it is not uploaded back (central already has its own row); modified_by =
'downsync' marks these rows. A failure here is logged and does not undo
the down-sync.

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

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 90bacffe-3fee-42fa-9cc1-572858d7402b
  • 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

Comment @coderabbitai help to get the list of available commands.

+ " WHERE f.beneficiary_reg_id = bm.BenRegId) ) x "
+ " WHERE x.villageID IS NOT NULL";

int inserted = jdbcTemplate.update(insert, providerServiceMapID, vanID, providerServiceMapID);
)

Vans (camp laptops) run the same war as central but never call S3: they
push diagnostic documents to central over HTTP. Yet startup failed with
"Could not resolve placeholder 'AWS_S3_ACCESS_KEY'", and blank values
would still crash in AwsBasicCredentials.create ("Access key ID cannot be
blank").

- common_docker.properties: default the S3 placeholders (keys/bucket
  empty, region ap-south-1, push batch size 3).
- S3ClientConfig: with blank keys use DefaultCredentialsProvider, which
  resolves lazily on first S3 call instead of at startup.

Central keeps setting real AWS_S3_* values and behaves as before.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 10b8ffa)
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@vanitha1822
vanitha1822 merged commit 6b28dbc into release-3.12.0 Oct 23, 2026
3 of 5 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.

3 participants