Skip to content

Commit

Permalink
fix(NOTIFY-1171): account syncing performance and bug fixes (#27529)
Browse files Browse the repository at this point in the history
## **Description**

This PR fixes some bugs and adds as well some huge performance
improvements for account syncing.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27529?quickstart=1)

## **Related issues**

Fixes:

## **Manual testing steps**

1. Create a new SRP
2. Add new accounts, rename some
3. Uninstall extension and reinstall
4. Import your previously created SRP
5. All your previously created accounts and respective names should be
there!

## **Screenshots/Recordings**

### **Before**

### **After**

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] 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.

---------

Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
  • Loading branch information
mathieuartu and metamaskbot committed Oct 1, 2024
1 parent d68701d commit 719ca8c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
2 changes: 0 additions & 2 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2039,12 +2039,10 @@
"URL": true,
"URLSearchParams": true,
"addEventListener": true,
"clearInterval": true,
"console.error": true,
"dispatchEvent": true,
"fetch": true,
"removeEventListener": true,
"setInterval": true,
"setTimeout": true
},
"packages": {
Expand Down
2 changes: 0 additions & 2 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2039,12 +2039,10 @@
"URL": true,
"URLSearchParams": true,
"addEventListener": true,
"clearInterval": true,
"console.error": true,
"dispatchEvent": true,
"fetch": true,
"removeEventListener": true,
"setInterval": true,
"setTimeout": true
},
"packages": {
Expand Down
2 changes: 0 additions & 2 deletions lavamoat/browserify/main/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2039,12 +2039,10 @@
"URL": true,
"URLSearchParams": true,
"addEventListener": true,
"clearInterval": true,
"console.error": true,
"dispatchEvent": true,
"fetch": true,
"removeEventListener": true,
"setInterval": true,
"setTimeout": true
},
"packages": {
Expand Down
2 changes: 0 additions & 2 deletions lavamoat/browserify/mmi/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -2131,12 +2131,10 @@
"URL": true,
"URLSearchParams": true,
"addEventListener": true,
"clearInterval": true,
"console.error": true,
"dispatchEvent": true,
"fetch": true,
"removeEventListener": true,
"setInterval": true,
"setTimeout": true
},
"packages": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
"@metamask/post-message-stream": "^8.0.0",
"@metamask/ppom-validator": "0.34.0",
"@metamask/preinstalled-example-snap": "^0.1.0",
"@metamask/profile-sync-controller": "^0.9.3",
"@metamask/profile-sync-controller": "^0.9.4",
"@metamask/providers": "^14.0.2",
"@metamask/queued-request-controller": "^2.0.0",
"@metamask/rate-limit-controller": "^6.0.0",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6053,9 +6053,9 @@ __metadata:
languageName: node
linkType: hard

"@metamask/profile-sync-controller@npm:^0.9.3":
version: 0.9.3
resolution: "@metamask/profile-sync-controller@npm:0.9.3"
"@metamask/profile-sync-controller@npm:^0.9.4":
version: 0.9.4
resolution: "@metamask/profile-sync-controller@npm:0.9.4"
dependencies:
"@metamask/base-controller": "npm:^7.0.1"
"@metamask/keyring-api": "npm:^8.1.3"
Expand All @@ -6071,7 +6071,7 @@ __metadata:
"@metamask/accounts-controller": ^18.1.1
"@metamask/keyring-controller": ^17.2.0
"@metamask/snaps-controllers": ^9.7.0
checksum: 10/31efea63cac0b5f01024163fb6911f971aeb6f7e7a7d71fa4a43b8e31e0fc60033e99bcfec19283f9410e7258bcd0ce3bf751bed374e6b3d09ea4a9782731320
checksum: 10/86079da552eed316f2754bd899047de1d8d9d15d390c9cdee0aef66b95bea708b5c7929a8d8d946210cc0e4c52347fee971a5cf5130149d0ca60abdc85f47774
languageName: node
linkType: hard

Expand Down Expand Up @@ -26138,7 +26138,7 @@ __metadata:
"@metamask/post-message-stream": "npm:^8.0.0"
"@metamask/ppom-validator": "npm:0.34.0"
"@metamask/preinstalled-example-snap": "npm:^0.1.0"
"@metamask/profile-sync-controller": "npm:^0.9.3"
"@metamask/profile-sync-controller": "npm:^0.9.4"
"@metamask/providers": "npm:^14.0.2"
"@metamask/queued-request-controller": "npm:^2.0.0"
"@metamask/rate-limit-controller": "npm:^6.0.0"
Expand Down

0 comments on commit 719ca8c

Please sign in to comment.