Skip to content

LG-16803 Add issuing country code to pii bundle#12547

Merged
shanechesnutt-ft merged 1 commit intomainfrom
sc/LG-16803
Oct 6, 2025
Merged

LG-16803 Add issuing country code to pii bundle#12547
shanechesnutt-ft merged 1 commit intomainfrom
sc/LG-16803

Conversation

@shanechesnutt-ft
Copy link
Copy Markdown
Contributor

@shanechesnutt-ft shanechesnutt-ft commented Oct 2, 2025

changelog: Internal, IDV, Add issuing country code to pii bundle

🎫 Ticket

Link to the relevant ticket:
LG-16803

🛠 Summary of changes

Add issuing country code to pii bundle.

📜 Testing Plan

  • Feature specs passing

Manual Testing:

Scenario: Passport

  • Create an account go through remote IdV flow
  • Complete up to enter password for Passport Flow
  • Set a break point on before app/services/idv/profile_maker.rb:30
  • Ensure issuing_country_code is set in the pii_attributes variable
  • Continue and ensure IdV can be completed

@@ -188,6 +188,10 @@ def true_id_response_passport_card
read_fixture_file_at_path('true_id/true_id_response_success_passport_card.json')
end

def true_id_response_passport_without_tamper
read_fixture_file_at_path('true_id/true_id_response_success_passport_without_tamper.json')
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 created this because I was getting an issue with the normal success_passport with logging extra params

changelog: Internal, IDV, Add issuing country code to pii bundle
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.

Looks great - one question to think about, but not a blocker.

identity_doc_zipcode: nil,
identity_doc_address_state: nil,
state_id_jurisdiction: nil,
issuing_country_code: 'USA',
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.

This may be a result of the fixture (and thus in practice out of our control), but the Jira ticket specified the value should be either 'US' or 'Department of State'.

Does it matter?

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 am not sure this matters for the tests. It will take a string.

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 will check with Amir on this though.

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.

'USA' also works 👍🏿

identity_doc_zipcode: nil,
identity_doc_address_state: nil,
state_id_jurisdiction: 'NY',
issuing_country_code: 'USA',
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.

Same as above - does this need to be US?

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.

'USA' works 👍🏿

Copy link
Copy Markdown
Contributor

@Mawar2 Mawar2 left a comment

Choose a reason for hiding this comment

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

LGTM - got clarity "USA" being referenced instead of "US" as stated in the ticket. But it seems like our existing fixtures have "USA for passport, US for state_id" so we are just following that convention here.

Copy link
Copy Markdown
Contributor

@AShukla-GSA AShukla-GSA left a comment

Choose a reason for hiding this comment

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

Tested Locally and Reviewed. LGTM

@shanechesnutt-ft shanechesnutt-ft merged commit 29c9ca4 into main Oct 6, 2025
1 check passed
@shanechesnutt-ft shanechesnutt-ft deleted the sc/LG-16803 branch October 6, 2025 15:53
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