Skip to content

LG-8749: IDV TMX Fraud check event tracking#7924

Merged
olatifflexion merged 5 commits intomainfrom
olatif/LG-8749-idv-tmx-fraud-event
Mar 6, 2023
Merged

LG-8749: IDV TMX Fraud check event tracking#7924
olatifflexion merged 5 commits intomainfrom
olatif/LG-8749-idv-tmx-fraud-event

Conversation

@olatifflexion
Copy link
Contributor

changelog: Internal, Attempts API, Track additional TMX fraud check event

changelog: Internal, Attempts API, Track additional TMX fraud check event

function MockDeviceProfilingOptions() {
const [selectedValue, setSelectedValue] = useState('');
const [selectedValue, setSelectedValue] = useState('pass');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting the default selected value as a pass because it was missed in #7892 PR for LG-8985 “Make Pass the default option for a mock”.

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

"request_result":"fail_invalid_parameter",
"review_status":"REVIEW_STATUS"
"review_status":"REVIEW_STATUS",
"tmx_summary_reason_code": ["Identity_Negative_History"]
Copy link
Contributor

Choose a reason for hiding this comment

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

did we get this from checking production logs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I checked the production logs and also from LN we have a lot of others as well but I just mock this only.

Copy link
Contributor

Choose a reason for hiding this comment

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

This could be a constant in DocAuthHelper, SAMPLE_TMX_SUMMARY_REASON_CODE or something like that. Along with GOOD_SSN, etc. Since it's used in 3 tests (so far). You might still have to have the explicit string in the fixtures.

olatifflexion and others added 2 commits March 3, 2023 12:52
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
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.

Overall looks good! A couple of suggestions for sharing test code in doc_auth_helper.rb, and a query to make sure we're all on the same page about what happens for No Result.

Comment on lines +225 to +231
let(:review_status) { 'no_result' }

it 'it logs IRS idv_tmx_fraud_check event' do
expect(@irs_attempts_api_tracker).to receive(:idv_tmx_fraud_check).with(
success: false,
failure_reason: expected_failure_reason,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

@jmhooper is this consistent with what we want for Threatmetrix no result? It's treating it as a failure.

"request_result":"fail_invalid_parameter",
"review_status":"REVIEW_STATUS"
"review_status":"REVIEW_STATUS",
"tmx_summary_reason_code": ["Identity_Negative_History"]
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be a constant in DocAuthHelper, SAMPLE_TMX_SUMMARY_REASON_CODE or something like that. Along with GOOD_SSN, etc. Since it's used in 3 tests (so far). You might still have to have the explicit string in the fixtures.

@olatifflexion olatifflexion merged commit 6fe00cb into main Mar 6, 2023
@olatifflexion olatifflexion deleted the olatif/LG-8749-idv-tmx-fraud-event branch March 6, 2023 19:53
@jmdembe jmdembe mentioned this pull request Mar 9, 2023
tomas-nava pushed a commit that referenced this pull request Apr 3, 2023
tomas-nava pushed a commit that referenced this pull request Apr 4, 2023
… is created (#8113)

* add usps doc check to proofing component earlier

changelog: Internal, refactor, in-person VerifyInfoController outside Flow State Machine

* include Steps::ThreadMetricStepHelper (see #7924)

* replace IdvSession with IdvStepConcern (see #7840)

and remove redundant confirm_two_factor_authenticate (see #8082)

* give in-person verify info controller its own view

and fix links to update pages

* move process_async_state into the concern
jc-gsa pushed a commit that referenced this pull request Apr 19, 2023
… is created (#8113)

* add usps doc check to proofing component earlier

changelog: Internal, refactor, in-person VerifyInfoController outside Flow State Machine

* include Steps::ThreadMetricStepHelper (see #7924)

* replace IdvSession with IdvStepConcern (see #7840)

and remove redundant confirm_two_factor_authenticate (see #8082)

* give in-person verify info controller its own view

and fix links to update pages

* move process_async_state into the concern
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