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

fix: check for preferences controller in 036 migration #9080

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

owencraston
Copy link
Contributor

@owencraston owencraston commented Mar 27, 2024

Description

  1. What is the reason for the change?
  • @Cal-L discovered a missing test case in his PR for my migration. In order to perfectly handle the edge cases for this migration we must also check if the Preferences controller state is defined.
  • In order to unblock the above PR we need to handle this edge case.
  1. What is the improvement/solution?
  • check if the preferences controller state is defined
  • add tests for the error cases and error messages

Related issues

Fixes: N/A

Manual testing steps

  • the tests should all pass.
  • this migration was already tested and QAd in this previous PR

Screenshots/Recordings

Before

After

Screenshot 2024-03-27 at 11 54 27 AM

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.

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.

@owencraston owencraston marked this pull request as ready for review March 27, 2024 18:55
@owencraston owencraston requested a review from a team as a code owner March 27, 2024 18:55
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!!

Copy link

sonarcloud bot commented Mar 27, 2024

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.55%. Comparing base (853fde0) to head (403e84b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9080      +/-   ##
==========================================
+ Coverage   45.53%   45.55%   +0.02%     
==========================================
  Files        1272     1272              
  Lines       31232    31235       +3     
  Branches     3187     3188       +1     
==========================================
+ Hits        14220    14230      +10     
+ Misses      16172    16167       -5     
+ Partials      840      838       -2     

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

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

LGTM

@owencraston owencraston merged commit 3c0ac7d into main Mar 27, 2024
50 checks passed
@owencraston owencraston deleted the fix/migration-036-error-checking branch March 27, 2024 19:11
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2024
@metamaskbot metamaskbot added the release-7.20.0 Issue or pull request that will be included in release 7.20.0 label Mar 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.20.0 Issue or pull request that will be included in release 7.20.0 team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants