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

Modify the check for verified emails to also look for verification on… #4501

Merged
merged 12 commits into from Apr 17, 2024

Conversation

mpidcock
Copy link
Contributor

… a matching intake (using ssn & address)

mpidcock and others added 4 commits April 15, 2024 12:49
Co-authored-by: Tahsina Islam <tislam@codeforamerica.org>
…ching accepted submission

Co-authored-by: Tahsina Islam <tislam@codeforamerica.org>
… a matching intake (using ssn & address)

Co-authored-by: Em Barnard-Shao <ebarnard@codeforamerica.org>
Co-authored-by: Tahsina Islam <tislam@codeforamerica.org>
Copy link

Heroku app: https://gyr-review-app-4501-3d178ed91b45.herokuapp.com/
View logs: heroku logs --app gyr-review-app-4501 (optionally add --tail)

mpidcock and others added 3 commits April 16, 2024 15:16
Co-authored-by: Tahsina Islam <tislam@codeforamerica.org>
Co-authored-by: Tahsina Islam <tislam@codeforamerica.org>
@@ -20,10 +20,10 @@ def message_tracker
@message_tracker ||= MessageTracker.new(data_source: data_source, message: message)
end

def send_message
def send_message(use_verification=true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def send_message(use_verification=true)
def send_message(use_verification: true)

if you want to make it a named argument

@@ -22,7 +22,7 @@ def send_efile_submission_accepted_message
intake: @intake,
submission: @submission,
message: message,
body_args: body_args).send_message
body_args: body_args).send_message(false)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
body_args: body_args).send_message(false)
body_args: body_args).send_message(use_verification: false)

@@ -41,7 +41,7 @@ def send_efile_submission_rejected_message
submission: @submission,
message: message,
body_args: body_args
).send_message
).send_message(false)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
).send_message(false)
).send_message(use_verification: false)

return nil if message_tracker.already_sent? && message.send_only_once?

send_email if @do_email && !intake.unsubscribed_from_email?
send_email(use_verification) if @do_email && !intake.unsubscribed_from_email?
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
send_email(use_verification) if @do_email && !intake.unsubscribed_from_email?
send_email(use_verification: use_verification) if @do_email && !intake.unsubscribed_from_email?

mpidcock and others added 5 commits April 16, 2024 17:17
Co-authored-by: Tahsina Islam <tislam@codeforamerica.org>
Co-authored-by: Tim O'Farrell <tofarrell@codeforamerica.org>
@tahsinaislam tahsinaislam merged commit e7fcbe4 into main Apr 17, 2024
7 checks passed
@tahsinaislam tahsinaislam deleted the update-verified-at-check-when-messaging branch April 17, 2024 00:57
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.

None yet

3 participants