LG-16729 Add Preconditions to ChooseIdTypeController's Flow Policy#12537
LG-16729 Add Preconditions to ChooseIdTypeController's Flow Policy#12537WilliamBirdsall merged 1 commit intomainfrom
Conversation
| idv_session.flow_path == 'standard' && ( | ||
| !idv_session.skip_doc_auth_from_handoff || # is not ipp from desktop | ||
| idv_session.skip_hybrid_handoff || # is not mobile user | ||
| !idv_session.skip_doc_auth_from_how_to_verify || # is not ipp user | ||
| !idv_session.selfie_check_required || # desktop but selfie not required | ||
| idv_session.desktop_selfie_test_mode_enabled? | ||
| ) |
There was a problem hiding this comment.
| idv_session.flow_path == 'standard' && ( | |
| !idv_session.skip_doc_auth_from_handoff || # is not ipp from desktop | |
| idv_session.skip_hybrid_handoff || # is not mobile user | |
| !idv_session.skip_doc_auth_from_how_to_verify || # is not ipp user | |
| !idv_session.selfie_check_required || # desktop but selfie not required | |
| idv_session.desktop_selfie_test_mode_enabled? | |
| ) | |
| idv_session.flow_path == 'standard' && | |
| !idv_session.skip_doc_auth_from_handoff && # is not ipp from desktop | |
| !idv_session.skip_doc_auth_from_how_to_verify |
There was a problem hiding this comment.
selfie_check_required is no longer relevant ...
and ,the standard_flow is true if either idv_session.desktop_selfie_test_mode_enabled? or idv_session.skip_hybrid_handoff is true
for hybrid flow:
i think adding a before filter to hybrid document_capture_controller:
def id_type_chosen?
document_capture_session.passport_status.present?
end
There was a problem hiding this comment.
There is already a before action on hybrid doc capture controller:
before_action :ensure_choose_id_type_completed, only: :show
Would this suffice?
There was a problem hiding this comment.
It appears to be doing the same check
2d6d693 to
4c72abb
Compare
solipet
left a comment
There was a problem hiding this comment.
Tested against the branch and against main - worked great!
Could we add a feature spec to demonstrate this? Maybe in spec/features/idv/doc_auth/choose_id_type_spec.rb?
4c72abb to
9918d11
Compare
|
Spec test added! |
9918d11 to
fcb75de
Compare
fcb75de to
9ba085f
Compare
changelog: Bug Fixes, Flow Policy, Add Preconditions to ChooseIdTypeController
9ba085f to
f0eb5c8
Compare
🎫 Ticket
Link to the relevant ticket:
LG-16729
🛠 Summary of changes
Add Preconditions to ChooseIdTypeController
Notes:
📜 Testing Plan
Provide a checklist of steps to confirm the changes.
verify/choose_id_type