Skip to content

ENG-3301: Add correspondence template and reply-to utility (Story 3)#8123

Draft
JadeCara wants to merge 2 commits intoENG-3301/messaging-provider-refactor-story2from
ENG-3301/messaging-provider-refactor-story3
Draft

ENG-3301: Add correspondence template and reply-to utility (Story 3)#8123
JadeCara wants to merge 2 commits intoENG-3301/messaging-provider-refactor-story2from
ENG-3301/messaging-provider-refactor-story3

Conversation

@JadeCara
Copy link
Copy Markdown
Contributor

@JadeCara JadeCara commented May 6, 2026

Ticket ENG-3301

Description Of Changes

Adds the correspondence email template and reply-to address utilities for data subject correspondence threading. These utilities have no callers yet — they will be wired by ENG-3299 (CorrespondenceService).

Code Changes

  • New src/fides/api/email_templates/templates/correspondence.html — HTML template with subject and body variables
  • Registered CORRESPONDENCE template name and MessagingActionType.CORRESPONDENCE mapping in get_email_template()
  • New src/fides/api/service/messaging/messaging_providers/reply_to_utils.py:
    • generate_reply_to_token() — 128-bit cryptographic token (32 hex chars)
    • format_reply_to_address() — plus-addressing or dedicated subdomain format
  • New tests for template rendering and reply-to utilities

Steps to Confirm

  1. No callers use these utilities yet — this is scaffolding for ENG-3299
  2. Confirm no import errors at server startup
  3. CI tests validate template rendering and token generation

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
    • Updates unreleased work already in Changelog, no new entry necessary
  • UX feedback:
    • No UX review needed
  • Followup issues:
    • Followup issues created
  • Database migrations:
    • No migrations
  • Documentation:
    • No documentation updates required

Stacked on #8122#8120#8118 — merge those first.

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
fides-plus-nightly Ignored Ignored Preview May 6, 2026 7:11pm
fides-privacy-center Ignored Ignored May 6, 2026 7:11pm

Request Review

@JadeCara JadeCara force-pushed the ENG-3301/messaging-provider-refactor-story2 branch from 916b01c to 64bee10 Compare May 6, 2026 18:15
JadeCara added a commit that referenced this pull request May 6, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JadeCara JadeCara force-pushed the ENG-3301/messaging-provider-refactor-story3 branch from 5411f9c to 1c12125 Compare May 6, 2026 18:17
@JadeCara JadeCara force-pushed the ENG-3301/messaging-provider-refactor-story2 branch from 64bee10 to f07ce63 Compare May 6, 2026 18:59
JadeCara and others added 2 commits May 6, 2026 13:07
Add correspondence.html email template registered with
MessagingActionType.CORRESPONDENCE. Add reply-to utilities:
generate_reply_to_token() (128-bit cryptographic token) and
format_reply_to_address() (plus-addressing or subdomain format).

These utilities have no callers yet — they will be wired in by
ENG-3299 (CorrespondenceService).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JadeCara JadeCara force-pushed the ENG-3301/messaging-provider-refactor-story3 branch from 1c12125 to cc22e16 Compare May 6, 2026 19:11
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