Skip to content

LG-13627 Add doc auth result to in_person enrollments#10950

Merged
theabrad merged 18 commits intomainfrom
abrad-lg-13627-doc-auth-result-ipp
Jul 23, 2024
Merged

LG-13627 Add doc auth result to in_person enrollments#10950
theabrad merged 18 commits intomainfrom
abrad-lg-13627-doc-auth-result-ipp

Conversation

@theabrad
Copy link
Contributor

🎫 Ticket

LG-13627

🛠 Summary of changes

Since we are adding the option for a user to go through In person proofing if they fail doc auth we want to track the doc_auth_result to an in_person enrollment.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Go through IdV
  • Place a failing doc auth yml which gives you the option to try In person proofing. I used spec/fixtures/ial2_test_credential_back_fail_doc_auth_face_match_errors.yml
  • Create an in-person enrollment
  • Check the rails console for the user to see if the enrollment has a doc_auth_result (InPersonEnrollment.last)

@theabrad theabrad requested review from amirbey, jmax-gsa and solipet July 16, 2024 20:58
theabrad added 4 commits July 17, 2024 10:55
changelog: Internal, IdV, Add doc_auth_result to in_person enrollments table
Copy link
Contributor

@amirbey amirbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 suggestions
LGTM ... thanks @theabrad!

Comment on lines +94 to +95
attributes[:in_person_proofing_status] = last_enrollment.status
attributes[:doc_auth_result] = last_enrollment.doc_auth_result
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be hepful to add in_person_proofing_status and doc_auth_result to user_registration_complete method in analytics_events.rb ?

Comment on lines +92 to +93
if current_user.in_person_enrollments.any?
last_enrollment = current_user.in_person_enrollments.last
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if current_user.in_person_enrollments.any?
last_enrollment = current_user.in_person_enrollments.last
if (last_enrollment = current_user.in_person_enrollments.last)

@theabrad theabrad merged commit 94eff49 into main Jul 23, 2024
@theabrad theabrad deleted the abrad-lg-13627-doc-auth-result-ipp branch July 23, 2024 16:43
mitchellhenke pushed a commit that referenced this pull request Jul 31, 2024
* add doc_auth_result to in_person_enrollments table

We want to track doc auth results (unknown, failed, attention) on a
user's in-person enrollment

* store doc_auth_result in idv_session

Co-authored-by: Doug Price <douglas.price@gsa.gov>

* add doc_auth_result to ipp enrollment

* add doc_auth_result to analytics events

* add doc_auth_result to DocumentCaptureSession

* doc_auth_result into documentcapturesession part 2

* passing the doc_auth_result via the DocumentCaptureSession model

* added test for doc_auth_result in enrollment

* api_image_upload_form test for failed doc_auth_response

* track analytics for ipp doc_auth_result after finishing ipp

* add changelog

changelog: Internal, IdV, Add doc_auth_result to in_person enrollments table

* lint

* fix specs

* db schema fix

* allow doc_auth_result to be stored in standard and hybrid flow

* small fixup

* revert hybrid user test to what it was before

* add in_person_proofing_result and doc_auth_result to the analytics event

---------

Co-authored-by: Doug Price <douglas.price@gsa.gov>
@eileen-nava
Copy link
Contributor

Hi @theabrad, in the future when you submit a PR that affects Joy domain, could you please tag @identity-joy-engineers for a review? It would help us keep track of changes in files that we’re working on.

You can also post the PR in the #login-team-joy-eng channel and tag the @login-joy-engineers group, if you want to be sure that someone sees the request promptly. Thanks! 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants