-
-
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
fix: add identify metrics call at metrics instance setup #8888
Conversation
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. |
|
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
@NicolasMassart Created a fix for the unit test pointing to this PR - #8928 |
## **Description** <!-- Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions: 1. What is the reason for the change? 2. What is the improvement/solution? --> This PR fixes the test failure for `app/util/metrics/trackDappViewedEvent/index.test.ts`. It does so by mocking the module `../../../util/metrics/UserSettingsAnalyticsMetaData/generateUserProfileAnalyticsMetaData`, which was causing the failure. ## **Related issues** Fixes: ## **Manual testing steps** Run `yarn jest app/util/metrics/trackDappViewedEvent/index.test.ts` and notice that the test passes ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <!-- [screenshots/recordings] --> ### **After** <!-- [screenshots/recordings] --> <img width="1176" alt="image" src="https://github.com/MetaMask/metamask-mobile/assets/10508597/72f97136-0bba-46f6-a88c-df96854bc105"> ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've clearly explained what problem this PR is solving and how it is solved. - [ ] I've linked related issues - [ ] I've included manual testing steps - [ ] I've included screenshots/recordings if applicable - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] 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. - [ ] I’ve properly set the pull request status: - [ ] In case it's not yet "ready for review", I've set it to "draft". - [ ] In case it's "ready for review", I've changed it from "draft" to "non-draft". ## **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.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8888 +/- ##
==========================================
- Coverage 43.27% 43.26% -0.01%
==========================================
Files 1271 1271
Lines 30918 30920 +2
Branches 3092 3092
==========================================
Hits 13379 13379
- Misses 16766 16769 +3
+ Partials 773 772 -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
More than one release label on PR. Keeping the lowest one (release-7.18.0) on PR and removing other release labels (release-7.19.0). |
Description
adds identify call at the end of metrics config
Related issues
Fixes #8885
Manual testing steps
Screenshots/Recordings
Before
No IDENTIFY log at startup
After
Pre-merge author checklist
Pre-merge reviewer checklist