Skip to content

LG-16063: TMX Result handling account creation#12218

Merged
mdiarra3 merged 49 commits intomainfrom
LG-16063-tmx-result-handling-account-creation
Jun 13, 2025
Merged

LG-16063: TMX Result handling account creation#12218
mdiarra3 merged 49 commits intomainfrom
LG-16063-tmx-result-handling-account-creation

Conversation

@mdiarra3
Copy link
Copy Markdown
Contributor

🎫 Ticket

Link to the relevant ticket:
LG-16063

🛠 Summary of changes

Initial processing of failed TMX results, for users that fail the DDP profiling=

📜 Testing Plan

  1. ensure account_creation_device_profiling config is set to enabled
  2. enabled mock profiling. lexisnexis_threatmetrix_mock_enabled enabled to true
  3. Create new user,
  4. At authentication setup change the mock profiling to reject
  5. Finish Account setup and be redirected page letting them know pthey couldn't be signed in.

@mdiarra3 mdiarra3 requested a review from a team May 29, 2025 17:14
profiling_result = find_device_profiling_result(
DeviceProfilingResult::PROFILING_TYPES[:account_creation],
)
profiling_result&.rejected?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is not clear what success vs review_status is in DeviceProfilingResult. Also, what is the difference between failed and rejected?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

success Is simple of what we think is a success vs failure. But I think review_status is a little bit more involved/ in depth than the success attribute.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If success can be derived from review_status, we should only persist review_status and leave success as a method on the model.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

removed success as well

@mdiarra3 mdiarra3 requested a review from vrajmohan June 11, 2025 16:12
@mdiarra3 mdiarra3 requested a review from a team June 12, 2025 12:44
Copy link
Copy Markdown
Contributor

@vrajmohan vrajmohan 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. I would suggest squashing all the commit messages so that they make sense.

@mdiarra3 mdiarra3 merged commit e957b55 into main Jun 13, 2025
1 check passed
@mdiarra3 mdiarra3 deleted the LG-16063-tmx-result-handling-account-creation branch June 13, 2025 16:02
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.

2 participants