Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
1e5b17e
changelog: User-Facing Improvements, Identity Verification, Remove 40…
kbighorse May 26, 2023
a71d2a5
Remove old UploadStep and specs
soniaconnolly May 30, 2023
fa8b835
Remove UploadStep from DocAuthFlow
soniaconnolly May 30, 2023
6e50a4a
Don't set UploadStep complete/incomplete
soniaconnolly May 30, 2023
8029cc2
Remove idv_doc_auth_upload_step spec helper and usage
soniaconnolly May 30, 2023
cf92fc1
Remove doc_auth_hybrid_handoff_controller_enabled feature flag
soniaconnolly May 30, 2023
f876a37
Replace references to upload_step path in outage spec
soniaconnolly May 30, 2023
d8b5dc9
Remove step_count from upload analytics in analytics_spec
soniaconnolly May 30, 2023
6e029b6
Merge remote-tracking branch 'origin/main' into sonia-lg-9371-delete-…
soniaconnolly May 31, 2023
c8a910a
Merge remote-tracking branch 'origin/main' into sonia-lg-9371-delete-…
soniaconnolly Jun 1, 2023
5ed0929
Remove unused FSM view templates
soniaconnolly Jun 1, 2023
32858e4
Stop expecting flow_path in upload visited analytics
soniaconnolly Jun 1, 2023
cf6609e
Remove feature flag that crept in when merging main
soniaconnolly Jun 1, 2023
4ecd054
Merge remote-tracking branch 'origin/main' into sonia-lg-9371-delete-…
soniaconnolly Jun 2, 2023
74d6865
Merge remote-tracking branch 'origin/main' into sonia-lg-9371-delete-…
soniaconnolly Jun 2, 2023
9f152bf
Merge remote-tracking branch 'origin/main' into sonia-lg-9371-delete-…
soniaconnolly Jun 5, 2023
afa4187
Give LinkSent phone_for_mobile_flow via idv_session, not flow_session
soniaconnolly Jun 5, 2023
d1521ad
Remove remaining references to UploadStep
soniaconnolly Jun 6, 2023
5e51ece
Merge remote-tracking branch 'origin/main' into sonia-lg-9371-delete-…
soniaconnolly Jun 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/concerns/idv_step_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def confirm_document_capture_complete
redirect_to idv_document_capture_url
elsif flow_path == 'hybrid'
redirect_to idv_link_sent_url
else # no flow_path, go to UploadStep via FSM
redirect_to idv_doc_auth_url
else # no flow_path
redirect_to idv_hybrid_handoff_path
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/idv/doc_auth_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DocAuthController < ApplicationController

FLOW_STATE_MACHINE_SETTINGS = {
step_url: :idv_doc_auth_step_url,
final_url: :idv_link_sent_url,
final_url: :idv_hybrid_handoff_url,
flow: Idv::Flows::DocAuthFlow,
analytics_id: 'Doc Auth',
}.freeze
Expand Down
6 changes: 1 addition & 5 deletions app/controllers/idv/document_capture_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ def extra_view_variables
def confirm_upload_step_complete
return if flow_session[:flow_path].present?

if IdentityConfig.store.doc_auth_hybrid_handoff_controller_enabled
redirect_to idv_hybrid_handoff_url
else
redirect_to idv_doc_auth_url
end
redirect_to idv_hybrid_handoff_url
end

def confirm_document_capture_needed
Expand Down
7 changes: 0 additions & 7 deletions app/controllers/idv/hybrid_handoff_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def handle_phone_submission
throttle.increment!
return throttled_failure if throttle.throttled?
idv_session.phone_for_mobile_flow = params[:doc_auth][:phone]
flow_session[:phone_for_mobile_flow] = idv_session.phone_for_mobile_flow
flow_session[:flow_path] = 'hybrid'
telephony_result = send_link
telephony_form_response = build_telephony_form_response(telephony_result)
Expand All @@ -63,9 +62,6 @@ def handle_phone_submission

if !failure_reason
redirect_to idv_link_sent_url

# for the 50/50 state
flow_session['Idv::Steps::UploadStep'] = true
else
redirect_to idv_hybrid_handoff_url
flow_session[:flow_path] = nil
Expand Down Expand Up @@ -124,9 +120,6 @@ def bypass_send_link_steps
flow_session[:flow_path] = 'standard'
redirect_to idv_document_capture_url

# for the 50/50 state
flow_session['Idv::Steps::UploadStep'] = true

analytics.idv_doc_auth_upload_submitted(
**analytics_arguments.merge(
form_response(destination: :document_capture).to_h,
Expand Down
24 changes: 4 additions & 20 deletions app/controllers/idv/link_sent_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def update
end

def extra_view_variables
{ phone: flow_session[:phone_for_mobile_flow],
{ phone: idv_session.phone_for_mobile_flow,
flow_session: flow_session }
end

Expand All @@ -47,10 +47,8 @@ def confirm_upload_step_complete

if flow_session[:flow_path] == 'standard'
redirect_to idv_document_capture_url
elsif IdentityConfig.store.doc_auth_hybrid_handoff_controller_enabled
redirect_to idv_hybrid_handoff_url
else
redirect_to idv_doc_auth_url
redirect_to idv_hybrid_handoff_url
end
end

Expand All @@ -75,18 +73,12 @@ def analytics_arguments
def handle_document_verification_success(get_results_response)
save_proofing_components(current_user)
extract_pii_from_doc(current_user, get_results_response, store_in_session: true)
mark_upload_step_complete
flow_session[:flow_path] = 'hybrid'
end

def render_document_capture_cancelled
if IdentityConfig.store.doc_auth_hybrid_handoff_controller_enabled
redirect_to idv_hybrid_handoff_url
flow_session[:flow_path] = nil
else
mark_upload_step_incomplete
redirect_to idv_doc_auth_url # was idv_url, why?
end
redirect_to idv_hybrid_handoff_url
flow_session[:flow_path] = nil
failure(I18n.t('errors.doc_auth.document_capture_cancelled'))
end

Expand All @@ -105,14 +97,6 @@ def document_capture_session_result
end
end

def mark_upload_step_complete
flow_session['Idv::Steps::UploadStep'] = true
end

def mark_upload_step_incomplete
flow_session['Idv::Steps::UploadStep'] = nil
end

def extend_timeout_using_meta_refresh
max_10min_refreshes = IdentityConfig.store.doc_auth_extend_timeout_by_minutes / 10
return if max_10min_refreshes <= 0
Expand Down
8 changes: 2 additions & 6 deletions app/services/idv/actions/cancel_link_sent_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ def self.analytics_submitted_event
end

def call
if IdentityConfig.store.doc_auth_hybrid_handoff_controller_enabled
redirect_to idv_hybrid_handoff_url
flow_session[:flow_path] = nil
else
mark_step_incomplete(:upload)
end
redirect_to idv_hybrid_handoff_url
flow_session[:flow_path] = nil
end
end
end
Expand Down
4 changes: 1 addition & 3 deletions app/services/idv/actions/redo_document_capture_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ def call
flow_session['redo_document_capture'] = true
if flow_session[:skip_upload_step]
redirect_to idv_document_capture_url
elsif IdentityConfig.store.doc_auth_hybrid_handoff_controller_enabled
else
redirect_to idv_hybrid_handoff_url
flow_session[:flow_path] = nil
else
mark_step_incomplete(:upload)
end
end
end
Expand Down
1 change: 0 additions & 1 deletion app/services/idv/flows/doc_auth_flow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ class DocAuthFlow < Flow::BaseFlow
STEPS = {
welcome: Idv::Steps::WelcomeStep,
agreement: Idv::Steps::AgreementStep,
upload: Idv::Steps::UploadStep,
}.freeze

STEP_INDICATOR_STEPS = [
Expand Down
2 changes: 0 additions & 2 deletions app/services/idv/steps/agreement_step.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ def self.analytics_submitted_event
end

def call
return if !IdentityConfig.store.doc_auth_hybrid_handoff_controller_enabled

if flow_session[:skip_upload_step]
redirect_to idv_document_capture_url
flow_session[:flow_path] = 'standard'
Expand Down
191 changes: 0 additions & 191 deletions app/services/idv/steps/upload_step.rb

This file was deleted.

12 changes: 0 additions & 12 deletions app/views/idv/doc_auth/document_capture.html.erb

This file was deleted.

Loading