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
Conversation
…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>
Heroku app: https://gyr-review-app-4501-3d178ed91b45.herokuapp.com/ |
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
).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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
send_email(use_verification) if @do_email && !intake.unsubscribed_from_email? | |
send_email(use_verification: use_verification) if @do_email && !intake.unsubscribed_from_email? |
Co-authored-by: Tahsina Islam <tislam@codeforamerica.org>
…check-when-messaging
Co-authored-by: Tim O'Farrell <tofarrell@codeforamerica.org>
… a matching intake (using ssn & address)