Skip to content

LG-13762: Derive proofing_components dynamically#10870

Merged
matthinz merged 18 commits intomainfrom
matthinz/functional-proofing-components
Jul 1, 2024
Merged

LG-13762: Derive proofing_components dynamically#10870
matthinz merged 18 commits intomainfrom
matthinz/functional-proofing-components

Conversation

@matthinz
Copy link
Contributor

@matthinz matthinz commented Jun 25, 2024

🎫 Ticket

LG-13762

(Originally started as an alternative way to accomplish the goals underlying LG-13121.)

🛠 Summary of changes

Historically we've stored proofing_components (little bits of data about how the user has proofed) in a database table. The Rails model, ProofingComponent has a 1:1 relationship with User. This is a little awkward, since it is possible for a single user to attempt proofing more than once.

This PR updates analytics logging that includes proofing components to calculate those components dynamically from the current Idv::Session. The ultimate goal would be to remove writes to the proofing_components.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Go through identity verification while you tail events.log
  • Verify that proofing_components still show up where they should

matthinz added 6 commits June 27, 2024 09:37
Add new class, `ProofingComponents`, that calculates our sometimes-wonky ProofingComponents values based on values in Idv::Session.

changelog: Internal, Identity verification, Calculate proofing_components dynamically
@matthinz matthinz force-pushed the matthinz/functional-proofing-components branch from 8a4191b to 5226e11 Compare June 27, 2024 16:37
end
end

def liveness_check
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't necessarily think this should land with these unused methods in place, I just wanted to call out that the existing proofing_components infrastructure as some gaps (these columns exist in the DB but don't appear to be used)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created a coupla tickets (LG-13759 & LG-13760) around cleaning up these old columns

@matthinz matthinz marked this pull request as ready for review June 27, 2024 23:16
@matthinz matthinz requested a review from a team June 27, 2024 23:17
@matthinz matthinz changed the title Derive proofing_components dynamically LG-13762: Derive proofing_components dynamically Jun 28, 2024
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@matthinz matthinz merged commit 5021e2e into main Jul 1, 2024
@matthinz matthinz deleted the matthinz/functional-proofing-components branch July 1, 2024 23:57
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.

4 participants