-
Notifications
You must be signed in to change notification settings - Fork 254
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
[STRATCONN-4101 & STRATCONN - 4099] Update Amazon Ads normalisation #2661
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2661 +/- ##
==========================================
+ Coverage 78.40% 78.41% +0.01%
==========================================
Files 1032 1032
Lines 18564 18574 +10
Branches 3517 3519 +2
==========================================
+ Hits 14555 14565 +10
+ Misses 2833 2832 -1
- Partials 1176 1177 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Left a question.
// Define allowed character patterns | ||
const alphanumeric = /[^a-z0-9]/g | ||
const emailAllowed = /[^a-z0-9.@-]/g | ||
const nonDigits = /[^\d]/g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this strip all leading zeros? Is that a requirement? Just checking as it is called out in here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No @varadarajan-tw it does not .As per this amazon format hashing ,They have specified removing leading or trailing whitespaces ,not zeroes. But yes it is mentioned in ticket.
This PR updates the normalisation and hashing methods to align with the amazon ads data format requirements. https://advertising.amazon.com/help/GCCXMZYCK4RXWS6C
Jira Tickets:
Email normalisation
Phone Normalisation
Tested it locally and Staging.
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.