Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion app/controllers/idv/agreement_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def analytics_arguments
end

def skip_to_capture
flow_session[:skip_upload_step] = true
idv_session.flow_path = 'standard'

# Store that we're skipping hybrid handoff so if the user
Expand Down
1 change: 0 additions & 1 deletion app/controllers/idv/getting_started_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def cancel_previous_in_person_enrollments
end

def skip_to_capture
flow_session[:skip_upload_step] = true
idv_session.flow_path = 'standard'

# Store that we're skipping hybrid handoff so if the user
Expand Down
7 changes: 1 addition & 6 deletions app/controllers/idv/hybrid_handoff_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,6 @@ def confirm_hybrid_handoff_needed
if idv_session.skip_hybrid_handoff?
# We previously skipped hybrid handoff. Keep doing that.
idv_session.flow_path = 'standard'
elsif flow_session[:skip_upload_step]
# TEMP: Will be removing :skip_upload_step in future commit
idv_session.flow_path = 'standard'
end

if !FeatureManagement.idv_allow_hybrid_flow?
Expand All @@ -224,9 +221,7 @@ def setup_for_redo
# If we previously skipped hybrid handoff for the user (because they're on a mobile
# device with a camera), skip it _again_ here.

if flow_session[:skip_upload_step]
idv_session.flow_path = 'standard'
elsif idv_session.skip_hybrid_handoff?
if idv_session.skip_hybrid_handoff?
idv_session.flow_path = 'standard'
else
idv_session.flow_path = nil
Expand Down
2 changes: 1 addition & 1 deletion app/services/analytics_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def idv_consent_checkbox_toggled(checked:, **extra)
end

# User has consented to share information with document upload and may
# view the "hybrid handoff" step next unless "skip_upload" param is true
# view the "hybrid handoff" step next unless "skip_hybrid_handoff" param is true
def idv_doc_auth_agreement_submitted(**extra)
track_event('IdV: doc auth agreement submitted', **extra)
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/idv/hybrid_handoff/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@
</div>
</div>

<%= render 'idv/doc_auth/cancel', step: 'upload' %>
<%= render 'idv/doc_auth/cancel', step: 'hybrid_handoff' %>
8 changes: 0 additions & 8 deletions spec/controllers/idv/agreement_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,6 @@
}.from(nil).to('standard')
end

it 'sets flow_session[:skip_upload_step] to true' do
expect do
put :update, params: params
end.to change {
subject.flow_session[:skip_upload_step]
}.from(nil).to(true)
end

it 'redirects to hybrid handoff' do
put :update, params: params
expect(response).to redirect_to(idv_hybrid_handoff_url)
Expand Down
8 changes: 0 additions & 8 deletions spec/controllers/idv/getting_started_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,6 @@
}.from(nil).to('standard')
end

it 'sets flow_session[:skip_upload_step] to true' do
expect do
put :update, params: params
end.to change {
subject.flow_session[:skip_upload_step]
}.from(nil).to(true)
end

it 'redirects to hybrid handoff' do
put :update, params: params
expect(response).to redirect_to(idv_hybrid_handoff_url)
Expand Down
19 changes: 0 additions & 19 deletions spec/controllers/idv/hybrid_handoff_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,6 @@
expect(response).to render_template :show
end

context 'skip_upload_step is set on flow_session' do
before do
subject.user_session['idv/doc_auth'][:skip_upload_step] = true
end
it 'redirects to document_capture' do
subject.idv_session.flow_path = 'standard'
get :show, params: { redo: true }

expect(response).to redirect_to(idv_document_capture_url)
end
end

context 'idv_session.skip_hybrid_handoff? is true' do
before do
subject.idv_session.skip_hybrid_handoff = true
Expand Down Expand Up @@ -166,13 +154,6 @@
get :show
expect(response).to redirect_to(idv_document_capture_url)
end
it 'does not set flow_session[:skip_upload_step]' do
expect do
get :show
end.not_to change {
subject.flow_session[:skip_upload_step]
}.from(nil)
end
it 'does not set idv_session.skip_hybrid_handoff' do
expect do
get :show
Expand Down