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

LG-15000: Add idv_please_call email #11604

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

matthinz
Copy link
Member

@matthinz matthinz commented Dec 5, 2024

NOTE: This is the first of three PRs, which will be spread across deploys. The next one is #11662, then #11664.

🎫 Ticket

Link to the relevant ticket:
LG-15000

🛠 Summary of changes

We want to update the remote flow to send the "Please call" email. Since it will be the same email the IPP flow currently sends, we're going to rename it to be more generic: idv_please_call rather than in_person_please_call.

This PR is step one of the process:

  • Rename templates, i18n keys, etc
  • Add idv_please_call method to the mailer
  • Add in_person_please_call as an alias to that method (so we don't break)

A subsequent PR will actually add the email to the remote flow and update the in person flow to use the new name.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  1. Update your application.yml to reduce the interval at which the IDP sends the "Please call" email for IPP:
in_person_results_delay_in_hours: -1
  1. Go through IdV, selecting the in-person proofing route (make sure you are wicked so that you are flagged by ThreatMetrix)

  2. Once you have your barcode, go to the IPP enrollment list and approve yourself

  3. Verify that the "Please call" email sends as expected

@matthinz matthinz requested a review from a team December 5, 2024 21:00
@matthinz matthinz force-pushed the matthinz/15000-idv-please-call-part-1 branch from d21aa15 to e4cf87b Compare December 6, 2024 17:53
Base automatically changed from matthinz/return-profile to main December 6, 2024 18:37
app/mailers/user_mailer.rb Show resolved Hide resolved
spec/mailers/previews/user_mailer_preview.rb Show resolved Hide resolved
spec/mailers/user_mailer_spec.rb Outdated Show resolved Hide resolved
@matthinz matthinz force-pushed the matthinz/15000-idv-please-call-part-1 branch 3 times, most recently from 3f8c0d5 to 24def64 Compare December 6, 2024 21:01
@matthinz matthinz force-pushed the matthinz/15000-idv-please-call-part-1 branch 3 times, most recently from 8a3cb94 to 8b232aa Compare December 17, 2024 18:17
@voidlily
Copy link
Contributor

can you rebase this to pick up fixes for the reviewapps cluster to be less sad?

- Change to idv_please_call to indicate it is used by idv generally
- Keep in_person_please_call as an alias on the theory that we need it for 1 deploy

[skip changelog]
@@ -2,7 +2,7 @@
require_relative './user_mailer_preview'

RSpec.describe UserMailerPreview do
it_behaves_like 'a mailer preview'
it_behaves_like 'a mailer preview', preview_methods_that_can_be_missing: [:in_person_please_call]
Copy link
Member

Choose a reason for hiding this comment

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

Is this meant to be temporary until we're fully moved over to the new name?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

Copy link
Contributor

@eileen-nava eileen-nava left a comment

Choose a reason for hiding this comment

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

LGTM.

end
end

alias_method :in_person_please_call, :idv_please_call
Copy link
Contributor

Choose a reason for hiding this comment

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

👏🏻

app/mailers/user_mailer.rb Show resolved Hide resolved
@@ -1875,6 +1875,10 @@ user_mailer.email_deleted.header: An email address was deleted from your %{app_n
user_mailer.email_deleted.help_html: If you did not want to delete this email address, please visit the %{app_name_html} %{help_link_html} or %{contact_link_html}.
user_mailer.email_deleted.subject: Email address deleted
user_mailer.help_link_text: Help Center
user_mailer.idv_please_call.body.contact_message_html: Call <strong>%{contact_number}</strong> and provide them with the error code <strong>%{support_code}</strong>.
Copy link
Contributor

Choose a reason for hiding this comment

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

💪🏻

@matthinz matthinz merged commit 6b5f274 into main Dec 18, 2024
2 checks passed
@matthinz matthinz deleted the matthinz/15000-idv-please-call-part-1 branch December 18, 2024 18:25
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.

5 participants