Update email wording for re-registration email to note removal of MFA - #1794
Conversation
|
Warning Review limit reached
Next review available in: 21 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe SSN-correction re-registration email now explains MFA reconfiguration, removal of the previous MFA entry, unaffected active privileges, and the time-sensitive registration link. ChangesSSN Correction Re-registration Email
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
backend/compact-connect/lambdas/nodejs/lib/email/email-notification-service.ts (1)
458-458: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAssert the updated body in the SSN-correction email test.
backend/compact-connect/lambdas/nodejs/tests/email-notification-service.test.ts:803-852checks delivery, recipients, HTML presence, and subject, but not the body text. Add assertions for MFA removal, invalid old codes, active privileges, and the time-sensitive registration link.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@backend/compact-connect/lambdas/nodejs/lib/email/email-notification-service.ts` at line 458, Update the SSN-correction email test in the relevant email-notification-service test case to assert the generated body includes MFA removal instructions, invalidation of old codes, preservation of active privileges, and the time-sensitive registration link. Reuse the existing body extraction and registration URL symbols, while keeping the current delivery, recipient, HTML, and subject assertions unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@backend/compact-connect/lambdas/nodejs/lib/email/email-notification-service.ts`:
- Line 458: Update the bodyText message in the email notification service to
consistently describe the registrationUrl as a registration link rather than an
account-reset link, and explicitly state that the previous account was deleted
so its existing MFA codes will no longer work and must be removed before
registering again.
---
Nitpick comments:
In
`@backend/compact-connect/lambdas/nodejs/lib/email/email-notification-service.ts`:
- Line 458: Update the SSN-correction email test in the relevant
email-notification-service test case to assert the generated body includes MFA
removal instructions, invalidation of old codes, preservation of active
privileges, and the time-sensitive registration link. Reuse the existing body
extraction and registration URL symbols, while keeping the current delivery,
recipient, HTML, and subject assertions unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: de7a809e-976e-41f6-91c1-3962b179ee98
📒 Files selected for processing (1)
backend/compact-connect/lambdas/nodejs/lib/email/email-notification-service.ts
|
@jlkravitz This is ready for your review. Note the linter is failing because of an dependency that has been updated in #1789 |
jlkravitz
left a comment
There was a problem hiding this comment.
@isabeleliassen Good to merge!

When a SSN is corrected for a practitioner using the previousSSN feature, if the practitioner was previously registered, their old Cognito account is deleted and an email is sent notifying the practitioner that they need to re-register. The JCC compact EDs have requested that we update the wording in that email to note that the practitioner will need to remove their old MFA configuration that was used to login to CompactConnect under their old account so that they are aware that the codes generated for their previous account will no longer work.
Testing List
yarn test:unit:allshould run without errors or warningsyarn serveshould run without errors or warningsyarn buildshould run without errors or warningsbackend/compact-connect/tests/unit/test_api.pyrun compact-connect/bin/download_oas30.pyCloses #1793
Summary by CodeRabbit