Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
15 changes: 0 additions & 15 deletions app/controllers/concerns/idv/document_capture_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@ module Idv
module DocumentCaptureConcern
extend ActiveSupport::Concern

def save_proofing_components(user)
return unless user

doc_auth_vendor = DocAuthRouter.doc_auth_vendor(
discriminator: document_capture_session_uuid,
analytics: analytics,
)

component_attributes = {
document_check: doc_auth_vendor,
document_type: 'state_id',
}
ProofingComponent.create_or_find_by(user: user).update(component_attributes)
end

def successful_response
FormResponse.new(success: true)
end
Expand Down
11 changes: 1 addition & 10 deletions app/controllers/concerns/idv/verify_info_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,20 +203,11 @@ def summarize_result_and_rate_limit(summary_result)
proofing_results_exception = summary_result.extra.dig(:proofing_results, :exception)
resolution_rate_limiter.increment! if proofing_results_exception.blank?

if summary_result.success?
add_proofing_components
else
if !summary_result.success?
idv_failure(summary_result)
end
end

def add_proofing_components
ProofingComponent.create_or_find_by(user: current_user).update(
resolution_check: Idp::Constants::Vendors::LEXIS_NEXIS,
source_check: Idp::Constants::Vendors::AAMVA,
)
end

def load_async_state
dcs_uuid = idv_session.verify_info_step_document_capture_session_uuid
dcs = DocumentCaptureSession.find_by(uuid: dcs_uuid)
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/idv/by_mail/request_letter_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ def update_tracking
**ab_test_analytics_buckets,
)
create_user_event(:gpo_mail_sent, current_user)

ProofingComponent.find_or_create_by(user: current_user).update(address_check: 'gpo_letter')
end

def resend_requested?
Expand Down
1 change: 0 additions & 1 deletion app/controllers/idv/document_capture_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ def analytics_arguments

def handle_stored_result
if stored_result&.success? && selfie_requirement_met?
save_proofing_components(current_user)
extract_pii_from_doc(current_user, store_in_session: true)
flash[:success] = t('doc_auth.headings.capture_complete')
successful_response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def analytics_arguments

def handle_stored_result
if stored_result&.success? && selfie_requirement_met?
save_proofing_components(document_capture_user)
extract_pii_from_doc(document_capture_user)
successful_response
else
Expand Down
7 changes: 0 additions & 7 deletions app/controllers/idv/in_person/usps_locations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def update
selected_location_details: update_params.as_json,
issuer: current_sp&.issuer,
)
add_proofing_component

render json: { success: true }, status: :ok
end
Expand All @@ -58,12 +57,6 @@ def proofer
@proofer ||= EnrollmentHelper.usps_proofer
end

def add_proofing_component
ProofingComponent.
create_or_find_by(user: current_or_hybrid_user).
update(document_check: Idp::Constants::Vendors::USPS)
end

def handle_error(err)
remapped_error = case err
when ActionController::InvalidAuthenticityToken,
Expand Down
1 change: 0 additions & 1 deletion app/controllers/idv/link_sent_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def analytics_arguments
end

def handle_document_verification_success
save_proofing_components(current_user)
extract_pii_from_doc(current_user, store_in_session: true)
idv_session.flow_path = 'hybrid'
end
Expand Down
5 changes: 0 additions & 5 deletions app/controllers/idv/personal_key_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def show
if pii_is_missing?
redirect_to_retrieve_pii
else
add_proofing_component
finish_idv_session
end
end
Expand Down Expand Up @@ -79,10 +78,6 @@ def next_step
end
end

def add_proofing_component
ProofingComponent.find_or_create_by(user: current_user).update(verified_at: Time.zone.now)
end

def finish_idv_session
@code = personal_key
@personal_key_generated_at = current_user.personal_key_generated_at
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/idv/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class SessionsController < ApplicationController

def destroy
cancel_processing
clear_session
log_analytics
clear_session
redirect_to idv_url
end

Expand Down
8 changes: 0 additions & 8 deletions app/jobs/resolution_proofing_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def make_vendor_proofing_requests(
)

log_threatmetrix_info(result.device_profiling_result, user)
add_threatmetrix_proofing_component(user.id, result.device_profiling_result) if user.present?

CallbackLogData.new(
device_profiling_success: result.device_profiling_result.success?,
Expand All @@ -125,11 +124,4 @@ def logger_info_hash(hash)
def progressive_proofer
@progressive_proofer ||= Proofing::Resolution::ProgressiveProofer.new
end

def add_threatmetrix_proofing_component(user_id, threatmetrix_result)
ProofingComponent.
create_or_find_by(user_id: user_id).
update(threatmetrix: FeatureManagement.proofing_device_profiling_collecting_enabled?,
threatmetrix_review_status: threatmetrix_result.review_status)
end
end
4 changes: 4 additions & 0 deletions app/models/anonymous_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ def uuid
'anonymous-uuid'
end

def establishing_in_person_enrollment; end

def pending_in_person_enrollment; end

def second_factor_locked_at
nil
end
Expand Down
Loading