diff --git a/app/services/analytics_events.rb b/app/services/analytics_events.rb index 61f64f14cfa..1dc7c7d71e3 100644 --- a/app/services/analytics_events.rb +++ b/app/services/analytics_events.rb @@ -1363,8 +1363,8 @@ def idv_enter_password_visited( # @param [String, nil] deactivation_reason Reason user's profile was deactivated, if any. # @param [Boolean] fraud_review_pending Profile is under review for fraud # @param [Boolean] fraud_rejection Profile is rejected due to fraud - # @param [Boolean] gpo_verification_pending Profile is awaiting gpo verificaiton - # @param [Boolean] in_person_verification_pending Profile is awaiting in person verificaiton + # @param [Boolean] gpo_verification_pending Profile is awaiting gpo verification + # @param [Boolean] in_person_verification_pending Profile is awaiting in person verification # @param [Idv::ProofingComponentsLogging] proofing_components User's current proofing components # @param [String,nil] active_profile_idv_level ID verification level of user's active profile. # @param [String,nil] pending_profile_idv_level ID verification level of user's pending profile. diff --git a/lib/reporting/identity_verification_report.rb b/lib/reporting/identity_verification_report.rb index a7b703073d9..0c6171a63e0 100644 --- a/lib/reporting/identity_verification_report.rb +++ b/lib/reporting/identity_verification_report.rb @@ -107,6 +107,7 @@ def as_csv csv << ['Workflow completed - In-Person Pending', idv_final_resolution_in_person] csv << ['Workflow completed - Fraud Review Pending', idv_final_resolution_fraud_review] csv << [] + csv << ['Fraud review rejected', idv_fraud_rejected] csv << ['Successfully Verified', successfully_verified_users] csv << ['Successfully Verified - With phone number', idv_final_resolution_verified] csv << ['Successfully Verified - With mailed code', gpo_verification_submitted] diff --git a/spec/lib/reporting/identity_verification_report_spec.rb b/spec/lib/reporting/identity_verification_report_spec.rb index 37319501490..742e062cf03 100644 --- a/spec/lib/reporting/identity_verification_report_spec.rb +++ b/spec/lib/reporting/identity_verification_report_spec.rb @@ -14,7 +14,7 @@ cloudwatch_client = double( 'Reporting::CloudwatchClient', fetch: [ - # Online verification user (failed each vendor once, then suceeded once) + # Online verification user (failed each vendor once, then succeeded once) { 'user_id' => 'user1', 'name' => 'IdV: doc auth welcome visited' }, { 'user_id' => 'user1', 'name' => 'IdV: doc auth welcome submitted' }, { 'user_id' => 'user1', 'name' => 'IdV: doc auth image upload vendor submitted', 'doc_auth_failed_non_fraud' => '1' }, @@ -38,6 +38,13 @@ { 'user_id' => 'user3', 'name' => 'IdV: final resolution', 'fraud_review_pending' => '1' }, { 'user_id' => 'user3', 'name' => 'Fraud: Profile review passed', 'success' => '1' }, + # Fraud review user (rejected) + { 'user_id' => 'user3', 'name' => 'IdV: doc auth welcome visited' }, + { 'user_id' => 'user3', 'name' => 'IdV: doc auth welcome submitted' }, + { 'user_id' => 'user3', 'name' => 'IdV: doc auth image upload vendor submitted', 'success' => '1' }, + { 'user_id' => 'user3', 'name' => 'IdV: final resolution', 'fraud_review_pending' => '1' }, + { 'user_id' => 'user3', 'name' => 'Fraud: Profile review rejected', 'success' => '1' }, + # Success through address confirmation user { 'user_id' => 'user4', 'name' => 'IdV: GPO verification submitted' }, { 'user_id' => 'user4', 'name' => 'Fraud: Profile review passed', 'success' => '1' }, @@ -79,6 +86,7 @@ ['Workflow completed - In-Person Pending', 1], ['Workflow completed - Fraud Review Pending', 1], [], + ['Fraud review rejected', 1], ['Successfully Verified', 4], ['Successfully Verified - With phone number', 1], ['Successfully Verified - With mailed code', 1], @@ -121,6 +129,7 @@ ['Workflow completed - In-Person Pending', '1'], ['Workflow completed - Fraud Review Pending', '1'], [], + ['Fraud review rejected', '1'], ['Successfully Verified', '4'], ['Successfully Verified - With phone number', '1'], ['Successfully Verified - With mailed code', '1'], @@ -162,6 +171,7 @@ 'IdV Reject: Phone Finder' => 1, 'IdV Reject: Verify' => 1, 'Fraud: Profile review passed' => 2, + 'Fraud: Profile review rejected' => 1, ) end end