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

refactor: Update core controllers (v47) #6964

Merged
merged 1 commit into from
Aug 23, 2023
Merged

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Aug 3, 2023

Development & PR Process

  1. Follow MetaMask Mobile Coding Standards
  2. Add release-xx label to identify the PR slated for a upcoming release (will be used in release discussion)
  3. Add needs-dev-review label when work is completed
  4. Add the appropiate QA label when dev review is completed
    • needs-qa: PR requires manual QA.
    • No QA/E2E only: PR does not require any manual QA effort. Prior to merging, ensure that you have successful end-to-end test runs in Bitrise.
    • Spot check on release build: PR does not require feature QA but needs non-automated verification. In the description section, provide test scenarios. Add screenshots, and or recordings of what was tested.
  5. Add QA Passed label when QA has signed off (Only required if the PR was labeled with needs-qa)
  6. Add your team's label, i.e. label starting with team- (or external-contributor label if your not a MetaMask employee)

Description

The package @metamask/assets-controllers has been updated to v6, which brings core packages up-to-date with v47 of the core monorepo.

Issue

This closes https://github.com/MetaMask/mobile-planning/issues/877

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@socket-security
Copy link

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@metamask/assets-controllers 5.1.0...6.0.0 None +0/-0 600 kB metamaskbot

@Gudahtt

This comment was marked as resolved.

@Gudahtt Gudahtt force-pushed the update-controller-packages-v45 branch 2 times, most recently from 7b3905e to 579487f Compare August 17, 2023 21:53
@Gudahtt Gudahtt force-pushed the update-controller-packages-v47 branch from 4ca5a12 to 0bb0c41 Compare August 17, 2023 23:03
@Gudahtt
Copy link
Member Author

Gudahtt commented Aug 18, 2023

This has been rebased onto #6902

Passing e2e test run: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/5e6851f8-0d0f-40c2-8c13-655ee997779b

@Gudahtt Gudahtt force-pushed the update-controller-packages-v45 branch from 579487f to a1b4372 Compare August 18, 2023 13:18
@Gudahtt Gudahtt force-pushed the update-controller-packages-v47 branch from 0bb0c41 to 20984a2 Compare August 18, 2023 13:18
@Gudahtt Gudahtt force-pushed the update-controller-packages-v45 branch from a1b4372 to 6101dc3 Compare August 18, 2023 13:23
@Gudahtt Gudahtt force-pushed the update-controller-packages-v47 branch from 20984a2 to cdfaa59 Compare August 18, 2023 13:24
@codecov-commenter
Copy link

codecov-commenter commented Aug 18, 2023

Codecov Report

Merging #6964 (123356c) into main (30e9e40) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #6964   +/-   ##
=======================================
  Coverage   32.73%   32.73%           
=======================================
  Files         993      993           
  Lines       26614    26614           
  Branches     2083     2083           
=======================================
  Hits         8713     8713           
  Misses      17487    17487           
  Partials      414      414           
Files Changed Coverage Δ
app/core/Engine.ts 57.84% <100.00%> (ø)

Copy link
Contributor

@tommasini tommasini left a comment

Choose a reason for hiding this comment

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

Since setProviderType is now async, should we create an issue to change the codebase?
Since this controller update only changes the assets-controllers version, I don't know if it would be okay to do it here.

Let me know what do you think

I'm a little bit confused, the setProviderType on the change log of version 47 is turned to async, but on the change log of the network controller it's just on version 8.0.0. I believe this will not crash anything, but just checking if we should update the network controllers to 8.0.0 to do this update on assets-controllers.

@Gudahtt
Copy link
Member Author

Gudahtt commented Aug 21, 2023

Thanks for looking into that @tommasini . I hadn't noticed that entry before. It looks like it's invalid.

The linked PR is indeed for the network controller - the only impact it had on assets-controllers was in a test. That network controller change wasn't even included in that release - it was in v48, the release after this one. So that entry is invalid for two different reasons. I'll update it now. (Edit: done here: MetaMask/core#1619 )

@Gudahtt
Copy link
Member Author

Gudahtt commented Aug 21, 2023

This was the only functional change for assets-controllers in that release: MetaMask/core#1166

tommasini
tommasini previously approved these changes Aug 21, 2023
Copy link
Contributor

@tommasini tommasini left a comment

Choose a reason for hiding this comment

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

Thanks for the explanation and for looking into that!!
Looks good to me 🚀

@Gudahtt Gudahtt force-pushed the update-controller-packages-v45 branch from 6101dc3 to 67fb70d Compare August 22, 2023 21:07
@Gudahtt Gudahtt force-pushed the update-controller-packages-v47 branch from cdfaa59 to 0188a38 Compare August 22, 2023 21:51
Base automatically changed from update-controller-packages-v45 to main August 22, 2023 23:09
@Gudahtt Gudahtt dismissed tommasini’s stale review August 22, 2023 23:09

The base branch was changed.

The package `@metamask/assets-controllers` has been updated to v6,
which brings core packages up-to-date with v47 of the core monorepo.

This closes MetaMask/mobile-planning#877
@Gudahtt Gudahtt force-pushed the update-controller-packages-v47 branch from 0188a38 to 123356c Compare August 22, 2023 23:09
@Gudahtt Gudahtt marked this pull request as ready for review August 22, 2023 23:10
@Gudahtt Gudahtt requested a review from a team as a code owner August 22, 2023 23:10
@Gudahtt
Copy link
Member Author

Gudahtt commented Aug 22, 2023

The blockers have been merged, so this has been rebased onto main

@Gudahtt Gudahtt added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Aug 22, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@cortisiko
Copy link
Member

Hey @Gudahtt, testing is still ongoing. I did however notice a bug.

After importing a wallet, I notice my transaction history is not displayed. See the recording here: http://recordit.co/Wsn77E1xy2

Compared to prod v7.5: http://recordit.co/02UDZRtvci

To reproduce:
Import a wallet with transaction history on mainnet
when you get to the wallet view go to the transaction history view
notice previous transactions do not appear

Copy link
Member

@cortisiko cortisiko left a comment

Choose a reason for hiding this comment

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

Looks good. ✅

@cortisiko cortisiko added QA Passed A successful QA run through has been done and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Aug 23, 2023
@Gudahtt
Copy link
Member Author

Gudahtt commented Aug 23, 2023

For further context on the bug referenced a few comments back: we later discovered that it was introduced by #6998 and is being addressed in #7042

@Gudahtt Gudahtt merged commit c226dfb into main Aug 23, 2023
18 checks passed
@Gudahtt Gudahtt deleted the update-controller-packages-v47 branch August 23, 2023 21:56
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2023
@metamaskbot metamaskbot added the release-7.7.0 Issue or pull request that will be included in release 7.7.0 label Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed A successful QA run through has been done release-7.7.0 Issue or pull request that will be included in release 7.7.0 team-mobile-platform team-wallet-framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants