-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore(runway): cherry-pick fix: app opened event #13175
chore(runway): cherry-pick fix: app opened event #13175
Conversation
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** - Makes app opened event fire on deeplinks and on normal app opening - Adds unit test for the change and removes deprecated (not even working) test - Refactors TrackingEvent to get rid of private and getter and setter preventing events comparison - Adds EventBuilder unit test to ensure events equality check works (non regression) - Adds a warning comment in the code, just for devs to know about the risk of reusing events, I bothered me during tests fix, so better safe than sorry. - Fixes Ramp and unit test that was failing now that TrackingEvent is properly comparable - Removes useless ramp anonymous events list constant that was not properly mocked (revealed by the TrackingEvent change) - Removes useless ramp anonymous logic - Removes ramp useless interaction manager as trackEvent already is async on SDK side ## **Related issues** Fixes MetaMask/mobile-planning#2109 ## **Manual testing steps** 1. Open app 2. check in mixpanel that you receive an App Opened event 3. check there's no anonynmous App Opened event but only a normal one with user Id 4. check that you have the event by opening the app with or without deepling attribution ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <!-- [screenshots/recordings] --> ### **After** <!-- [screenshots/recordings] --> ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Quality Gate passedIssues Measures |
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
Bitrise❌❌❌ Commit hash: 9cf7783 Note
Tip
|
Description
working) test
preventing events comparison
regression)
risk of reusing events, I bothered me during tests fix, so better safe
than sorry.
properly comparable
properly mocked (revealed by the TrackingEvent change)
async on SDK side
Related issues
Fixes https://github.com/MetaMask/mobile-planning/issues/2109
Manual testing steps
with user Id
deepling attribution
Screenshots/Recordings
Before
After
Pre-merge author checklist
Docs and MetaMask Mobile
Coding
Standards.
if applicable
guidelines).
Not required for external contributors.
Pre-merge reviewer checklist
app, test code being changed).
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots. e2638cc