Skip to content

fix: Migrate API usage from *.metafi and *.metaswap subdomains to *.api.cx.metamask.io#24698

Merged
cryptodev-2s merged 40 commits intodevelopfrom
fix/replace-metafi-metaswap-subdomains
Jun 6, 2024
Merged

fix: Migrate API usage from *.metafi and *.metaswap subdomains to *.api.cx.metamask.io#24698
cryptodev-2s merged 40 commits intodevelopfrom
fix/replace-metafi-metaswap-subdomains

Conversation

@cryptodev-2s
Copy link
Copy Markdown
Contributor

@cryptodev-2s cryptodev-2s commented May 21, 2024

Description

API Platform team intends to deprecate *.metafi and *.metaswap subdomains in favour of *.api.cx.metamask.io
The new *.api.cx.metamask.io is already in place.
The old *.metafi and *.metaswap are still used across the controllers.
Controllers do not break currently because redirects are in place for the older sub-domains.
The redirects will be removed once all clients (Extension, Mobile, Core) are migrated.

Related issues

Fixes: #2351

Manual testing steps

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

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.

@cryptodev-2s cryptodev-2s requested review from a team as code owners May 21, 2024 22:16
@github-actions
Copy link
Copy Markdown
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.

@cryptodev-2s cryptodev-2s force-pushed the fix/replace-metafi-metaswap-subdomains branch from 15c4cdc to 94c9a24 Compare May 21, 2024 22:25
Copy link
Copy Markdown
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updates to the component-library folder look great! There's one failing unit test and some possibly flaky e2e tests to address. I can approve on behalf of @MetaMask/design-system-engineers once those are resolved.

  • Verified that new image links in AvatarToken are working. ✅

@cryptodev-2s cryptodev-2s changed the title Migrate API usage from *.metafi and *.metaswap subdomains to *.api.cx.metamask.io fix: Migrate API usage from *.metafi and *.metaswap subdomains to *.api.cx.metamask.io May 23, 2024
@socket-security
Copy link
Copy Markdown

socket-security bot commented Jun 5, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/name-controller@8.0.0 Transitive: network +3 544 kB

🚮 Removed packages: npm/@metamask/name-controller@6.0.1

View full report↗︎

@socket-security
Copy link
Copy Markdown

socket-security bot commented Jun 5, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@cryptodev-2s
Copy link
Copy Markdown
Contributor Author

@metamaskbot update-policies

@metamaskbot
Copy link
Copy Markdown
Collaborator

Policies updated

@metamaskbot metamaskbot requested review from a team as code owners June 5, 2024 17:18
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [8b83b3b]
Page Load Metrics (116 ± 144 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint67928163
domContentLoaded8171021
load411427116301144
domInteractive8171021
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 137.22 KiB (4.14%)
  • ui: 0 Bytes (0.00%)
  • common: 58.43 KiB (0.94%)

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.39%. Comparing base (d27a233) to head (8b83b3b).
Report is 264 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #24698      +/-   ##
===========================================
- Coverage    67.37%   65.39%   -1.98%     
===========================================
  Files         1278     1351      +73     
  Lines        49881    53961    +4080     
  Branches     12944    14037    +1093     
===========================================
+ Hits         33605    35283    +1678     
- Misses       16276    18678    +2402     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cryptodev-2s
Copy link
Copy Markdown
Contributor Author

The updates to the component-library folder look great! There's one failing unit test and some possibly flaky e2e tests to address. I can approve on behalf of @MetaMask/design-system-engineers once those are resolved.

  • Verified that new image links in AvatarToken are working. ✅

Pipeline is back to green

@cryptodev-2s
Copy link
Copy Markdown
Contributor Author

@SocketSecurity ignore npm/@metamask/name-controller@6.0.1

Copy link
Copy Markdown
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀 Approving on behalf of @MetaMask/design-system-engineers

  • Checked to ensure no remaining instances of metafi.codefi.network in codebase ✅
  • Checked for console errors ✅
  • Check some image links in storybook and app render as expected ✅

Screenshot 2024-06-05 at 1 17 17 PM

@cryptodev-2s cryptodev-2s removed the request for review from bergeron June 5, 2024 20:24
Copy link
Copy Markdown
Contributor

@kanthesha kanthesha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Copy Markdown
Contributor

@Prithpal-Sooriya Prithpal-Sooriya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good on the notifications side (we are not using any of the old API domains)

Copy link
Copy Markdown
Contributor

@pedronfigueiredo pedronfigueiredo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the privacy snapshots. LGTM!

@cryptodev-2s cryptodev-2s merged commit e6e3251 into develop Jun 6, 2024
@cryptodev-2s cryptodev-2s deleted the fix/replace-metafi-metaswap-subdomains branch June 6, 2024 11:42
@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2024
@gauthierpetetin gauthierpetetin added the release-12.0.0 Issue or pull request that will be included in release 12.0.0 label Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-12.0.0 Issue or pull request that will be included in release 12.0.0

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

10 participants