You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## **Description**
This PR adds various account syncing house keeping improvements in order
to be ready for re-enablement in a subsequent PR.
The number of files changed by this PR is large, but none affects a user
facing feature, since account syncing is disabled in production.
- Bump `@metamask/profile-sync-controller` to version `1.0.2`
- Add two new state keys linked to `UserStorageController`,
`isAccountSyncingReadyToBeDispatched` and
`hasAccountSyncingSyncedAtLeastOnce`
- Wait for `_addAccountsWithBalance` to finish adding accounts after
onboarding, then set `isAccountSyncingReadyToBeDispatched` to `true`
- Use `USER_STORAGE_FEATURE_NAMES` exported constant from
`@metamask/profile-sync-controller` to define user storage paths
everywhere (no more magic strings)
- Add batch delete delete support for E2E util
`UserStorageMockttpController`
- Update all account sync E2E tests in order to wait for account sync to
have successfully been completed once before going on with the rest of
the instructions.
⚠️ Please note that this PR does **NOT** re-enable account syncing in
production. This will be done in a subsequent PR.
## **Related issues**
## **Manual testing steps**
1. Import your SRP
2. Add accounts, rename accounts
3. Uninstall & reinstall
4. Import the same SRP
5. Verify that previous updates made in step 2 are there
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
## **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 <[email protected]>
0 commit comments