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: disable metametrics when disabling basic functionality #30210

Merged
merged 11 commits into from
Feb 13, 2025

Conversation

mathieuartu
Copy link
Contributor

@mathieuartu mathieuartu commented Feb 7, 2025

Description

This PR disables MetaMetrics when turning basic functionality off.

Open in GitHub Codespaces

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/IDENTITY-18

Manual testing steps

  1. Create a new wallet
  2. Disable basic functionality in the onboarding settings
  3. Finish creating your wallet
  4. Go to the privacy settings and verify that both MetaMetrics are off and disabled
  5. Turn basic functionality back on
  6. Enable MetaMetrics and marketing collection
  7. Disable basic functionality
  8. Verify that both MetaMetrics toggles are off and disabled
  9. Enable basic functionality
  10. Verify that both MetaMetrics toggles are not disabled but still off

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.

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.

@metamaskbot
Copy link
Collaborator

Builds ready [c51c1f4]
Page Load Metrics (1889 ± 84 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint60622131819330158
domContentLoaded15262148185417685
load15402182188917684
domInteractive23103432311
backgroundConnect1071362110
firstReactRender15103473215
getState895322713
initialActions01000
loadScripts11011594135714469
setupStore65513105
uiStartup180428002261236113
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 84 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [9facebe]
Page Load Metrics (1583 ± 51 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint49419221524257124
domContentLoaded14501910156010852
load14671922158310651
domInteractive228534178
backgroundConnect95722157
firstReactRender1570382311
getState45515178
initialActions01000
loadScripts999143211379646
setupStore76812136
uiStartup16642243180213062
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 84 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [583af04]
Page Load Metrics (1656 ± 68 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14491950165913866
domContentLoaded14331944163213967
load14471951165614268
domInteractive24104422211
backgroundConnect966272010
firstReactRender1582332412
getState55315168
initialActions01000
loadScripts10161465119111555
setupStore67012136
uiStartup16522233191217483
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 84 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@mathieuartu mathieuartu marked this pull request as ready for review February 12, 2025 14:39
@cmd-ob cmd-ob enabled auto-merge February 12, 2025 14:58
@cmd-ob cmd-ob disabled auto-merge February 12, 2025 14:58
cmd-ob
cmd-ob previously approved these changes Feb 12, 2025
Copy link
Contributor

@cmd-ob cmd-ob left a comment

Choose a reason for hiding this comment

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

Tested the build and this is working as expected.

@metamaskbot
Copy link
Collaborator

Builds ready [4856fc2]
Page Load Metrics (1542 ± 51 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint13311776155111354
domContentLoaded13231724151910048
load13321780154210651
domInteractive2393382110
backgroundConnect106528178
firstReactRender1493332612
getState45514168
initialActions01000
loadScripts917128710929144
setupStore75313136
uiStartup14802357179719895
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 206 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

dovydas55
dovydas55 previously approved these changes Feb 12, 2025
@mathieuartu mathieuartu added this pull request to the merge queue Feb 12, 2025
@mathieuartu mathieuartu removed this pull request from the merge queue due to a manual request Feb 12, 2025
@mathieuartu mathieuartu dismissed stale reviews from dovydas55 and cmd-ob via 72f309d February 12, 2025 19:02
@metamaskbot
Copy link
Collaborator

Builds ready [db17693]
Page Load Metrics (1587 ± 59 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14351919159212259
domContentLoaded14201847156111053
load14281918158712459
domInteractive217830126
backgroundConnect899262311
firstReactRender1591402713
getState48413199
initialActions01000
loadScripts10011399113210349
setupStore75413147
uiStartup16772333185217785
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 253 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [9b4a491]
Page Load Metrics (1566 ± 65 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30018091436382184
domContentLoaded13621787154213062
load13731813156613565
domInteractive22160473517
backgroundConnect87222189
firstReactRender156429199
getState45519199
initialActions01000
loadScripts9481325112010952
setupStore65913147
uiStartup15472039177214871
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 253 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@mathieuartu mathieuartu added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit 901ce6a Feb 13, 2025
73 checks passed
@mathieuartu mathieuartu deleted the feat/disable-metametrics-basic-functionality branch February 13, 2025 11:27
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2025
@metamaskbot metamaskbot added the release-12.13.0 Issue or pull request that will be included in release 12.13.0 label Feb 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.13.0 Issue or pull request that will be included in release 12.13.0 team-identity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants