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

feat: bump network controller 21.0.0 remove feature flag #11436

Conversation

salimtb
Copy link
Contributor

@salimtb salimtb commented Sep 25, 2024

Description

This PR introduces remove the feature flag to display the new multi-rpc feature UI

Related issues

Fixes: #11232 #11233

Manual testing steps

  1. Pull the branch and run the app.
  2. Navigate to the migration flow.
  3. Test that the migration modal appears and completes successfully.
  4. Verify that the new multi-RPC and block explorer UI is fully visible and functional after migration.
  5. Ensure the app behaves as expected with the updated configurations.

Screenshots/Recordings

Before

After

Migration.mov

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.

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.

@salimtb salimtb changed the base branch from main to salim/bump-network-controller-21.0.0 September 25, 2024 12:24
@salimtb salimtb force-pushed the salim/bump-network-controller-21.0.0-migration branch 2 times, most recently from 13f5318 to 2e989e9 Compare September 27, 2024 15:56
@salimtb salimtb added the Run Smoke E2E Triggers smoke e2e on Bitrise label Sep 29, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 29, 2024

Codecov Report

Attention: Patch coverage is 19.44444% with 29 lines in your changes missing coverage. Please review.

Please upload report for BASE (salim/bump-network-controller-21.0.0-migration-script-and-ui@0474f3d). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...Settings/NetworksSettings/NetworkSettings/index.js 7.14% 26 Missing ⚠️
...mponents/Views/NetworkSelector/NetworkSelector.tsx 33.33% 2 Missing ⚠️
app/util/hideKeyFromUrl.ts 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                                       Coverage Diff                                       @@
##             salim/bump-network-controller-21.0.0-migration-script-and-ui   #11436   +/-   ##
===============================================================================================
  Coverage                                                                ?   54.24%           
===============================================================================================
  Files                                                                   ?     1710           
  Lines                                                                   ?    39044           
  Branches                                                                ?     4806           
===============================================================================================
  Hits                                                                    ?    21179           
  Misses                                                                  ?    16391           
  Partials                                                                ?     1474           

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

Copy link
Contributor

github-actions bot commented Sep 29, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: fd36957
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/d4905882-03c7-4a95-9307-d5f92f54c965

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

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@salimtb salimtb added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 29, 2024
@salimtb salimtb force-pushed the salim/bump-network-controller-21.0.0-migration branch from fd36957 to aa9c5e9 Compare September 29, 2024 14:42
@salimtb salimtb added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 29, 2024
Copy link
Contributor

github-actions bot commented Sep 29, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: aa9c5e9
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/59189be5-8389-4bc2-b336-f0ecc6b693d5

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

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@salimtb salimtb added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 29, 2024
Copy link
Contributor

github-actions bot commented Sep 29, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 5acc79b
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/3ab16886-a8a8-4a6b-bb30-79f94234259a

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

@salimtb salimtb force-pushed the salim/bump-network-controller-21.0.0-migration branch 2 times, most recently from 59c503c to c298a5f Compare September 30, 2024 11:24
@salimtb salimtb changed the title Salim/bump network controller 21.0.0 migration Salim/bump network controller 21.0.0 migration Modal + remove feature flag Sep 30, 2024
@salimtb salimtb added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 30, 2024
Copy link
Contributor

github-actions bot commented Sep 30, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 57649cc
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0cae6e0c-8bec-47f7-9d10-606432e430d3

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

@salimtb salimtb added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Sep 30, 2024
Copy link
Contributor

github-actions bot commented Oct 1, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 9fb2094
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/f80a5bba-05fc-4f41-a97f-5bd8fdf6a80b

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

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@salimtb salimtb marked this pull request as ready for review October 1, 2024 12:41
@salimtb salimtb requested a review from a team as a code owner October 1, 2024 12:41
@salimtb salimtb force-pushed the salim/bump-network-controller-21.0.0-migration branch from a8e4ec0 to 51e5f8e Compare October 10, 2024 12:02
@salimtb salimtb force-pushed the salim/bump-network-controller-21.0.0-migration-script-and-ui branch 2 times, most recently from bbeb779 to e3c7dc5 Compare October 10, 2024 22:35
@salimtb salimtb force-pushed the salim/bump-network-controller-21.0.0-migration branch from 7819195 to d874aa9 Compare October 10, 2024 22:36
Copy link

sonarcloud bot commented Oct 11, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
39.9% Coverage on New Code (required ≥ 40%)

See analysis details on SonarCloud

@salimtb
Copy link
Contributor Author

salimtb commented Oct 11, 2024

This pull request was merged into this feature branch, so I need approval on that feature branch. I'm keeping the PR open to make the review process easier.

github-merge-queue bot pushed a commit that referenced this pull request Oct 11, 2024
…etworks with Distinct ChainIDs and Multiple RPC URLs (#11705)

<!--
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 refactors our network configuration to eliminate the use of
multiple networks with the same ChainID but different RPC URLs. Instead,
we are moving towards a setup where each network is uniquely identified
by a distinct ChainID and can have multiple RPC URLs associated with it.

This PR includes three merge commits. The first primarily addresses the
Network Controller upgrade, as outlined in issue
#[11229](#11229). The
second commit contains the script for migrating the state to v21, and
the third commit includes all the UI changes along with the fix for the
e2e tests.

For more details, please refer to
[this](https://github.com/orgs/MetaMask/projects/120/views/1) .

related PRs:

- #11292
- #11622
- #11436

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

## **Related issues**

Fixes:
#[11229](#11229)
#[11232](#11232)
#[11234](#11234)
#11233

## **Manual testing steps**

1. Go to add network flow and test

## **Screenshots/Recordings**

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

### **Before**

<!-- [screenshots/recordings] -->

### **After**


https://drive.google.com/drive/folders/149Xji42k5of5Vl8nBlI0pFYFgPnWqILH?usp=drive_link

<!-- [screenshots/recordings] -->

## **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.
@salimtb salimtb marked this pull request as draft October 13, 2024 16:05
@salimtb salimtb closed this Oct 14, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Run Smoke E2E Triggers smoke e2e on Bitrise team-assets
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants