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

feat: add metametrics to authentication #24555

Merged
merged 3 commits into from
May 20, 2024

Conversation

Prithpal-Sooriya
Copy link
Contributor

@Prithpal-Sooriya Prithpal-Sooriya commented May 16, 2024

Description

Allows us to create a lineage (in our system), but will not affect our existing metrics.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). 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.

Copy link
Contributor

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.

@Prithpal-Sooriya Prithpal-Sooriya added the team-notifications Notifications team label May 16, 2024
@Prithpal-Sooriya Prithpal-Sooriya marked this pull request as ready for review May 16, 2024 11:04
@Prithpal-Sooriya Prithpal-Sooriya requested a review from a team as a code owner May 16, 2024 11:04
Comment on lines +656 to +663
getMetaMetricsId() {
let { metaMetricsId } = this.state;
if (!metaMetricsId) {
metaMetricsId = this.generateMetaMetricsId();
this.store.updateState({ metaMetricsId });
}
return metaMetricsId;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only change to metametrics.

We are not using the server metametrics ID on the clients.

Copy link
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me

Copy link

codecov bot commented May 20, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 67.38%. Comparing base (4cf7e80) to head (995174f).

Files Patch % Lines
...ollers/authentication/authentication-controller.ts 50.00% 1 Missing ⚠️
app/scripts/controllers/authentication/services.ts 0.00% 1 Missing ⚠️
app/scripts/metamask-controller.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #24555      +/-   ##
===========================================
+ Coverage    67.37%   67.38%   +0.01%     
===========================================
  Files         1289     1289              
  Lines        50220    50233      +13     
  Branches     13005    13006       +1     
===========================================
+ Hits         33835    33849      +14     
+ Misses       16385    16384       -1     

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

@metamaskbot
Copy link
Collaborator

Builds ready [995174f]
Page Load Metrics (1569 ± 663 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint665021249043
domContentLoaded87320167
load53365315691381663
domInteractive87320157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 743 Bytes (0.02%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Contributor

@matteoscurati matteoscurati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, LGTM

@Prithpal-Sooriya Prithpal-Sooriya merged commit 55d364d into develop May 20, 2024
87 checks passed
@Prithpal-Sooriya Prithpal-Sooriya deleted the NOTIFY-634-send-metametrics-id-on-login branch May 20, 2024 16:37
@github-actions github-actions bot locked and limited conversation to collaborators May 20, 2024
@metamaskbot metamaskbot added the release-11.18.0 Issue or pull request that will be included in release 11.18.0 label May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.18.0 Issue or pull request that will be included in release 11.18.0 team-notifications Notifications team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants