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

chore(runway): cherry-pick fix: migrate from decommissioned ipfs gateway to new one #12032

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

runway-github[bot]
Copy link
Contributor

@runway-github runway-github bot commented Oct 25, 2024

Description

  • adds state migration for users with decommissioned IPFS gateway
  • adds migration tests
  • adds new target gateway (dweb.link) to list and make it replace
    decommissioned gateway.

Note

this is only a state migration, the user will not have any visible
warnings. It will only show the new gateway as selected instead of the
decommissioned one if it was in their state.

Related issues

Fixes #11692

Manual testing steps

Feature: Migrate from decommissioned gateway to dweb.link 
  Scenario: Verify non migrated gateway
    Given an installed app that was built before the decommission of https://cloudflare-ipfs.com/ipfs/ (pre ac7978596566f148fa6892940fb5678170ba0351, for latest is 7.32.0)
    When go to security & privacy settings
    And select https://cloudflare-ipfs.com/ipfs/
    Then see "Your current IPFS gateway is down" as decommissioned gateway does not respond

  Scenario: Check migration
    Given the current PR app installed
    When go to security & privacy settings
    Then see "https://dweb.link/ipfs/" gateway selected

Screenshots/Recordings

Before

Simulator Screenshot - iPhone 16 Pro - 2024-10-23 at 22 00 21

After

Simulator Screenshot - iPhone 16 Pro - 2024-10-23 at 22 15 31

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.

Co-authored-by: legobeat 109787230+legobeat@users.noreply.github.com
Co-authored-by: tommasini 46944231+tommasini@users.noreply.github.com 9b8599e

…way to new one (#11985)

<!--
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**

- adds state migration for users with decommissioned IPFS gateway
- adds migration tests
- adds new target gateway (dweb.link) to list and make it replace
decommissioned gateway.

>[!NOTE]
> this is only a state migration, the user will not have any visible
warnings. It will only show the new gateway as selected instead of the
decommissioned one if it was in their state.

## **Related issues**

Fixes #11692

## **Manual testing steps**

```gherkin
Feature: Migrate from decommissioned gateway to dweb.link 
  Scenario: Verify non migrated gateway
    Given an installed app that was built before the decommission of https://cloudflare-ipfs.com/ipfs/ (pre ac79785, for latest is 7.32.0)
    When go to security & privacy settings
    And select https://cloudflare-ipfs.com/ipfs/
    Then see "Your current IPFS gateway is down" as decommissioned gateway does not respond

  Scenario: Check migration
    Given the current PR app installed
    When go to security & privacy settings
    Then see "https://dweb.link/ipfs/" gateway selected
```

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

Simulator Screenshot - iPhone 16 Pro - 2024-10-23 at 22 00 21
<img
src="https://github.com/user-attachments/assets/f1e9ddc5-d40c-4726-9ad9-222dcaedf8aa"
width="300px"/>

### **After**

Simulator Screenshot - iPhone 16 Pro - 2024-10-23 at 22 15 31
<img
src="https://github.com/user-attachments/assets/090cfbed-1e20-4cf1-8f4f-8fa2f1f1bcd8"
width="300px"/>

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/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-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.

---------

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
Co-authored-by: tommasini <46944231+tommasini@users.noreply.github.com>
@runway-github runway-github bot requested review from a team as code owners October 25, 2024 18:56
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.

Copy link

@NicolasMassart NicolasMassart merged commit 35a8e84 into release/7.34.0 Oct 28, 2024
35 of 36 checks passed
@NicolasMassart NicolasMassart deleted the runway-cherry-pick-7.34.0-1729882604 branch October 28, 2024 11:20
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant