Commit 76f659c
authored
temp+fix: patch profile-sync-controller to rename endpoint cp-13.0.0 (#34721)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
This PR patches `@metamask/profile-sync-controller` in order to follow
up on the recent API changes that renamed an authentication endpoint
from `/api/v2/profile/metametrics` to `/api/v2/profile/lineage`
It also renames a hardcoded mock url to the new name scheme.
The `core` PR that fixes the underlying issue is below:
MetaMask/core#6211
When this core PR will be merged and the package updated on extension,
this patch won't be needed anymore.
[](https://codespaces.new/MetaMask/metamask-extension/pull/34721?quickstart=1)
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry:
## **Related issues**
Related to: #34461
## **Manual testing steps**
1. Complete onboarding
2. Go to the home page
3. Open network tab in the dev tools
4. Refresh the page
5. Verify that no call to `/api/v2/profile/metametrics` were done, and
calls to `/api/v2/profile/lineage` happened instead
## **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/main/.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/main/.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.1 parent cb1a4ae commit 76f659c
File tree
253 files changed
+11993
-7315
lines changed- .github
- scripts
- workflows
- .yarn/patches
- app
- _locales
- de
- el
- en_GB
- en
- es
- fr
- hi
- id
- ja
- ko
- pt
- ru
- tl
- tr
- vi
- zh_CN
- devtools
- ocap-kernel
- images
- scripts
- controller-init
- identity
- messengers
- accounts
- multichain
- controllers
- swaps
- lib
- ppom
- snap-keyring
- start-up-errors
- state-corruption
- stores
- transaction/containers
- migrations
- streams
- development
- build
- webpack
- test
- utils
- loaders
- docs
- lavamoat/browserify
- beta
- experimental
- flask
- main
- mmi
- test
- data
- e2e
- flask/snaps
- mock-response-data/snaps/snap-binaries-and-headers
- page-objects/pages
- seeder
- snaps
- tests
- bridge
- metrics
- state-snapshots
- multichain-accounts
- portfolio
- solana
- mocks
- integration
- data
- swaps
- types
- ui
- components
- app
- assets/nfts/nft-details
- snaps/snap-ui-account-selector
- srp-quiz-modal/SRPQuiz
- terms-of-use-popup
- wallet-overview
- multichain-accounts
- multichain-account-cell
- multichain-accounts-tree
- multichain-address-rows-list
- multichain-address-row
- smart-contract-account-toggle-section/__snapshots__
- smart-contract-account-toggle
- __snapshots__
- multichain
- account-network-indicator
- app-header
- import-account
- __snapshots__
- multichain-accounts/wallet-details-account-item
- contexts
- css
- ducks
- alerts
- send
- swaps
- helpers
- constants
- utils
- hooks/bridge
- pages
- asset
- components/chart
- bridge
- hooks
- prepare
- confirmations
- components
- confirm
- info
- __snapshots__
- batch/batch-simulation-details
- hooks
- typed-sign/typed-sign-v4-simulation/value-display
- modals/simulation-settings-modal
- simulation-details
- confirm
- hooks
- alerts/transactions
- gas
- selectors
- send
- types
- design-system
- error-page
- multichain-accounts
- address-qr-code
- base-account-details
- wallet-details
- onboarding-flow
- create-password
- __snapshots__
- welcome
- settings
- advanced-tab
- __snapshots__
- developer-options-tab
- __snapshots__
- security-tab
- __snapshots__
- change-password
- swaps/prepare-swap-page
- selectors/multichain-accounts
- store
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
253 files changed
+11993
-7315
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | 393 | | |
423 | 394 | | |
424 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 52 | | |
60 | 53 | | |
61 | 54 | | |
| |||
193 | 186 | | |
194 | 187 | | |
195 | 188 | | |
196 | | - | |
197 | 189 | | |
198 | 190 | | |
199 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 34 | + | |
| 35 | + | |
44 | 36 | | |
45 | 37 | | |
46 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 71 | + | |
| 72 | + | |
81 | 73 | | |
82 | 74 | | |
83 | 75 | | |
| |||
This file was deleted.
Lines changed: 86 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments