Skip to content

Jmax/lg 9401 use new fraud review timestamp for sad face screen#8244

Merged
jmax-gsa merged 15 commits intomainfrom
jmax/LG-9401-use-new-fraud-review-timestamp-for-sad-face-screen
May 4, 2023
Merged

Jmax/lg 9401 use new fraud review timestamp for sad face screen#8244
jmax-gsa merged 15 commits intomainfrom
jmax/LG-9401-use-new-fraud-review-timestamp-for-sad-face-screen

Conversation

@jmax-gsa
Copy link
Contributor

🎫 Ticket

https://cm-jira.usa.gov/browse/LG-9152

🛠 Summary of changes

Changed the message on the sad face screen to use the new fraud review timestamp, rather than the verified_at timestamp

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Create a new user. Place them in fraud review. (add steps)
  • Using the Rails console, back-date their fraud review timestamp to one week ago
  • Verify that the sad face screen shows a date one week in the future, rather than two weeks

jmax-gsa and others added 4 commits April 20, 2023 11:56
Co-authored-by: Alex Bradley <alexander.bradley@gsa.gov>
Co-authored-by: Alex Bradley <alexander.bradley@gsa.gov>
@jmax-gsa jmax-gsa requested a review from theabrad April 24, 2023 14:22
@jmax-gsa jmax-gsa marked this pull request as ready for review April 24, 2023 14:38
Copy link
Contributor

@theabrad theabrad left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: John Skiles Skinner <john.skinner@gsa.gov>
Copy link
Contributor

@jskinne3 jskinne3 left a comment

Choose a reason for hiding this comment

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

👍

analytics.idv_please_call_visited
verified_at = current_user.profiles.last.verified_at || Time.zone.today
@call_by_date = verified_at + FRAUD_REVIEW_CONTACT_WITHIN_DAYS
pending_at = current_user.profiles.last.fraud_review_pending_at || Time.zone.today
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: we can use User#fraud_rejection_profile here instead of User#profiles.last

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


describe Idv::PleaseCallController do
let(:user) { create(:user) }
let(:fraud_review_pending_date) { 5.days.ago }
Copy link
Contributor

Choose a reason for hiding this comment

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

comment: possibly note that this only needs to be non-null

@jmax-gsa jmax-gsa merged commit 42d03bb into main May 4, 2023
@jmax-gsa jmax-gsa deleted the jmax/LG-9401-use-new-fraud-review-timestamp-for-sad-face-screen branch May 4, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants