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

Version v12.3.1 RC #27434

Merged
merged 6 commits into from
Sep 30, 2024
Merged

Version v12.3.1 RC #27434

merged 6 commits into from
Sep 30, 2024

Conversation

metamaskbot
Copy link
Collaborator

📦 🚀

@metamaskbot
Copy link
Collaborator Author

Builds ready [7e88180]
Page Load Metrics (1737 ± 52 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint26719881671338162
domContentLoaded1532188716979646
load15351999173710952
domInteractive226836136

… (#27435)

This PR correctly applies the changes from #26807 and #26924 to master.
These were broken, probably by careless human error, in 3e1094a

---------

Co-authored-by: Matteo Scurati <[email protected]>
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.

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 70.15%. Comparing base (63a50cc) to head (2ede67e).

Files with missing lines Patch % Lines
app/scripts/lib/transaction/metrics.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #27434      +/-   ##
==========================================
- Coverage   70.15%   70.15%   -0.00%     
==========================================
  Files        1431     1431              
  Lines       50437    50437              
  Branches    13994    13995       +1     
==========================================
- Hits        35381    35380       -1     
- Misses      15056    15057       +1     

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

@metamaskbot
Copy link
Collaborator Author

Builds ready [5f93766]
Page Load Metrics (1739 ± 48 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1599190117409043
domContentLoaded1566186516968038
load15991940173910048
domInteractive135230115

bergeron and others added 2 commits September 27, 2024 12:41
## **Description**

Fixes issue
[27456](#27456) in
12.3.

If you try to add a new network with the same RPC URL and chain id as an
existing network, the link presented in the error message does not work
and throws an error:


https://github.com/user-attachments/assets/ebcade54-e49e-4a04-9ed6-396f2458f77a


This link in the error message was intended for the network redesign and
should stay behind the feature flag. Duplicate chain IDs are allowed in
this version of network managment. So this PR makes it back into a
warning like it would have been in 12.2:

<img width="338" alt="Screenshot 2024-09-27 at 12 02 49 PM"
src="https://github.com/user-attachments/assets/8c114cf7-5a1d-4662-b84f-a74caaef08d8">

There's nothing to fix in develop since it is already on the new network
controller / UI

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27463?quickstart=1)

## **Related issues**

Fixes: #27456

## **Manual testing steps**

1. Try to add a new network with the same RPC URL and chain id as an
existing network.

## **Screenshots/Recordings**

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

### **Before**

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

### **After**

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

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] 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](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.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.
…ring error (#27457) (#27462)

## **Description**

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

The original code assumes that getMethodData will always return an
object with a name property. However, in certain instances,
getMethodData can return null. When this happens, destructuring the name
property from null causes a runtime error.

To address this issue, the code has been updated to use optional
chaining. This ensures that if getMethodData returns null, the
destructuring will not occur, and contractMethodName will be set to
undefined instead of causing an error.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27457?quickstart=1)

## **Related issues**

Fixes: #27436

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

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

### **Before**

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

### **After**

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

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] 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](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.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.

Co-authored-by: Pedro Figueiredo <[email protected]>
@metamaskbot
Copy link
Collaborator Author

Builds ready [31d1f14]
Page Load Metrics (1649 ± 68 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15152213166115072
domContentLoaded15002032162012258
load15112136164914168
domInteractive207241147

## **Description**

Update changelog for v12.3.1

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27465?quickstart=1)

## **Related issues**

N/A

## **Manual testing steps**

N/A

## **Screenshots/Recordings**

N/A

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.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-extension/blob/develop/.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.
@Gudahtt Gudahtt marked this pull request as ready for review September 30, 2024 13:15
@Gudahtt Gudahtt requested review from a team as code owners September 30, 2024 13:15
@metamaskbot
Copy link
Collaborator Author

Builds ready [98a6968]
Page Load Metrics (1834 ± 130 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint154127121840272131
domContentLoaded151525951791251121
load154727271834270130
domInteractive156736167

desi
desi previously approved these changes Sep 30, 2024
Copy link
Contributor

@desi desi 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 previously approved these changes Sep 30, 2024
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

  • #27463: I tested this, and it works as expected
  • #27435: I wasn't sure how to test this
  • #27457: I wasn't sure how to test this, but the code changes are so minimal that it seems self-evidently safe to me, unable to cause a regression.

LGTM, though we should get someone to test and sign off on the notification metrics changes.

## **Description**

The "Fix notification metrics" change entry linked a PR where some of
these metrics were originally introduced, but it should have linked the
PR where they were fixed. The link has been updated.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27508?quickstart=1)

## **Related issues**

N/A

## **Manual testing steps**

N/A

## **Screenshots/Recordings**

N/A

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.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-extension/blob/develop/.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.
@Gudahtt Gudahtt dismissed stale reviews from desi and themself via 2ede67e September 30, 2024 19:26
@Gudahtt
Copy link
Member

Gudahtt commented Sep 30, 2024

#27435: I wasn't sure how to test this

This was QA'd by @Prithpal-Sooriya and approved (communicated in Slack release thread)

@metamaskbot
Copy link
Collaborator Author

Builds ready [2ede67e]
Page Load Metrics (1792 ± 133 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23428541728435209
domContentLoaded155727691757262126
load157728611792277133
domInteractive146334147

@Gudahtt Gudahtt merged commit 762b968 into master Sep 30, 2024
79 checks passed
@Gudahtt Gudahtt deleted the Version-v12.3.1 branch September 30, 2024 20:12
@github-actions github-actions bot locked and limited conversation to collaborators Sep 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants