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: deprecating more networks #23695

Merged
merged 19 commits into from
Apr 16, 2024
Merged

Conversation

sahar-fehri
Copy link
Contributor

@sahar-fehri sahar-fehri commented Mar 25, 2024

Description

Deprecates Mumbai and linea goerli test networks.
Users should see a deprecation warning when switching to those networks.
Linea goerli is removed from the default network list.

Open in GitHub Codespaces

Related issues

ticket: https://consensyssoftware.atlassian.net/browse/MMASSETS-183
patch for controller-utils: https://github.com/MetaMask/metamask-extension/pull/23727/files

Manual testing steps

  1. Go to home page
  2. Click on network selector, You should not see Linea testnet in the list.
  3. Add Mumbai network to metamask
  4. You should see deprecation warning

Screenshots/Recordings

Before

Linea goerli appears in the list of default networks

Screenshot 2024-03-26 at 16 17 41

After

In this video initially the user is on Linea goerli (i am on develop branch), the user makes a few transactions on linea goerli,
then i switch to this branch so the migration runs, and notice that the user has switeched to linea-sepolia.
Linea goerli is removed from the default networks tab.
When the user adds linea-goerli using chainlist, he sees the deprecation warning and his transactions.

deprecation1.mov

This short video shows the deprecation warning when we switch to Mumbai network

Screen.Recording.2024-03-26.at.16.12.46.mov

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.

@sahar-fehri sahar-fehri requested a review from a team as a code owner March 25, 2024 12:51
@sahar-fehri sahar-fehri marked this pull request as draft March 25, 2024 12:51
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.

Copy link

sentry-io bot commented Mar 25, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: ui/pages/confirmations/confirmation/templates/add-ethereum-chain.js

Function Unhandled Issue
addEthereumChain.getAlerts TypeError: Failed to construct 'URL': Invalid URL new URL(/metamask/runtime-lavamoat.js...
Event Count: 1 Affected Users: 0

Did you find this useful? React with a 👍 or 👎

@sahar-fehri sahar-fehri changed the title Fix/deprecating more networks fix: deprecating more networks Mar 25, 2024
@sahar-fehri sahar-fehri added needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. team-assets labels Mar 25, 2024
@sahar-fehri sahar-fehri force-pushed the fix/deprecating-more-networks branch from dbc9115 to ee86abf Compare March 25, 2024 13:01
@metamaskbot
Copy link
Collaborator

Builds ready [850fa2e]
Page Load Metrics (964 ± 525 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint703781417737
domContentLoaded117331189
load5630279641093525
domInteractive117331189
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -30 Bytes (-0.00%)
  • ui: -429 Bytes (-0.01%)
  • common: -115 Bytes (-0.00%)

Copy link

codecov bot commented Mar 25, 2024

Codecov Report

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

Project coverage is 67.61%. Comparing base (1098a10) to head (03a1e14).
Report is 69 commits behind head on develop.

Files Patch % Lines
...tions/confirmation/templates/add-ethereum-chain.js 85.71% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #23695      +/-   ##
===========================================
+ Coverage    67.54%   67.61%   +0.07%     
===========================================
  Files         1245     1246       +1     
  Lines        48866    48885      +19     
  Branches     12744    12754      +10     
===========================================
+ Hits         33005    33053      +48     
+ Misses       15861    15832      -29     

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

@metamaskbot
Copy link
Collaborator

Builds ready [419d3ba]
Page Load Metrics (1135 ± 551 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint894021516632
domContentLoaded126028126
load68258211351147551
domInteractive126028126
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -30 Bytes (-0.00%)
  • ui: -367 Bytes (-0.00%)
  • common: -115 Bytes (-0.00%)

@sahar-fehri sahar-fehri force-pushed the fix/deprecating-more-networks branch from 419d3ba to 43c3db5 Compare March 26, 2024 13:11
@metamaskbot
Copy link
Collaborator

Builds ready [43c3db5]
Page Load Metrics (826 ± 482 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint661781132813
domContentLoaded105324147
load5224148261003482
domInteractive105324147
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -30 Bytes (-0.00%)
  • ui: -367 Bytes (-0.01%)
  • common: -130 Bytes (-0.00%)

@sahar-fehri sahar-fehri force-pushed the fix/deprecating-more-networks branch from 46fbbbc to 8792318 Compare March 26, 2024 22:22
@sahar-fehri sahar-fehri self-assigned this Mar 26, 2024
@sahar-fehri sahar-fehri marked this pull request as ready for review March 26, 2024 22:26
@sahar-fehri sahar-fehri requested review from a team as code owners March 26, 2024 22:26
@metamaskbot
Copy link
Collaborator

Builds ready [c39ecae]
Page Load Metrics (415 ± 361 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint651871203115
domContentLoaded96933189
load542546415752361
domInteractive96933189
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.05 KiB (0.06%)
  • ui: -367 Bytes (-0.01%)
  • common: -130 Bytes (-0.00%)

@davidmurdoch
Copy link
Contributor

Why do we need to patch controller utils? Couldn't be update the package instead?

@metamaskbot
Copy link
Collaborator

Builds ready [4c91b58]
Page Load Metrics (552 ± 452 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint741471042010
domContentLoaded95826136
load532870552941452
domInteractive95826136
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.05 KiB (0.06%)
  • ui: -356 Bytes (-0.01%)
  • common: -331 Bytes (-0.01%)

ui/selectors/selectors.js Outdated Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [59155fd]
Page Load Metrics (866 ± 508 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint663221507636
domContentLoaded97136199
load5325398661057508
domInteractive97136199
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.05 KiB (0.06%)
  • ui: -356 Bytes (-0.01%)
  • common: -302 Bytes (-0.00%)

Copy link
Contributor

@darkwing darkwing left a comment

Choose a reason for hiding this comment

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

Tiny nit! Otherwise looks great!

app/scripts/migrations/115.ts Outdated Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [03a1e14]
Page Load Metrics (660 ± 480 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint623751378239
domContentLoaded106330168
load4926316601000480
domInteractive96330168
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 2.04 KiB (0.06%)
  • ui: -356 Bytes (-0.01%)
  • common: -302 Bytes (-0.00%)

@sahar-fehri sahar-fehri merged commit 257e9f9 into develop Apr 16, 2024
67 of 68 checks passed
@sahar-fehri sahar-fehri deleted the fix/deprecating-more-networks branch April 16, 2024 15:23
@github-actions github-actions bot locked and limited conversation to collaborators Apr 16, 2024
@metamaskbot metamaskbot added the release-11.16.0 Issue or pull request that will be included in release 11.16.0 label Apr 16, 2024
@benjisclowder benjisclowder added release-11.17.0 Issue or pull request that will be included in release 11.17.0 and removed release-11.16.0 Issue or pull request that will be included in release 11.16.0 labels May 7, 2024
@metamaskbot metamaskbot added release-11.16.0 Issue or pull request that will be included in release 11.16.0 and removed release-11.17.0 Issue or pull request that will be included in release 11.17.0 labels May 7, 2024
@metamaskbot
Copy link
Collaborator

Missing release label release-11.16.0 on PR. Adding release label release-11.16.0 on PR and removing other release labels(release-11.17.0), as PR was added to branch 11.16.0 when release was cut.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. release-11.16.0 Issue or pull request that will be included in release 11.16.0 team-assets
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet