Skip to content

Remove MailerOptions Data object used by confirmation email mailer#2110

Merged
stephencdaly merged 1 commit into
mainfrom
remove-mailer-options-data-object
May 19, 2026
Merged

Remove MailerOptions Data object used by confirmation email mailer#2110
stephencdaly merged 1 commit into
mainfrom
remove-mailer-options-data-object

Conversation

@stephencdaly
Copy link
Copy Markdown
Contributor

@stephencdaly stephencdaly commented May 19, 2026

What problem does this pull request solve?

Trello card: https://trello.com/c/NLqWmwvf

This Data object existed before the Submission model existed and was used to pass common data used by the submission and confirmation emails.

It is no longer needed, and we can instead pass the Submission and Form objects to the mailer to get the data we need.

This means we don't need to pass attributes for all the form attributes that have Welsh translations.

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

This Data object existed before the Submission model existed and was
used to pass common data used by the submission and confirmation
emails.

It is no longer needed, and we can instead pass the Submission and
Form objects to the mailer to get the data we need.
@stephencdaly stephencdaly force-pushed the remove-mailer-options-data-object branch from db525e7 to 5b41679 Compare May 19, 2026 15:08
@github-actions
Copy link
Copy Markdown
Contributor

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2110.submit.review.forms.service.gov.uk/

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

Copy link
Copy Markdown
Contributor

@chao-xian chao-xian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Ty. Works locally and code changes look good

@stephencdaly stephencdaly added this pull request to the merge queue May 19, 2026
Merged via the queue into main with commit 6f78a46 May 19, 2026
3 checks passed
@stephencdaly stephencdaly deleted the remove-mailer-options-data-object branch May 19, 2026 15:24
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