Skip to content

Fixes a bug in the Verify By Mail reminder logic.#9916

Merged
solipet merged 1 commit intomainfrom
dprice-lg-12100-letter-reminder-bug
Jan 12, 2024
Merged

Fixes a bug in the Verify By Mail reminder logic.#9916
solipet merged 1 commit intomainfrom
dprice-lg-12100-letter-reminder-bug

Conversation

@solipet
Copy link
Contributor

@solipet solipet commented Jan 12, 2024

🎫 Ticket

LG-12100

🛠 Summary of changes

If a user had an expired gpo code and requested a new letter more than the reminder timeframe ago, the user would not have been sent a reminder for the second letter.

📜 Testing Plan

You can run the newly added spec on main, then again on this branch.

If a user had an expired gpo code and requested a new letter more than
the reminder timeframe ago, the user would not have been sent a reminder
for the second letter.

changelog: Bug Fixes, Verify By Mail, Send reminders to users who had an older letter.

Co-authored-by: Sonia Connolly <sonia.connolly@gsa.gov>
@solipet solipet requested a review from a team January 12, 2024 15:13

def send_emails(for_letters_sent_before)
letter_eligible_range =
reminder_eligible_range =
Copy link
Contributor

Choose a reason for hiding this comment

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

That's a better name.

gpo_verification_pending_at: letter_eligible_range,
gpo_verification_pending_at: profile_eligible_range,
gpo_confirmation_codes: { reminder_sent_at: nil },
deactivation_reason: [nil, :in_person_verification_pending],
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought this was here because a user might have a GPO letter for in-person proofing; is this not possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sonia confirmed that that flag is deprecated and no longer used.

@solipet solipet requested a review from a team January 12, 2024 21:07
Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

LGTM. I saw spec fail on main and succeed on this branch.

@solipet solipet merged commit bac0197 into main Jan 12, 2024
@solipet solipet deleted the dprice-lg-12100-letter-reminder-bug branch January 12, 2024 23:04
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