Skip to content

lg-16379 document_type for proofing components#12315

Merged
AShukla-GSA merged 11 commits intomainfrom
lg-16379-update-doc-type-for-proofing-component
Jul 14, 2025
Merged

lg-16379 document_type for proofing components#12315
AShukla-GSA merged 11 commits intomainfrom
lg-16379-update-doc-type-for-proofing-component

Conversation

@AShukla-GSA
Copy link
Copy Markdown
Contributor

@AShukla-GSA AShukla-GSA commented Jul 3, 2025

🎫 Ticket

Link to the relevant ticket:
LG-16379

🛠 Summary of changes

Updating proofing component to support passport, state_id, and drivers_license doc type

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Step 1 - Confirm specs pass and test functionality

@AShukla-GSA AShukla-GSA requested review from a team, Mawar2, WilliamBirdsall, amirbey, shanechesnutt-ft, solipet and theabrad and removed request for a team July 3, 2025 16:42
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is drivers_license one of the document types?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I believe we want to separate into 2 groups (state_id or passport). Previously the method only sent out state_id (drivers_license, state_id, etc.), this ticket is to update for passport. I'll need to check to support passport_cards

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is - not sure why we previously only showed state_id for everything. Seems like we should just pass id_doc_type through as is.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is it possible to have an explicit list of the allowed values? part of the issue in this case was a lack of an exhaustive list and relying on a fallback

is it possible to do something like

case session[:pii_from_doc][:id_doc_type]
when 'passport'
  'passport'
when 'state_id', 'drivers_license'
  'state_id'
else
  raise "Unexpected doc type #{session[:pii_from_doc][:id_doc_type]}"
end

Copy link
Copy Markdown
Contributor

@amirbey amirbey Jul 9, 2025

Choose a reason for hiding this comment

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

it appears that document_type in proofing components is mainly used for analytics ... 🤔

i added suggestion to remove this method as I do not think it is needed. it's existence brings into question whether an exception should be raised as posed by @mitchellhenke

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the critical usage is that it serves as the authoritative record on the profile of the document submitted and verification steps done. If at some point in the future we need to see every active profile that used a passport as the document or used GPO for address verification, we should be able to refer to proofing_components.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is - not sure why we previously only showed state_id for everything. Seems like we should just pass id_doc_type through as is.

Copy link
Copy Markdown
Contributor

@solipet solipet left a comment

Choose a reason for hiding this comment

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

LGTM

@AShukla-GSA AShukla-GSA requested a review from mitchellhenke July 8, 2025 14:45
@mitchellhenke
Copy link
Copy Markdown
Contributor

Worth being explicit that the changes here are not just adding passport as a document type in proofing components

@AShukla-GSA AShukla-GSA force-pushed the lg-16379-update-doc-type-for-proofing-component branch from 1b1b8f8 to ea7fbd5 Compare July 14, 2025 15:39
@AShukla-GSA AShukla-GSA merged commit bcde878 into main Jul 14, 2025
1 check passed
@AShukla-GSA AShukla-GSA deleted the lg-16379-update-doc-type-for-proofing-component branch July 14, 2025 16:12
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.

5 participants