-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: upgrade notification controller to use v2 endpoints #16360
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: upgrade notification controller to use v2 endpoints #16360
Conversation
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. |
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…ETS-890/update-notification-controller-v2-endpoints
|
## Explanation Reduces the number of API calls by 25-33% (cut 1/4 - 1/3 endpoints). Removes complex encryption and decryption logic from UserStorage. This took at least 2s on mobile per request! Enables us to have our notification backend to be the source of truth. We can now extend notifications easily without as much front-end work. Test Drive PRs: - Extension: MetaMask/metamask-extension#33564 - Mobile: MetaMask/metamask-mobile#16360 ## References https://consensyssoftware.atlassian.net/browse/MMASSETS-888 ## Changelog <!-- THIS SECTION IS NO LONGER NEEDED. The process for updating changelogs has changed. Please consult the "Updating changelogs" section of the Contributing doc for more. --> ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs), highlighting breaking changes as necessary - [x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
…ETS-890/update-notification-controller-v2-endpoints
app/core/Engine/messengers/notifications/notification-services-controller-messenger.test.ts
Show resolved
Hide resolved
e2e/specs/notifications/utils/mock-notification-trigger-server.ts
Outdated
Show resolved
Hide resolved
|
|
app/component-library/components/Modals/ModalMandatory/ModalMandatory.tsx
Outdated
Show resolved
Hide resolved
962f7b2
to
617504b
Compare
…ETS-890/update-notification-controller-v2-endpoints
|
|
E2E bridging smoke tests are failing due to a portfolio bridge page issue. I am confident that the notification changes are unrelated to this and won't cause any additional e2e failures |
Description
Upgrades the
@metamask/notification-services-controller
to use the v2 endpoints.Related issues
Fixes:
Manual testing steps
Test Notification Flows
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist