Skip to content

LG-14366 Store dynamically-generated proofing components on Profile#11527

Merged
jmhooper merged 3 commits intomainfrom
jmhooper-dynamically-generated-proofing-components
Nov 20, 2024
Merged

LG-14366 Store dynamically-generated proofing components on Profile#11527
jmhooper merged 3 commits intomainfrom
jmhooper-dynamically-generated-proofing-components

Conversation

@jmhooper
Copy link
Contributor

Proofing components are intended to represent the proofing flow that was used to create a profile. Traditionally these have been generated by tracking proofing components in a database table associated with the user. There were a number of problems with this approach which 5021e2e introduced a Idv::ProofingComponents service to address. This service generates proofing components from the session instead of from the database table.

This commit uses the Idv::ProofingComponents service to generate the proofing components stored on the profile. This will allow us to drop the proofing components table in a future change.

Proofing components are intended to represent the tooling that was used to create a profile. Traditionally these have been generated by tracking proofing components in a database table associated with the user. There were a number of problems with this approach which 5021e2e introduced a `Idv::ProofingComponents` service to address. This service generates proofing components from the session instead of from the database table.

This commit uses the `Idv::ProofingComponents` service to generate the proofing components stored on the profile. This will allow us to drop the proofing components table in a future change.

[skip changelog]
@jmhooper jmhooper requested a review from a team November 19, 2024 19:51
Copy link
Contributor

@n1zyy n1zyy left a comment

Choose a reason for hiding this comment

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

This ends up looking pretty straightforward.

Copy link
Contributor

@lmgeorge lmgeorge left a comment

Choose a reason for hiding this comment

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

A couple of non-blocking things, but otherwise approved!

password,
resolved_authn_context_result.enhanced_ipp?,
is_enhanced_ipp: resolved_authn_context_result.enhanced_ipp?,
proofing_components: ProofingComponents.new(
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion (non-blocking): Extract ProofingComponents creation to a private method.

(failed to submit with the review, adding now)

@jmhooper jmhooper merged commit 0a24160 into main Nov 20, 2024
@jmhooper jmhooper deleted the jmhooper-dynamically-generated-proofing-components branch November 20, 2024 19:45
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