Repository navigation
More Fraud Protection events - #71031
Conversation
|
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
| if (!signal.attribute) { | ||
| return responseData; | ||
| } | ||
|
|
||
| if (signal.attribute.isHashed) { | ||
| FraudProtection.setHashedAttribute(signal.attribute.key, signal.attribute.value); | ||
| return responseData; | ||
| } | ||
|
|
||
| return data; | ||
| FraudProtection.setAttribute(signal.attribute.key, signal.attribute.value); | ||
| return responseData; |
There was a problem hiding this comment.
Feels like we could save code here, and elsewhere, if you just kept the original pattern you had, where setAttribute took an optional param to set the hashing/encryption. Is there any reason with two separate functions?
There was a problem hiding this comment.
yeah, there's no need for an extra function. Updated.
|
🚧 @cristipaval has triggered a test Expensify/App build. You can view the workflow run here. |
coleaeason
left a comment
There was a problem hiding this comment.
looks good! thanks for renaming to shouldHash that was also bothering me haha
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.2.19-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.2.19-3 🚀
|
Explanation of Change
Fixed Issues
$ #68284
PROPOSAL:
Tests
Tested with the adhoc builds and verified that the events are in the Group-IB dashboard.
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
@cristipaval will QA this by verifying that the events are sent to the Group-IB dashboard
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop