Skip to content

LG-9477 log nontransliterable chars#8379

Merged
svalexander merged 4 commits intomainfrom
shannon/lg-9477-log-nontransliterable-chars
May 12, 2023
Merged

LG-9477 log nontransliterable chars#8379
svalexander merged 4 commits intomainfrom
shannon/lg-9477-log-nontransliterable-chars

Conversation

@svalexander
Copy link
Contributor

🎫 Ticket

LG-9477

🛠 Summary of changes

Add an analytics event that logs nontransliterable characters that a user submits. An event will be logged for each group of fields where nontransliterable characters are present. The characters are sorted and duplicates are removed.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Walk through ipp and arrive at state id form
  • Make sure name input includes characters that will be rejected ex: F1r$t N@m3
  • Make sure address input includes characters that will be rejected ex: 100 M@!n $t
  • Submit form
  • Make sure events.log logged event w/ the rejected characters
  • Correct errors and advance to address form
  • Make sure address input includes characters that will be rejected ex: 100 M@!n $t
  • Submit form
  • Make sure events.log logged event w/ the rejected characters

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +55 to +58
nontransliterable_chars = nontransliterable_chars.sort
analytics.idv_in_person_proofing_nontransliterable_characters_submitted(
nontransliterable_characters: nontransliterable_chars,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

can remove the re-assignment and inline that too?

Suggested change
nontransliterable_chars = nontransliterable_chars.sort
analytics.idv_in_person_proofing_nontransliterable_characters_submitted(
nontransliterable_characters: nontransliterable_chars,
)
analytics.idv_in_person_proofing_nontransliterable_characters_submitted(
nontransliterable_characters: nontransliterable_chars.sort,
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do

@svalexander svalexander merged commit 5bd9900 into main May 12, 2023
@svalexander svalexander deleted the shannon/lg-9477-log-nontransliterable-chars branch May 12, 2023 14:17
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.

2 participants