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: Add re-simulation feature #12107

Merged
merged 15 commits into from
Oct 31, 2024
Merged

feat: Add re-simulation feature #12107

merged 15 commits into from
Oct 31, 2024

Conversation

OGPoyraz
Copy link
Member

@OGPoyraz OGPoyraz commented Oct 30, 2024

Description

This PR cherry-picks #12073

Quality gate failures:

These are expected as we discussed - all those failures will be addressed in the https://github.com/MetaMask/MetaMask-planning/issues/3584

Node version update:

It's a side effect of the bump to 7.0.1 of @metamask/rpc-errors.
https://github.com/MetaMask/rpc-errors/blob/main/package.json#L92

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3380

Manual testing steps

Screenshots/Recordings

This feature already tested and released.
Please see the original picked PR for recording.

Before

After

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.

OGPoyraz and others added 2 commits October 30, 2024 18:43
<!--
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.
-->

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

This PR aims to add re-simulation logic which recently added at
MetaMask/core#4792

Patch note:
Transaction controller patch adds the re-simulate feature, branched
belove to keep track - this will eventually be removed in subsequent
releases.

MetaMask/core@main...patch/mobile-transaction-controller-35-0-0

Fixes: MetaMask/MetaMask-planning#3380

Since the changes are in the core - it's already validated in the
extension in the transaction lifecycle.

But for the sake of risk, all transaction simulations will be rechecked
and approval will be needed from QA as we discussed internally.

https://github.com/user-attachments/assets/42a433d0-7156-4f6d-b45b-fd6cdda712ee

NA

NA

- [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.

- [ ] 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: Nico MASSART <NicolasMassart@users.noreply.github.com>
@OGPoyraz OGPoyraz requested review from a team as code owners October 30, 2024 17:47
@github-actions github-actions bot added the team-confirmations Push issues to confirmations team label Oct 30, 2024
.nvmrc Show resolved Hide resolved
Copy link

socket-security bot commented Oct 31, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/base-controller@7.0.2 None +2 1.18 MB metamaskbot
npm/@metamask/controller-utils@11.4.2 network 0 264 kB metamaskbot

🚮 Removed packages: npm/@metamask/base-controller@7.0.1, npm/@metamask/controller-utils@11.3.0

View full report↗︎

matthewwalsh0
matthewwalsh0 previously approved these changes Oct 31, 2024
locales/languages/en.json Outdated Show resolved Hide resolved
app/util/smart-transactions/index.test.ts Outdated Show resolved Hide resolved
app/components/Views/LedgerConnect/Scan.test.tsx Outdated Show resolved Hide resolved
@OGPoyraz OGPoyraz added No QA Needed Apply this label when your PR does not need any QA effort. team-mobile-platform labels Oct 31, 2024
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
41.1% Coverage on New Code (required ≥ 60%)
18.0% Duplication on New Code (required ≤ 10%)

See analysis details on SonarCloud

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.

Okok seems that there is an awesome plan in place to fix the sonar quality gate and this is urgent! LGTM!

@tommasini tommasini added the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label Oct 31, 2024
@tommasini tommasini added this pull request to the merge queue Oct 31, 2024
Merged via the queue into main with commit 23d311c Oct 31, 2024
46 of 48 checks passed
@tommasini tommasini deleted the feat/resimulate branch October 31, 2024 11:57
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2024
@metamaskbot metamaskbot added the release-7.35.0 Issue or pull request that will be included in release 7.35.0 label Oct 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. release-7.35.0 Issue or pull request that will be included in release 7.35.0 skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. team-confirmations Push issues to confirmations team team-mobile-platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants