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 back account syncing - only e2e for now #12411

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

mathieuartu
Copy link
Contributor

@mathieuartu mathieuartu commented Nov 25, 2024

Description

This PR adds back account syncing related logic.
⚠️ This PR does not enable account syncing. The only environment it's enabled for is E2E for now.

Detailed changes:

  • Bump @metamask/profile-sync-controller to v2.0.0
  • Add back account syncing effects and hooks.
  • Remove the isNotificationsFeatureEnabled() check for the settings page that was used to conditionally display the profile sync toggle. Profile sync is used by notifications, but not only. Account sync is one feature under the profile sync umbrella. This setting toggle will now be shown.
  • Add two new UserStorageController state key/values, hasAccountSyncingSyncedAtLeastOnce and isAccountSyncingReadyToBeDispatched
  • Add back the notifications Bitrise workflows
  • Use the USER_STORAGE_FEATURE_NAMES exported const from @metamask/profile-sync-controller to populate user storage feature names in order to remove magic strings.
  • Add support for BATCH DELETE operations in UserStorageMockttpController (used only in E2E tests)

☝️ The identity team recently became the owner of user storage and profile syncing features. In order to keep the number of files changed low in this PR, we'll rename and change folder structure in a subsequent PR.

Related issues

Fixes:

Manual testing steps

User facing changes:

  1. Open the app, go to the security settings
  2. Switch profile syncing on and off

E2E changes:

  1. Build the app for testing
  2. Run SmokeNotifications E2E tests

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

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.

@mathieuartu mathieuartu added the Run Smoke E2E Triggers smoke e2e on Bitrise label Nov 26, 2024
Copy link
Contributor

github-actions bot commented Nov 26, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: cf75abe
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/8de5e9ad-5ef7-4a26-9448-96c8fd8ffe6b

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Run Smoke E2E Triggers smoke e2e on Bitrise team-identity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant