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

fix: Analytics issue where anonymousId and userId are not properly defined on first sent event #13405

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

Conversation

NicolasMassart
Copy link
Contributor

Description

This is a WIP to fix the issue.
The issue is fixed but the code is not the most clean I can provide (type casting to remove mostly)

Related issues

Fixes https://github.com/MetaMask/mobile-planning/issues/2111

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

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.

To be improved
@NicolasMassart NicolasMassart self-assigned this Feb 7, 2025
@NicolasMassart NicolasMassart added the team-mobile-platform Mobile Platform team label Feb 7, 2025
Copy link
Contributor

github-actions bot commented Feb 7, 2025

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.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 61.64%. Comparing base (1937f9a) to head (e4d9063).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
.../core/Analytics/MetaMetricsPrivacySegmentPlugin.ts 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13405      +/-   ##
==========================================
+ Coverage   61.58%   61.64%   +0.06%     
==========================================
  Files        1953     1952       -1     
  Lines       43442    43452      +10     
  Branches     5835     5840       +5     
==========================================
+ Hits        26753    26788      +35     
+ Misses      14905    14877      -28     
- Partials     1784     1787       +3     

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

@NicolasMassart NicolasMassart marked this pull request as ready for review February 7, 2025 17:55
@NicolasMassart NicolasMassart requested a review from a team as a code owner February 7, 2025 17:55
@NicolasMassart NicolasMassart added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) Run Smoke E2E Triggers smoke e2e on Bitrise labels Feb 7, 2025
Copy link
Contributor

github-actions bot commented Feb 7, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 5191d17
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b48433aa-c71a-4f7e-882b-dad77b1ac5f1

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@NicolasMassart NicolasMassart marked this pull request as draft February 7, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) Run Smoke E2E Triggers smoke e2e on Bitrise team-mobile-platform Mobile Platform team
Projects
Status: Needs dev review
Development

Successfully merging this pull request may close these issues.

2 participants