Skip to content

LG-10384 - backfill in person verification pending at#8974

Merged
jmax-gsa merged 3 commits intomainfrom
jmax-LG-10384-backfill-in-person-pending-column
Aug 21, 2023
Merged

LG-10384 - backfill in person verification pending at#8974
jmax-gsa merged 3 commits intomainfrom
jmax-LG-10384-backfill-in-person-pending-column

Conversation

@jmax-gsa
Copy link
Contributor

@jmax-gsa jmax-gsa commented Aug 10, 2023

Co-authored by: Alexander Bradley alexander.bradley@gsa.gov

🎫 LG-10384

🛠 Summary of changes

Added a rake task to backfill the new in_person_verification_pending_at column

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Create a user who is in the in-person flow. The file
    document_classification_error.yml.txt
    must be used for the user's ID images in order to force in-person proofing.
  • Bring up the rails console, find the user's profile, and set the in_person_verification_pending_at column to nil
  • run the backfill_in_person_verification_pending_at task, and verify that it shows one user to be updated
  • run the validate_backfill_in_person_verification_pending_at task, and verify that it shows 1 row
  • run the backfill_in_person_verification_pending_at task with the UPDATE_PROFILES environment variable set, and verify that it shows 1 profile being updated.
  • run the validate_backfill_in_person_verification_pending_at task, and verify that it shows 0 rows
  • bring up the rails console and verify that the user has an in_person_verification_pending_at value
  • run the rollback_backfill_in_person_verification_pending_at task, using the output from the backfill task
  • run the validate_backfill_in_person_verification_pending_at task, and verify that it shows 1 row
  • bring up the rails console and verify that the user does not have an in_person_verification_pending_at value

Co-authored by: Alexander Bradley <alexander.bradley@gsa.gov>

Changelog: Internal,In-person proofing,Backfill new in_person_verification_pending_at column
@jmax-gsa jmax-gsa force-pushed the jmax-LG-10384-backfill-in-person-pending-column branch from a9638cc to 96b82ca Compare August 10, 2023 16:41
@jmax-gsa jmax-gsa changed the title First pass at rake task LG-10384 - backfill in person verification pending at Aug 10, 2023
end

warn "Updating #{profile_data.count} records"
profile_data.each do |profile_datum|
Copy link
Contributor

Choose a reason for hiding this comment

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

profile_datum :-)

- Update deactivation reason

- Don't backfill profiles that aren't actually undergoing in-person
  verification (but used to be at some prior time).
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

@jmax-gsa jmax-gsa merged commit 4544043 into main Aug 21, 2023
@jmax-gsa jmax-gsa deleted the jmax-LG-10384-backfill-in-person-pending-column branch August 21, 2023 16:48
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