Skip to content

LG-11799: Remove same_address_as_id from analytics#11400

Merged
eileen-nava merged 6 commits intomainfrom
em/11799-remove-same-address-as-id-from-analytics
Oct 28, 2024
Merged

LG-11799: Remove same_address_as_id from analytics#11400
eileen-nava merged 6 commits intomainfrom
em/11799-remove-same-address-as-id-from-analytics

Conversation

@eileen-nava
Copy link
Contributor

🎫 Ticket

LG-11799: Remove same_address_as_id from analytics

🛠 Summary of changes

  • The boolean value same_address_as_id no longer needs to be tracked in analytics. Consequently, this PR removes it.

📜 Testing Plan

I would recommend relying on automated specs for this PR. That being said, here's a manual testing plan.

  • Locally run make watch_events
  • Begin the in-person proofing process and navigate to the state id page
  • Select that you live at a different address than your id's address and navigate to the next page.
  • Inspect the output from make watch_events and confirm that none of the logs include same_address_as_id

@eileen-nava eileen-nava requested review from a team and shanechesnutt-ft October 25, 2024 15:32
end
end

result[:biographical_info]&.delete(:same_address_as_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mutate the original result value in a way that might cause other side-effects? Is it something where we could either avoid assigning same_address_as_id into that result in the first place if it's not needed, or create a copy if this is being deleted to avoid including in extra?

e.g.

extra: extra.merge(
  proofing_results: {
    **result.except(:errors, :success),
    biographical_info: result[:biographical_info].except(:same_address_as_id),
  },
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aduth See commit 20958fe.

Copy link
Contributor

@shanechesnutt-ft shanechesnutt-ft left a comment

Choose a reason for hiding this comment

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

Ran through the test plan and everything looked good! 👍🏻

@eileen-nava eileen-nava merged commit cab363b into main Oct 28, 2024
@eileen-nava eileen-nava deleted the em/11799-remove-same-address-as-id-from-analytics branch October 28, 2024 15:20
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