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

Track which journey a reminder is for and use correct support email #3175

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

slorek
Copy link
Contributor

@slorek slorek commented Sep 10, 2024

https://dfedigital.atlassian.net/browse/LUPEYALPHA-1016

At the moment the codebase assumes that all reminders are for the additional payments journey.

I've added an extra column to Reminder to specify which journey the reminder is for, and removed the assumptions in the code in order to support reminders for other journeys.

At the moment the copy in the actual reminder template that is sent when the journey is opened only accommodates the additional payments journey. I've added a failsafe to prevent reminders being sent when a different journey is opened. Now only reminders for that journey which is being opened should be sent.

Additionally when the additional payments journey was opened it would send all pending reminders, including those for other journeys. This has been fixed.

Coming back to the goal of this ticket; these changes allow us to use a different email address depending on which journey the reminder is for.

@slorek slorek force-pushed the LUPEYALPHA-1016-reminder-email branch from 026880f to 0ab6592 Compare September 10, 2024 14:42
@slorek slorek changed the title use correct support email address in reminder set up email Use correct support email address in reminder set up email Sep 10, 2024
@slorek slorek force-pushed the LUPEYALPHA-1016-reminder-email branch 3 times, most recently from 15c9877 to c914bd5 Compare September 10, 2024 15:24
@slorek slorek changed the title Use correct support email address in reminder set up email Track which journey a reminder is for and use correct support email Sep 10, 2024
@slorek slorek added the deploy Deploy a review app for this PR label Sep 10, 2024
Copy link
Contributor

@rjlynch rjlynch left a comment

Choose a reason for hiding this comment

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

Nice 👍
Left one comment WRT migration, but have approved in case it's not actually an issue

db/migrate/20240910135453_add_journey_to_reminders.rb Outdated Show resolved Hide resolved
app/models/reminder.rb Outdated Show resolved Hide resolved
@slorek slorek force-pushed the LUPEYALPHA-1016-reminder-email branch from a62ddd0 to 20de7de Compare September 12, 2024 13:07
@slorek slorek removed the deploy Deploy a review app for this PR label Sep 17, 2024
@slorek slorek added the deploy Deploy a review app for this PR label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Deploy a review app for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants