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: Error handling for the state log download failure #26999

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

NiranjanaBinoy
Copy link
Contributor

@NiranjanaBinoy NiranjanaBinoy commented Sep 9, 2024

Description

Display error message if the exportAsFile() for state log download in advanced tab in the settings fails.

Open in GitHub Codespaces

Related issues

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

Manual testing steps

  1. Throw an error artificially in the exportAsFile() state logs download function
  2. Failed to download state log. message is diaplayed

Screenshots/Recordings

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.

Copy link
Contributor

github-actions bot commented Sep 9, 2024

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.

@metamaskbot
Copy link
Collaborator

Builds ready [413f612]
Page Load Metrics (1654 ± 67 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23219951520448215
domContentLoaded14491987163714067
load14581995165414067
domInteractive14165393215
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 100 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@NiranjanaBinoy NiranjanaBinoy changed the title Error handling for the state log download failure fix: Error handling for the state log download failure Sep 10, 2024
@NiranjanaBinoy NiranjanaBinoy force-pushed the exportAsFile-error-handling branch 2 times, most recently from 17af50a to 66cada3 Compare September 11, 2024 17:42
Copy link

sonarcloud bot commented Sep 11, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [66cada3]
Page Load Metrics (1803 ± 115 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint24122381487620298
domContentLoaded151922111783235113
load152722401803239115
domInteractive19152402814
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 100 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 30.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 70.10%. Comparing base (a61b938) to head (66cada3).

Files with missing lines Patch % Lines
...es/settings/advanced-tab/advanced-tab.component.js 0.00% 4 Missing ⚠️
ui/helpers/utils/export-utils.js 50.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #26999      +/-   ##
===========================================
- Coverage    70.11%   70.10%   -0.00%     
===========================================
  Files         1426     1426              
  Lines        49689    49693       +4     
  Branches     13902    13902              
===========================================
+ Hits         34835    34836       +1     
- Misses       14854    14857       +3     

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

@metamaskbot
Copy link
Collaborator

Builds ready [a2fcbc3]
Page Load Metrics (1863 ± 120 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23425211638523251
domContentLoaded155524491844250120
load156424551863249120
domInteractive16115472713
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 338 Bytes (0.00%)
  • common: 482 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [ca4bb74]
Page Load Metrics (1780 ± 90 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15762243178318991
domContentLoaded15582226175518890
load15972246178018690
domInteractive21152454019
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 338 Bytes (0.00%)
  • common: 482 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [9d5ec3d]
Page Load Metrics (1758 ± 96 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint29125421619466224
domContentLoaded15812402172716981
load15912571175819996
domInteractive16185453618
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 389 Bytes (0.01%)
  • common: 482 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [11ba96f]
Page Load Metrics (1714 ± 59 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint33920811651324155
domContentLoaded15892025169011254
load15992098171412459
domInteractive1293372010
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 389 Bytes (0.01%)
  • common: 482 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [3d626de]
Page Load Metrics (1690 ± 81 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint25321201628354170
domContentLoaded14732023165414871
load14852164169016881
domInteractive1899392311
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 389 Bytes (0.01%)
  • common: 482 Bytes (0.01%)

Copy link

sonarcloud bot commented Oct 15, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [5f86e1f]
Page Load Metrics (1901 ± 78 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint53724851819335161
domContentLoaded16512466186316278
load16692479190116278
domInteractive178245189
backgroundConnect7176423718
firstReactRender46195773517
getState565302311
initialActions01000
loadScripts11892077140017182
setupStore1195292311
uiStartup18772678211019393
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 389 Bytes (0.00%)
  • common: 489 Bytes (0.01%)

DDDDDanica
DDDDDanica previously approved these changes Oct 18, 2024
@DDDDDanica
Copy link
Contributor

LGTM ! Let me know when u resolve the conflicts !

@metamaskbot
Copy link
Collaborator

Builds ready [6c80d61]
Page Load Metrics (1975 ± 181 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint169929471962329158
domContentLoaded168023691892240115
load169731491975377181
domInteractive17140543014
backgroundConnect97918317685
firstReactRender45266954421
getState4158254220
initialActions00000
loadScripts12511867138817283
setupStore10140373316
uiStartup185039402221529254
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 389 Bytes (0.00%)
  • common: 489 Bytes (0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs dev review
Development

Successfully merging this pull request may close these issues.

4 participants