MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.18k stars 1.12k forks source link

chore: Cherry pick 2506358 (merge in trackEvent work) #12415

Closed kylanhurt closed 3 days ago

kylanhurt commented 4 days ago

[!IMPORTANT] The issue is due to the fact that MetaMetrics.trackEvent method has multiple signatures to handle the backward compatibility with old ways to call it. After discussion (see the change history of this description), we decided to remove backward compatibility and the multiple signature system. We are going to simplify and then fix all the trackEvent calls. Asside from the changes in MetaMetrics and useMetrics hook (and tests) all the changes should be on the calls of trackEvent.

Fixes #12117

  1. navigate the app
  2. check trackEvent is called (check app logs)

https://github.com/user-attachments/assets/058f6607-eda1-4eb5-bcae-a774deb13648

https://github.com/user-attachments/assets/fa0816cf-5459-4825-a162-a9a2e87c86ac

N/A

N/A


Description

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 4 days ago

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.

github-actions[bot] commented 4 days ago

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 30a2c9f2e757c038fce1fcaca9d63feae2abdd6a Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/55b34ba5-2d62-4554-8e57-7f4494532f5b

[!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
sonarcloud[bot] commented 3 days ago

Quality Gate Failed Quality Gate failed

Failed conditions
41.1% Coverage on New Code (required ≥ 60%)

See analysis details on SonarQube Cloud