Skip to content

LG-15000: Send "Please call" email from other parts of IDV#11662

Merged
matthinz merged 7 commits intomainfrom
matthinz/15000-idv-please-call-part-2
Dec 23, 2024
Merged

LG-15000: Send "Please call" email from other parts of IDV#11662
matthinz merged 7 commits intomainfrom
matthinz/15000-idv-please-call-part-2

Conversation

@matthinz
Copy link
Copy Markdown
Contributor

@matthinz matthinz commented Dec 18, 2024

🎫 Ticket

Link to the relevant ticket:
LG-15000

🛠 Summary of changes

Updates the non-IPP IDV flows to send the "Please Call" email

📜 Testing Plan

Phone verification

  1. Run through IDV, selecting phone verification. Ensure you are flagged by ThreatMetrix.
  2. Confirm you receive the "Please Call" email at the end of the flow
  3. Confirm you do not receive the "You've been verified" email at the end of the flow

GPO

  1. Run through IDV, selecting verify by mail. Ensure you are flagged by ThreatMetrix.
  2. Confirm you receive the "Please Call" email after you enter your code
  3. Confirm you do not receive the "You've been verified" email after you enter your code

@matthinz matthinz requested a review from a team December 18, 2024 00:13
@matthinz matthinz force-pushed the matthinz/15000-idv-please-call-part-2 branch 2 times, most recently from 6360574 to 10eecd3 Compare December 18, 2024 05:01
@matthinz matthinz marked this pull request as draft December 18, 2024 06:23
@matthinz matthinz removed the request for review from a team December 18, 2024 06:23
@matthinz matthinz force-pushed the matthinz/15000-idv-please-call-part-2 branch from 10eecd3 to 51cc5a3 Compare December 18, 2024 06:24
Copy link
Copy Markdown
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.

This looks good.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍🏻

Base automatically changed from matthinz/15000-idv-please-call-part-1 to main December 18, 2024 18:25
- Slightly improve error output
- Capture behavior in a dedicated spec

[skip changelog]
Assert that a certain email was not sent.
These specs weren't actually testing the thing we thought they were, since the text_part of the email did not contain HTML.
This is the exact same email, content-wise, just with a new name to reflect the fact that it is used throughout idv.

[skip changelog]
@matthinz matthinz force-pushed the matthinz/15000-idv-please-call-part-2 branch from 51cc5a3 to c50cb70 Compare December 18, 2024 18:26
@matthinz matthinz changed the base branch from main to matthinz/mailer-helper-update December 18, 2024 18:27
Many clients won't display inline images referenced by URL for privacy reasons.
Copy link
Copy Markdown
Contributor

@n1zyy n1zyy left a comment

Choose a reason for hiding this comment

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

I'm liking the idea of breaking these into smaller PRs. 👏

Comment on lines +129 to +133
return if result.extra[:pending_in_person_enrollment]

return if !result.extra[:fraud_check_failed]

return if !FeatureManagement.proofing_device_profiling_decisioning_enabled?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I actually prefer what you have, but I feel like this would more typically be written like:

if result.extra[:pending_in_person_enrollment] ||
  !result.extra[:fraud_check_failed] ||
  !FeatureManagement.proofing_device_profiling_decisioning_enabled?
  return

But I like the idea of normalizing simpler lines. 👏

Base automatically changed from matthinz/mailer-helper-update to main December 19, 2024 17:12
@matthinz matthinz marked this pull request as ready for review December 19, 2024 19:46
@matthinz matthinz merged commit 6d6dd67 into main Dec 23, 2024
@matthinz matthinz deleted the matthinz/15000-idv-please-call-part-2 branch December 23, 2024 18:03
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.

3 participants