Skip to content

LG-10479 FSM/SSN - Check redirect for SSN Step#8913

Merged
gina-yamada merged 6 commits intomainfrom
gina/lg-10479-fsm/ssn-check-redirects-for-ssn
Aug 2, 2023
Merged

LG-10479 FSM/SSN - Check redirect for SSN Step#8913
gina-yamada merged 6 commits intomainfrom
gina/lg-10479-fsm/ssn-check-redirects-for-ssn

Conversation

@gina-yamada
Copy link
Contributor

@gina-yamada gina-yamada commented Aug 1, 2023

🎫 Ticket

LG-10479 FSM/SSN - Check redirect for SSN Step

🛠 Summary of changes

  • When the in_person_ssn_info_controller_enabled flag is set to true and when flow_session.pii_from_user has a ssn, mark the in person FSM ssn step as complete. (The user visited the non-FSM SSN step but we still need to mark the FSM SSN step as complete while we still have the FSM ssn step.)

📜 Testing Plan

  • Check that the bug 🐜 found in PR#8844 is resolved:
    (You can test on Joy or you can watch the before and after demo videos below)
  1. The in_person_ssn_info_controller_enabled flag should be set to true in the environment you will be testing.
  2. Create an account
  3. Go to /verify
  4. Upload state-issued ID (front + back) to fail ID verification
  5. Go to in person proofing
  6. Fill in State-Id information, Residential Address, and Social Security Number. (Notice the url for SSN is /verify/in_person_proofing/ssn. This is the non-FSM SSN version.)
  7. Once on /verify/in_person/verify_info change the url to the FSM version of SSN (/verify/in_person/ssn). You should not be redirected back to the SSN. You should remain on the Verify Info page. (This is what we fixed. Previously you would be directed back).
  8. Confirm you can visit the SSN page again my clicking Update on the SSN. You should be able to go back. (The url should be the new non-FSM url /verify/in_person_proofing/ssn.
  9. Once you are back on Verify Info (/verify/in_person/verify_info) change the url to the non-FSM version of SSN (/verify/in_person_proofing/ssn). You should not be redirected back to the SSN. You should remain on the Verify Info page. (This is to confirm the same behavior occurs for the non-FSM step).
  10. Confirm you can visit the SSN page again my clicking Update on the SSN. You should be able to go back. (The url should be the new non-FSM url /verify/in_person_proofing/ssn.
  • Check that user cannot hit ssn step by typing in url before they have arrived at this step by walking through the flow for both FSM and non-FSM flows
  • After arriving at the ssn step [by walking through the flow] the user cannot return to the ssn step by typing in the url for both FSM and non-FSM flows

Important Notes 📓

  • non-FSM can be tested in joy- it has the in_person_ssn_info_controller_enabled flag is set to true

  • fsm can be tested in dev- it has the in_person_ssn_info_controller_enabled flag is set to false

👀 Demo

Before: -- Please Open -- You should not be redirected so the SSN view when you change the URL to `/verify/in_person/ssn` on the Verify your information page but you are. This is what we are solving for.
  • - @0:11 seconds - Url is /verify/in_person_proofing/ssn - This shows the feature flag is on and we are using the non-FSM SSN step.
  • - @0:19 seconds - Url is changed to /verify/in_person/ssn (FSM-step) and we are redirected- we should not be!
  • - @0:42 seconds - Url is changed to /verify/in_person_proofing/ssn (non-FSM step) and we are not redirected (as expected).
Screen.Recording.2023-08-01.at.10.10.52.AM.mov
After: -- Please Open -- You should not be redirected so the SSN view when you change the URL to `/verify/in_person/ssn` on the Verify your information page, problem fixed.
  • - @0:11 seconds - Url is /verify/in_person_proofing/ssn - This shows the feature flag is on and we are using the non-FSM SSN step.
  • - @0:21 seconds - Url is changed to /verify/in_person/ssn (FSM-step) and we are not redirected- this is what was fixed!
  • - @0:45 seconds - Url is changed to /verify/in_person_proofing/ssn (non-FSM step) and we are not redirected (as expected).
Screen.Recording.2023-08-01.at.10.05.45.AM.mov


def confirm_ssn_step_complete
if IdentityConfig.store.in_person_ssn_info_controller_enabled
# mark ssn step as complete for FSM
Copy link
Contributor

Choose a reason for hiding this comment

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

should the comment read for non-fsm rather than fsm?

Copy link
Contributor Author

@gina-yamada gina-yamada Aug 1, 2023

Choose a reason for hiding this comment

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

@svalexander Although we are in the non-FSM step- I am actually marking the FSM step as complete. Here is my thinking (let me know your thoughts please)...

When the users manually changes the url to the FSM ssn step (because they did not visit it, it is not getting marked as complete) so they are able to visit it (not expected behavior) rather than being redirected back to Verify (expected behavior) because it is complete. If we mark it as complete (we have the data- they just got it on the new flow)- they will be redirect to Verify Info- and will have to get to SSN by using the Update button.

This will need to get removed in your delete PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

ahhh i see what you're saying, ok the comment makes sense then

Copy link
Contributor

@svalexander svalexander left a comment

Choose a reason for hiding this comment

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

works well, going to approve

@gina-yamada gina-yamada marked this pull request as ready for review August 1, 2023 20:52
@gina-yamada gina-yamada merged commit 72f8c28 into main Aug 2, 2023
@gina-yamada gina-yamada deleted the gina/lg-10479-fsm/ssn-check-redirects-for-ssn branch August 2, 2023 19:47
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.

2 participants