Skip to content

Merge release-3.6.3 into main: data sync user validation - #461

Merged
vishwab1 merged 4 commits into
mainfrom
release-3.6.3
Aug 26, 2026
Merged

Merge release-3.6.3 into main: data sync user validation#461
vishwab1 merged 4 commits into
mainfrom
release-3.6.3

Conversation

@snehar-nd

Copy link
Copy Markdown
Contributor

Summary

Merges the remaining release-3.6.3 work back into main. Release 3.6.3 was previously merged via #375; these are the commits landed on the branch afterwards.

Net effect is a single change: data sync user validation. getDataSyncMMU now compares the data-sync userID against the userID in the main session and, on mismatch, clears serverKey, hides the progress bar, and alerts instead of proceeding — so a sync cannot run under a different user's credentials than the logged-in session.

Commits

3ea1285 fix: block data sync if user does not belong to same VAN
2d606c6 Revert "fix: block data sync if user does not belong to same VAN"
7d1289c fix: validate data sync userID matches main session userID
20d59dd Merge pull request #379 from PSMRI/fix/data-sync-van-validation

The first commit is reverted by the second, so the net diff is only the third: 1 file, +17 / −0 in data-sync-login.component.ts.

Notes

  • Merges cleanly into main. data-sync-login.component.ts was also touched on main by implement standard Reactive Forms validation in DataSyncLoginComponent #350 (fix/data-sync-login-validation), but the two changes auto-merge without conflict — worth a reviewer's eye on the combined validation logic in getDataSyncMMU, since both PRs harden the same method.
  • main is 31 commits ahead of release-3.6.3; this PR only carries the 4 above in the other direction.

🤖 Generated with Claude Code

Sneha and others added 4 commits June 25, 2026 16:25
Added providerServiceMapID validation in data sync login flow.
After successful authentication, the data sync user's PSM is compared
against the main session's PSM. If they differ (e.g., Mysuru nurse
trying to sync a Vizag van), an alert is shown and sync is blocked.

- Alert: 'Data sync user does not belong to the same VAN'
- Clears serverKey so the sync screen remains locked
- Applies to both normal and concurrent-login (doLogout) flows

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Block data sync login if the authenticated data sync user is different
from the logged-in MMU session user. Compares userID from the
userAuthenticate API response against the session's stored userID.
Shows alert 'Sync user is not valid' and clears serverKey if mismatch.

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

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

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

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bd44f845-a8f0-4d84-bed0-258f61fea9e4


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

Copy link
Copy Markdown

@vishwab1
vishwab1 merged commit 43e40e1 into main Aug 26, 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