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

Use new reminders controller + remove old version #3413

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

asmega
Copy link
Contributor

@asmega asmega commented Nov 19, 2024

Context

  • Related to https://dfedigital.atlassian.net/browse/CAPT-1862
  • I wrote a new controller to handle reminders for FE awhile back
  • This newer reminder controller is free from PartOfClaimJourney, FormSubmittable and all the controller level callbacks that this mechanism depends upon in favour of more contained explicit form objects.
  • The old controller had a feature that would submit the reminder immediately if the data was available in the submitted claim. this feature has been ported to the new controller
  • Now there is only one controller handling reminders it should now be easier to handle un-subscriptions from this single point
  • I'm aware of the existence of Track which journey a reminder is for and use correct support email #3175 and will work to incorporate those changes once this has been merged

@asmega asmega added the deploy Deploy a review app for this PR label Nov 19, 2024
@asmega asmega marked this pull request as ready for review November 19, 2024 13:05
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.

LGTM

  • Should we rename independent_reminders_path to just reminders_path now?

One thing we might want to consider is if the claim already has a verified email, change the "Set reminder" link to be a button_to the update action and have update handle sending the reminder email, that way we can avoid sending emails in the show action and remove the set_reminder_from_claim method. Not a blocker though, just something we might want to consider in future.

@asmega asmega force-pushed the one-reminders-controller branch from 0b24f49 to 8446030 Compare November 25, 2024 10:52
@asmega
Copy link
Contributor Author

asmega commented Nov 25, 2024

LGTM

  • Should we rename independent_reminders_path to just reminders_path now?

Done

One thing we might want to consider is if the claim already has a verified email, change the "Set reminder" link to be a button_to the update action and have update handle sending the reminder email, that way we can avoid sending emails in the show action and remove the set_reminder_from_claim method. Not a blocker though, just something we might want to consider in future.

Won't do this now but yes agreed that would be much nicer approach. I just kind of ported the old pattern without too much thought.

@asmega asmega force-pushed the one-reminders-controller branch from 8446030 to 65bc016 Compare November 25, 2024 13:54
@asmega asmega merged commit 4b7b417 into master Nov 25, 2024
14 checks passed
@asmega asmega deleted the one-reminders-controller branch November 25, 2024 14:06
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.

2 participants