Skip to content

LG-9464 GPO Verify to use profile instead of proofing components#8263

Merged
eric-gade merged 9 commits intomainfrom
eric-lg-9464
May 2, 2023
Merged

LG-9464 GPO Verify to use profile instead of proofing components#8263
eric-gade merged 9 commits intomainfrom
eric-lg-9464

Conversation

@eric-gade
Copy link
Contributor

In lieu of checking the actual proofing component result

changelog: Internal, ThreatMetrix, Use Profile methods for checking TMx status

🎫 Ticket

LG-9464

🛠 Summary of changes

Instead of checking fraud check values directly in the proofing component result, we look for the set values in the user's current Profile.

Copy link
Contributor

Choose a reason for hiding this comment

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

i would remove the name threatmetrix and replace it with fraud_check_failed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed in df78eea

Copy link
Contributor

Choose a reason for hiding this comment

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

see previous comment about naming

Copy link
Contributor

Choose a reason for hiding this comment

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

Following up on pairing conversation for others reading the PR: We should be able to delete the proofing components from this test setup if we're only looking at profiles. However, in_person_enrollment is still determined from the ProofingComponent, and GpoVerifyForm is looking at ProofingComponents for both in_person_enrollment and threatmetrix status. Changing the code is relatively straightforward. Changing the test setup is much more complex. There's a lot of room for consolidation and refactoring in how we check threatmetrix and in_person_enrollment status throughout the code.

eric-gade and others added 7 commits April 27, 2023 14:54
In lieu of checking the actual proofing component result

changelog: Internal, ThreatMetrix, Use Profile methods for checking
TMx status
Co-authored-by: Eric Gade <eric.gade@gsa.gov>
Stop mocking fraud_review_pending in helper method
stub_user_with_pending_profile

Co-authored-by: Sonia Connolly <sonia.connolly@gsa.gov>
Co-authored-by: Amir Reavis-Bey <amir.reavis-bey@gsa.gov>
Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

Looks good!

@eric-gade eric-gade merged commit 8e9548a into main May 2, 2023
@eric-gade eric-gade deleted the eric-lg-9464 branch May 2, 2023 16:06
@mdiarra3 mdiarra3 mentioned this pull request May 4, 2023
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.

3 participants