-
Notifications
You must be signed in to change notification settings - Fork 120
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-882 Invalid physical mail address #2775
Conversation
36bd021
to
c593040
Compare
@stevegsa Two screens for copy updates (see screen images below) for consistency. Let me know if it's not clear
Note: I'm looking at any inconsistency between 'deliver' vs. 'mail' |
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.
Need to add proper translations for the French and Spanish messages.
We also definitely need some feature level tests for this. |
Thanks for the feedback. The screenshots have been updated for your review. Working on finishing the code/functionality and specs now. |
ae1d860
to
3b38fa3
Compare
**Why**: So users can still be verified even after their US postal address is found to be undeliverable. **How**: Introduce a new state to the usps screen for sending a letter. This state will be the condition where the letter sent was undeliverable. Add a method to the user decorater which digs into the usps_confirmation_codes for the user's profiles to see if the code was marked by the async undeliverable address notifier process. In that condition the user will receive an email notifying them to sign in to login.gov. When they sign in to login.gov rather than seeing a notification that tells them to enter their code they will see a message telling them their mail was undeliverable and to send a new letter they will need to update their address on file.
8c802a8
to
275bdee
Compare
@@ -1,11 +1,13 @@ | |||
# :reek:TooManyMethods |
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.
This controller has gotten to almost 160 lines, which to me looks like a signal that some of this should be moved into a service
@@ -27,7 +27,18 @@ def simulate? | |||
Figaro.env.acuant_simulator == 'true' | |||
end | |||
|
|||
delegate :idv_session, to: :@context | |||
def attempter |
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.
This diff is pretty heavy. I think including changes like this, which aren't totally necessary for the change on the table in a separate PR would help slim things down and make this easier to review in the future.
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.
You said you would not approve it without the throttling.
b48562b
to
bb44bcb
Compare
* LG-882 Invalid physical mail address **Why**: So users can still be verified even after their US postal address is found to be undeliverable. **How**: Introduce a new state to the usps screen for sending a letter. This state will be the condition where the letter sent was undeliverable. Add a method to the user decorater which digs into the usps_confirmation_codes for the user's profiles to see if the code was marked by the async undeliverable address notifier process. In that condition the user will receive an email notifying them to sign in to login.gov. When they sign in to login.gov rather than seeing a notification that tells them to enter their code they will see a message telling them their mail was undeliverable and to send a new letter they will need to update their address on file.
Why: So users can still be verified even after their US postal address is found to be undeliverable.
How: Introduce a new state to the usps screen for sending a letter. This state will be the condition where the letter sent was undeliverable. Add a method to the user decorater which digs into the usps_confirmation_codes for the user's profiles to see if the code was marked by the async undeliverable address notifier process. In that condition the user will receive an email notifying them to sign in to login.gov. When they sign in to login.gov rather than seeing a notification that tells them to enter their code they will see a message telling them their mail was undeliverable and to send a new letter they will need to update their address on file.
Hi! Before submitting your PR for review, and/or before merging it, please
go through the checklists below. These represent the more critical elements
of our code quality guidelines. The rest of the list can be found in
CONTRIBUTING.md
Controllers
authenticated, make sure to add
before_action :confirm_two_factor_authenticated
as the first callback.
Database
Unsafe migrations are implemented over several PRs and over several
deploys to avoid production errors. The strong_migrations gem
will warn you about unsafe migrations and has great step-by-step instructions
for various scenarios.
Indexes were added if necessary. This article provides a good overview
of indexes in Rails.
Verified that the changes don't affect other apps (such as the dashboard)
When relevant, a rake task is created to populate the necessary DB columns
in the various environments right before deploying, taking into account the users
who might not have interacted with this column yet (such as users who have not
set a password yet)
Migrations against existing tables have been tested against a copy of the
production database. See LG-228 Make migrations safer and more resilient #2127 for an example when a migration caused deployment
issues. In that case, all the migration did was add a new column and an index to
the Users table, which might seem innocuous.
Encryption
Routes
state or result in destructive behavior).
Session
user_session
helperinstead of the
session
helper so the data does not persist beyond the user'ssession.
Testing
and invalid inputs.