Skip to content

Send only first part of last name to AAMVA for DC, WV#12045

Merged
amirbey merged 3 commits into18F:amirbey/margolis-aamva-multiple-last-namefrom
zachmargolis:margolis-aamva-multiple-last-name
Apr 4, 2025
Merged

Send only first part of last name to AAMVA for DC, WV#12045
amirbey merged 3 commits into18F:amirbey/margolis-aamva-multiple-last-namefrom
zachmargolis:margolis-aamva-multiple-last-name

Conversation

@zachmargolis
Copy link
Contributor

👋 hi friends, it's been a while!

Background

My new job also works with AAMVA, and a colleague let me know about a new bug he discovered. For DC and WV apparently the backend processors for only process matches up to the first "word" of a last name. So for a user whose last name is "McFirst McSecond", we need to send "McFirst" only to get a match in those states. It's undocumented and discovered through customer data.

🛠 Summary of changes

Updates Aamva::VerificationRequest to only send the first part of last names in DC and WV

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • If possible, get ahold of customer data in DC or WV for somebody with a space-separated multi-word last name. Then verify via the Rails console that there is match when last_name.split(' ').first is sent as the last name

zachmargolis and others added 3 commits April 1, 2025 14:53
**Why**: Apparently the backend processors for DC and WV only process matches
up to the first "word" of a last name
@tahineemay
Copy link

ddw
Hi, @zachmargolis - we will take a look on our end and move this forward through our process. Thank you!

@tahineemay tahineemay requested review from amirbey and solipet April 2, 2025 18:46
@zachmargolis
Copy link
Contributor Author

@tahineemay

dw from arthur looking at fence

@tahineemay
Copy link

@amirbey amirbey self-assigned this Apr 3, 2025
@tahineemay
Copy link

@amirbey Ran into the issue with my DC license as I have two last names with a space in between. I sent you the associated email address via DM.

@amirbey amirbey changed the base branch from main to amirbey/margolis-aamva-multiple-last-name April 3, 2025 19:25
@amirbey amirbey merged commit 6c3171e into 18F:amirbey/margolis-aamva-multiple-last-name Apr 4, 2025
amirbey pushed a commit that referenced this pull request Apr 4, 2025
* Send only first part of last name to AAMVA for DC, WV

**Why**: Apparently the backend processors for DC and WV only process matches
up to the first "word" of a last name

* fixup: use correct let()

* Update reference to last_name
amirbey added a commit that referenced this pull request Apr 4, 2025
* Send only first part of last name to AAMVA for DC, WV (#12045)

* Send only first part of last name to AAMVA for DC, WV

**Why**: Apparently the backend processors for DC and WV only process matches
up to the first "word" of a last name

* fixup: use correct let()

* Update reference to last_name

* make split last name opt-in configurable by state

changelog: Bug Fixes, Identity Proofing, Split last names with space configurable opt-in by AAMVA state

* add last_name_spaced to analytics for proofing results

* add last_name_spaced to signatur of profing analytics event

* happy linting

* update last_name in spec

---------

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@tahineemay
Copy link

Confirmed, reviewed and accepted. This should be out tomorrow afternoon, @zachmargolis. Thank you!

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