LG-14010 - More detailed error page for Socure errors #11560
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added plumbing and UX display for categorized Socure errors.
changelog Upcoming Features, Socure, Added nice error displays
🎫 Ticket
Link to the relevant ticket:
LG-14010
🛠 Summary of changes
Passed the Socure errors through from the original DocV response back through the document capture result, then added a presenter and updated error page to display it all nicely.
📜 Testing Plan
This test procedure requires a sandbox set up to use Socure. See jmax
or Doug to coordinate use of one.
/srv/idp/current/app/services/doc_auth/socure/responses/docv_result_response.rb
. Insertthe following lines after line 36:
Exit the SSM sesion and reboot Puma
Connect to the IDP, create an account, and begin IdV. Verify that
you end up on the Category 1 error page.
Cancel out of IdV and return to your account page.
SSM into the sandbox and modify the above file once again. Change the error code from 'I848' to 'I849'.
Exit the SSM session and reboot Puma
Connect to the IDP, create an account, and begin IdV. Verify that
you end up on the Category 2 error page.
Cancel out of IdV and return to your account page.
SSM into the sandbox and modify the above file once again. Change the error code from 'I849' to 'R827'.
Exit the SSM session and reboot Puma
Connect to the IDP, create an account, and begin IdV. Verify that
you end up on the Category 3 error page.
Cancel out of IdV and return to your account page.
SSM into the sandbox and modify the above file once again. Change the error code from 'R827' to 'I808'.
Exit the SSM session and reboot Puma
Connect to the IDP, create an account, and begin IdV. Verify that
you end up on the Category 4 error page.
Cancel out of IdV and return to your account page.
SSM into the sandbox and modify the above file once again. Change the error code from 'I808' to 'R845'.
Exit the SSM session and reboot Puma
Connect to the IDP, create an account, and begin IdV. Verify that
you end up on the Category 5 error page.
Cancel out of IdV and return to your account page.
SSM into the sandbox and modify the above file once again. Change the error code from 'R845' to 'I856'.
Exit the SSM session and reboot Puma
Connect to the IDP, create an account, and begin IdV. Verify that
you end up on the Category 6 error page.
Cancel out of IdV and return to your account page.
SSM into the sandbox and modify the above file once again. This
time, remove the error code line completely and replace it with
raise "Some error"
Exit the SSM session and reboot Puma
Connect to the IDP, create an account, and begin IdV. Verify that
you end up on the Category 7 error page.
Cancel out of IdV, return to your account page, and log out.
👀 Screenshots
If relevant, include a screenshot or screen capture of the changes.
Category 1 error page
Category 2 error page
Category 3 error page
Category 4 error page
Category 5 error page
Category 6 errpr page
Category 7 error page