Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Google Ads] Standardize Phone Number Formatting #2810

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

maryamsharif
Copy link
Contributor

@maryamsharif maryamsharif commented Mar 18, 2025

STRATCONN-5475

Research doc

Testing

Include any additional information about the testing you have completed to
ensure your changes behave as expected. For a speedy review, please check
any of the tasks you completed below during your testing.

  • Added unit tests for new functionality
  • Tested end-to-end using the local server
  • [If destination is already live] Tested for backward compatibility of destination. Note: New required fields are a breaking change.
  • [Segmenters] Tested in the staging environment
  • [Segmenters] [If applicable for this change] Tested for regression with Hadron.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original implementation was not correctly formatting phone numbers before hashing, hence why the tests changed.

@maryamsharif maryamsharif marked this pull request as ready for review March 18, 2025 18:38
@maryamsharif maryamsharif requested a review from a team as a code owner March 18, 2025 18:38
Copy link

codecov bot commented Mar 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.35%. Comparing base (c741b70) to head (4f1ae4d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2810      +/-   ##
==========================================
- Coverage   78.36%   78.35%   -0.02%     
==========================================
  Files        1042     1042              
  Lines       18937    18927      -10     
  Branches     3646     3634      -12     
==========================================
- Hits        14840    14830      -10     
  Misses       2860     2860              
  Partials     1237     1237              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

request_object.userIdentifiers.push({
hashedPhoneNumber: isHashedInformation(payload.phone_number) ? payload.phone_number : hash(phoneNumber)
hashedPhoneNumber: formatPhone(payload.phone_number, payload.phone_country_code)
Copy link
Member

Choose a reason for hiding this comment

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

Will existing implementations of this action continue to send data unchanged?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently these actions are not formatting the phone numbers correctly to E164 so if the phone numbers are coming in not in E164 technically it will change to format it correctly. But the ones that come correctly formatted will not be changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants