Skip to content

fix(communications): persist legacy email/push/sms config during migration#1498

Merged
kkopanidis merged 3 commits into
mainfrom
fix/communications-config-migration
Jun 20, 2026
Merged

fix(communications): persist legacy email/push/sms config during migration#1498
kkopanidis merged 3 commits into
mainfrom
fix/communications-config-migration

Conversation

@kkopanidis

@kkopanidis kkopanidis commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Upgrades from standalone email/push/sms modules left nested channel config empty in communications even when legacy module config still existed.
  • Merges legacy module config into communications during preConfig only when the channel is still at defaults, so existing communications settings are not overwritten.
  • Fixes push migration forcing active: true; legacy active: false is preserved.
  • After merge, communications deletes legacy email / pushNotifications / sms configs from Redis and MongoDB via new core DeleteConfig RPC so migration does not run again.

Test plan

  • Upgrade cluster with legacy email/push/sms config and confirm communications settings populate in admin UI
  • Confirm legacy module config keys are removed after communications starts; restart does not re-merge

…ation

Add core DeleteConfig RPC so communications can remove email/push/sms
namespaces from Redis and MongoDB after merging. Legacy keys gate migration
via state checks; cleanup runs in onConfig after config is persisted.
Communications has no test runner wired in package.json; drop the
standalone test file from the migration PR.
@kkopanidis
kkopanidis merged commit 328fa96 into main Jun 20, 2026
7 checks passed
@kkopanidis
kkopanidis deleted the fix/communications-config-migration branch June 20, 2026 14:18
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.

1 participant