Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor SMS delivery #2840

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Refactor SMS delivery #2840

wants to merge 2 commits into from

Conversation

thomasleese
Copy link
Contributor

@thomasleese thomasleese commented Jan 14, 2025

This makes two changes related to delivery of text messages to support future work around refactoring email delivery to use the GOV.UK API directly, see individual commits for more details.

We need this so we can integrate with the status receipts provided by GOV.UK and control the retry behaviour on failures.

@thomasleese thomasleese added the 🛠️ refactor Improving maintainability label Jan 14, 2025
@thomasleese thomasleese added this to the v1.3.0 milestone Jan 14, 2025
@thomasleese thomasleese modified the milestones: v1.3.0, v1.4.0 Jan 14, 2025
This encapsulates some logic related to sending emails and texts via
GOV.UK Notify in to its own class so that in the future we can use this
when sending emails. We need to refactor the way emails are sent to use
the API directly so that we can integrate with the status receipts
provided by GOV.UK and this is the first step of that.
This renames references to "texts" and instead replaces it with
references to "SMS". This has no change on the behaviour but it matches
the naming used by GOV.UK Notify so helps to keep the code consistent.
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠️ refactor Improving maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants