From b7fb72f4737ab048c4b9fd12e92d685d6daff241 Mon Sep 17 00:00:00 2001 From: Luis Date: Fri, 26 Aug 2022 12:20:41 -0500 Subject: [PATCH] Alphabetize tracker_events [skip changelog] --- .../irs_attempts_api/tracker_events.rb | 66 +++++++++---------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/app/services/irs_attempts_api/tracker_events.rb b/app/services/irs_attempts_api/tracker_events.rb index 9ca7e8f69bc..f9d7867828d 100644 --- a/app/services/irs_attempts_api/tracker_events.rb +++ b/app/services/irs_attempts_api/tracker_events.rb @@ -3,6 +3,17 @@ # rubocop:disable Metrics/ModuleLength module IrsAttemptsApi module TrackerEvents + # param [Boolean] success True if Account Successfully Deleted + # param [Hash>] failure_reason displays why account deletion failed + # A User confirms and deletes their Login.gov account after 24 hour period + def account_reset_account_deleted(success:, failure_reason:) + track_event( + :account_reset_account_deleted, + success: success, + failure_reason: failure_reason, + ) + end + # param [Boolean] success True if account reset request is cancelled # A user cancels the request to delete their account before 24 hour period def account_reset_cancel_request(success:) @@ -21,17 +32,6 @@ def account_reset_request_submitted(success:) ) end - # param [Boolean] success True if Account Successfully Deleted - # param [Hash>] failure_reason displays why account deletion failed - # A User confirms and deletes their Login.gov account after 24 hour period - def account_reset_account_deleted(success:, failure_reason:) - track_event( - :account_reset_account_deleted, - success: success, - failure_reason: failure_reason, - ) - end - # @param ["mobile", "desktop"] upload_method method chosen for uploading id verification # A user has selected id document upload method def document_upload_method_selected(upload_method:) @@ -52,6 +52,16 @@ def email_and_password_auth(email:, success:) ) end + # @param [Boolean] success + # @param [Hash>] failure_reason + def forgot_password_email_confirmed(success:, failure_reason: nil) + track_event( + :forgot_password_email_confirmed, + success: success, + failure_reason: failure_reason, + ) + end + # The user has exceeded the rate limit for password reset emails # @param [String] email The user's email address def forgot_password_email_rate_limited(email:) @@ -74,9 +84,9 @@ def forgot_password_email_sent(email:, success:) # @param [Boolean] success # @param [Hash>] failure_reason - def forgot_password_email_confirmed(success:, failure_reason: nil) + def forgot_password_new_password_submitted(success:, failure_reason: nil) track_event( - :forgot_password_email_confirmed, + :forgot_password_new_password_submitted, success: success, failure_reason: failure_reason, ) @@ -146,16 +156,6 @@ def logout_initiated(success:) ) end - # @param [Boolean] success - # @param [Hash>] failure_reason - def forgot_password_new_password_submitted(success:, failure_reason: nil) - track_event( - :forgot_password_new_password_submitted, - success: success, - failure_reason: failure_reason, - ) - end - # Tracks when the user has attempted to enroll the Backup Codes MFA method to their account # @param [Boolean] success def mfa_enroll_backup_code(success:) @@ -188,16 +188,6 @@ def mfa_enroll_phone_otp_sent(phone_number:, success:) ) end - # @param [Boolean] success - True if the sms otp submitted matched what was sent - # The user, after having previously been sent an OTP code during phone enrollment - # has been asked to submit that code. - def mfa_enroll_phone_otp_submitted(success:) - track_event( - :mfa_enroll_phone_otp_submitted, - success: success, - ) - end - # @param [String] phone_number - The user's phone number used for multi-factor authentication # @param [Boolean] success - True if the user was locked out # The user has exceeded the rate limit for SMS OTP sends. @@ -209,6 +199,16 @@ def mfa_enroll_phone_otp_sent_rate_limited(phone_number:, success:) ) end + # @param [Boolean] success - True if the sms otp submitted matched what was sent + # The user, after having previously been sent an OTP code during phone enrollment + # has been asked to submit that code. + def mfa_enroll_phone_otp_submitted(success:) + track_event( + :mfa_enroll_phone_otp_submitted, + success: success, + ) + end + # Tracks when the user has attempted to enroll the piv cac MFA method to their account # @param [String] subject_dn # @param [Boolean] success