Skip to content

LG-11725 FlowPolicy for personal key#9776

Merged
matthinz merged 19 commits intomainfrom
matthinz/11725-personal-key-back
Dec 20, 2023
Merged

LG-11725 FlowPolicy for personal key#9776
matthinz merged 19 commits intomainfrom
matthinz/11725-personal-key-back

Conversation

@matthinz
Copy link
Contributor

@matthinz matthinz commented Dec 15, 2023

🎫 Ticket

LG-11725

🛠 Summary of changes

  • Added a step_info method to PersonalKeyController
  • Incorporated PersonalKeyController into FlowPolicy

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Start IdV. Verify you cannot get to /verify/personal_key, but are instead redirected back to where you were in the flow
  • Continue IdV to the personal key screen. Verify that attempting to manually go to any prior screen redirects you to the personal key
  • Complete IdV. Verify the back button cannot be used to return to the personal key screen

@matthinz matthinz marked this pull request as draft December 15, 2023 19:55
end
end

context 'personal key already acknowledged' do
Copy link
Contributor

Choose a reason for hiding this comment

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

As noted above, I think this is a back button prevention check and it should just show the personal key rather than redirecting. Especially since the user might realize they didn't save their key after all and want to go back and look at it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think you may be right

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thinking more about it, this would be a change from how we operate right now--we explicitly remove the personal key from the session after it's been acknowledged. So I think showing the basic "Your identity has already been verified" for now is the right call and I can capture the change in a follow up ticket

Copy link
Contributor

Choose a reason for hiding this comment

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

Did you have a chance to put in this followup ticket?

@matthinz matthinz changed the title WIP: LG-11725 FlowPolicy for personal key LG-11725 FlowPolicy for personal key Dec 18, 2023
Copy link
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

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

One comment about stub_verify_steps_one_and_two

@matthinz matthinz marked this pull request as ready for review December 19, 2023 00:10
@soniaconnolly
Copy link
Contributor

While testing this, I found an issue that's also on main: In the in person flow, when I get to the personal key page, it will let me redirect forward to the barcode page (/verify/in_person/how_to_verify). Seems like we need to incorporate that into FlowPolicy!

Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

LGTM! Tested locally, works as described.

@matthinz matthinz merged commit d2e0b2a into main Dec 20, 2023
@matthinz matthinz deleted the matthinz/11725-personal-key-back branch December 20, 2023 18:51
@jmdembe jmdembe mentioned this pull request Dec 21, 2023
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.

3 participants