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(patch): Use core branch for assets-controllers patch #7922

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Nov 23, 2023

Description

The @metamask/assets-controllers patch for the TokenRatesController has been updated to use a branch on the core monorepo. Using a core branch for these patch changes lets us more easily lint and type check the changes (and even test them if we feel the need), and avoids the need to work with compiled JavaScript (which can be tricky, especially when dealing with async code).

The patch is functionally identical to before; the only differences are type fixes, and a comment explaining the patch and how it is maintained.

So far only the TokenRatesController portion of the patch uses this branch, but we can extend this strategy later to the other files in this patch, if we find that useful.

Related issues

Relates to #7903

Manual testing steps

N/A, no functional changes

Screenshots/Recordings

N/A

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • 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.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@Gudahtt Gudahtt added No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. team-mobile-platform labels Nov 23, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0163b8b) 37.39% compared to head (210f858) 37.39%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7922   +/-   ##
=======================================
  Coverage   37.39%   37.39%           
=======================================
  Files        1052     1052           
  Lines       28175    28175           
  Branches     2517     2517           
=======================================
  Hits        10536    10536           
  Misses      17040    17040           
  Partials      599      599           

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

@Gudahtt Gudahtt marked this pull request as ready for review November 23, 2023 22:29
@Gudahtt Gudahtt requested a review from a team as a code owner November 23, 2023 22:29
Copy link
Contributor

E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/76ffd11c-5ce6-4ec7-8fa6-a7008ec9a2a1
You can also kick off another Bitrise E2E smoke test by removing and re-applying the (Run Smoke E2E) label

@Gudahtt Gudahtt force-pushed the update-token-rates-controller-patch branch from e6df9f9 to 7c8405d Compare November 24, 2023 12:51
The `@metamask/assets-controllers` patch for the TokenRatesController
has been updated to use a branch on the core monorepo. Using a core
branch for these patch changes lets us more easily lint and type check
the changes (and even test them if we feel the need), and avoids the
need to work with compiled JavaScript (which can be tricky, especially
when dealing with async code).

The patch is functionally identical to before; the only differences are
type fixes, and a comment explaining the patch and how it is
maintained.

So far only the `TokenRatesController` portion of the patch uses this
branch, but we can extend this strategy later to the other files in
this patch, if we find that useful.

Relates to #7903
@Gudahtt Gudahtt force-pushed the update-token-rates-controller-patch branch from 7c8405d to 210f858 Compare November 24, 2023 15:04
Copy link

sonarcloud bot commented Nov 24, 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

No Coverage information No Coverage information
No Duplication information No Duplication information

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.

LGTM

@Gudahtt Gudahtt merged commit b58f4f6 into main Nov 28, 2023
26 checks passed
@Gudahtt Gudahtt deleted the update-token-rates-controller-patch branch November 28, 2023 15:52
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2023
@metamaskbot metamaskbot added the release-7.13.0 Issue or pull request that will be included in release 7.13.0 label Nov 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. release-7.13.0 Issue or pull request that will be included in release 7.13.0 team-mobile-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants