Skip to content

Initial *.metafi and *.metaswap URL migrations#9388

Merged
smilingkylan merged 16 commits intomainfrom
kylan/urls
May 6, 2024
Merged

Initial *.metafi and *.metaswap URL migrations#9388
smilingkylan merged 16 commits intomainfrom
kylan/urls

Conversation

@smilingkylan
Copy link
Copy Markdown
Contributor

@smilingkylan smilingkylan commented Apr 24, 2024

Description

  1. What is the reason for the change? The current *.metafi and *.metaswap subdomains, in favour of *.api.cx.metamask.io, are going to be sunsetted in favor of a new subdomain / URL scheme. As a result, we need to migrate the relevant URLs in the application to there new equivalents while making sure that none of the links or assets break

Related issues

Fixes: https://github.com/orgs/MetaMask/projects/60/views/6?pane=issue&itemId=59223328

Manual testing steps

  1. Open up wallet and make sure that relevant assets load and that the token / price API calls work fine (eg click on an asset to trigger call to price.api.cx.metamask.io/v1/______

Screenshots/Recordings

Before

n/a, calls were getting status 200 before

After

An example:
image

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.

@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.

Comment thread app/components/UI/AssetSearch/index.test.tsx Outdated
Comment thread app/components/UI/Ramp/Views/NetworkSwitcher/NetworkSwitcher.test.tsx Outdated
Comment thread e2e/fixtures/fixture-builder.js Outdated
@smilingkylan smilingkylan added the team-mobile-platform Mobile Platform team label Apr 24, 2024
@smilingkylan smilingkylan marked this pull request as ready for review April 24, 2024 21:09
@smilingkylan smilingkylan requested a review from a team as a code owner April 24, 2024 21:09
@smilingkylan smilingkylan requested a review from a team April 24, 2024 21:09
@smilingkylan smilingkylan requested a review from a team as a code owner April 24, 2024 21:09
@smilingkylan smilingkylan self-assigned this Apr 24, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 24, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 321cfd6
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/2485e124-b583-4faa-b763-3b04dcb6bff3

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

@sethkfman
Copy link
Copy Markdown
Contributor

@kylanhurt Can you add the new domain in the description to make it easier to tell what should be changed?

Comment thread app/components/UI/AssetSearch/index.test.tsx
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 25, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 4823a0d
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/07057621-b47b-49a4-9336-ab3511051af0

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

sethkfman
sethkfman previously approved these changes Apr 25, 2024
Copy link
Copy Markdown
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

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

LGTM. 1 small clarifying question, then confirm E2E passes and reach out to Ramps and Tx team for review

Copy link
Copy Markdown
Member

@wachunei wachunei left a comment

Choose a reason for hiding this comment

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

Just a small change request: for all occurrences of *.metafi-dev.codefi.network/* the url to used should be *.dev-api.cx.metamask.io/* (ie: use dev-api instead of api for metafi-dev).

I pointed out a case below.

Comment thread app/components/UI/Ramp/Views/BuildQuote/BuildQuote.constants.ts Outdated
wachunei
wachunei previously approved these changes Apr 25, 2024
Copy link
Copy Markdown
Member

@wachunei wachunei left a comment

Choose a reason for hiding this comment

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

LGTM

@gauthierpetetin
Copy link
Copy Markdown
Contributor

gauthierpetetin commented Apr 25, 2024

Looks good to me!

I'm just curious know if we need to updated these occurences of .metafi as well?

Abd these occurences of .metaswap as well?

@sethkfman
Copy link
Copy Markdown
Contributor

@gauthierpetetin The patch files should eventually be updated by the controller upgrades.

@desi I just created a ticket for your team.

@gauthierpetetin
Copy link
Copy Markdown
Contributor

I understand that the controllers will be upgraded at some point in Mobile but since we don't know yet exactly when that will be the case, can we not keep the patches in the meanwhile, such that we can announce API Platform team that we don't use the deprecated urls anymore, as soon as this PR is merged?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 2f7529a
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/f15c354d-6964-40ab-9362-7ede936f28d7

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 1d9e4db
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/a1d1551e-4dc6-4cef-a8a0-c6ab6b4e9a79

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

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 3, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 8e155ac
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/128f4747-7365-4435-8d38-09fbe1c7c859

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

Copy link
Copy Markdown
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

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

LGTM

@smilingkylan smilingkylan merged commit 1232903 into main May 6, 2024
@smilingkylan smilingkylan deleted the kylan/urls branch May 6, 2024 14:54
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 2024
@metamaskbot metamaskbot added the release-7.23.0 Issue or pull request that will be included in release 7.23.0 label May 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.23.0 Issue or pull request that will be included in release 7.23.0 team-mobile-platform Mobile Platform team

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants