Skip to content

LG-8947 Improve analytics for FraudRejectionDailyJob#7973

Merged
theabrad merged 0 commit intomainfrom
abrad-30-day-fraudiance-revisitied
Mar 13, 2023
Merged

LG-8947 Improve analytics for FraudRejectionDailyJob#7973
theabrad merged 0 commit intomainfrom
abrad-30-day-fraudiance-revisitied

Conversation

@theabrad
Copy link
Contributor

changelog: Internal, IdV Fraud, Improve analytics on FraudRejectiondailyJob

Improves the analytics to show the day the profile was rejected to compare with the day the profile entered the fraud_review_pending state

@theabrad theabrad requested a review from a team March 10, 2023 21:47
private

def analytics(user: AnonymousUser.new)
Analytics.new(user: user, request: nil, session: {}, sp: nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to add this method to ApplicationJob instead of here, to mirror the definition in ApplicationController? It's memoized there and I wonder if we want to do that here too.

Where was analytics defined before this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is defined explicitly in some other jobs like this. For example: here . We could place it in ApplicationJob, but I'm wondering if that should be a separate story to move all calls to analytics in jobs to ApplicationJob.

Copy link
Contributor

Choose a reason for hiding this comment

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

Making that a separate ticket makes sense to me.

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.

LGTM!

@theabrad theabrad merged this pull request into main Mar 13, 2023
@theabrad theabrad deleted the abrad-30-day-fraudiance-revisitied branch March 13, 2023 16:53
mitchellhenke pushed a commit that referenced this pull request Mar 14, 2023
changelog: Internal, IdV Fraud, Improve analytics on
FraudRejectiondailyJob

Improves the analytics to show the day the profile was rejected to
compare with the day the profile entered the fraud_review_pending state
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