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: Extracting the type for wrapper in rpc-method-middleware handlers #23589

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

NiranjanaBinoy
Copy link
Contributor

@NiranjanaBinoy NiranjanaBinoy commented Mar 19, 2024

Description

Part of #23014
The wrapper used by rpc-method-middleware handlers is having the same structure, so I am extracting the type to a separate re-usable file.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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.

@NiranjanaBinoy NiranjanaBinoy self-assigned this Mar 19, 2024
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.

@NiranjanaBinoy NiranjanaBinoy added the team-extension-platform Extension Platform team label Mar 19, 2024
@NiranjanaBinoy NiranjanaBinoy changed the title Extracting the type for wrapper in rpc-method-middleware handlers refactor: Extracting the type for wrapper in rpc-method-middleware handlers Mar 19, 2024
@NiranjanaBinoy NiranjanaBinoy changed the title refactor: Extracting the type for wrapper in rpc-method-middleware handlers chore: Extracting the type for wrapper in rpc-method-middleware handlers Mar 19, 2024
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.27%. Comparing base (9dbcea2) to head (777efe9).
Report is 184 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #23589   +/-   ##
========================================
  Coverage    68.27%   68.27%           
========================================
  Files         1141     1141           
  Lines        43873    43873           
  Branches     11765    11765           
========================================
  Hits         29954    29954           
  Misses       13919    13919           

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

@metamaskbot
Copy link
Collaborator

Builds ready [4461fd3]
Page Load Metrics (859 ± 555 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint763251546833
domContentLoaded13100342211
load6228108591157555
domInteractive13100342211
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [b21ec54]
Page Load Metrics (795 ± 455 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint722191283718
domContentLoaded1082382311
load592432795947455
domInteractive1082382311
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [18f6b0a]
Page Load Metrics (1258 ± 464 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint783711497335
domContentLoaded137532189
load6622671258967464
domInteractive137532189
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [fc30dca]
Page Load Metrics (886 ± 474 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint763361286029
domContentLoaded1610030189
load672204886987474
domInteractive1610030189
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Contributor

github-actions bot commented Jun 8, 2024

This PR has been automatically marked as stale because it has not had recent activity in the last 60 days. It will be closed in 14 days. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Jun 8, 2024
Copy link
Contributor

This PR was closed because there has been no follow up activity in the last 14 days. Thank you for your contributions.

@github-actions github-actions bot closed this Jun 22, 2024
@github-actions github-actions bot removed the stale issues and PRs marked as stale label Jun 24, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 25, 2024
@MajorLift MajorLift reopened this Jan 31, 2025
@MajorLift MajorLift force-pushed the extract-wrapper-type branch from c23d74b to 22d92d7 Compare January 31, 2025 18:00
@MajorLift MajorLift changed the base branch from develop to main January 31, 2025 18:08
@MajorLift MajorLift marked this pull request as ready for review January 31, 2025 18:35
@MajorLift MajorLift requested review from a team and DDDDDanica January 31, 2025 18:35
@MajorLift MajorLift self-assigned this Jan 31, 2025
@MetaMask MetaMask unlocked this conversation Jan 31, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [bcb3345]
Page Load Metrics (1630 ± 52 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint40419791572288138
domContentLoaded15041965160910450
load15161979163010752
domInteractive24107402211
backgroundConnect116023178
firstReactRender1698422813
getState55712147
initialActions01000
loadScripts1069140111648440
setupStore876252612
uiStartup17312374192619493
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 1.35 MiB (30.33%)
  • ui: 165.43 KiB (2.14%)
  • common: 1.04 MiB (12.91%)

@MajorLift MajorLift enabled auto-merge February 3, 2025 03:26
@DDDDDanica
Copy link
Contributor

LGTM !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-extension-platform Extension Platform team
Projects
Status: Needs dev review
Development

Successfully merging this pull request may close these issues.

4 participants