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: PortfolioView: Add feature flag check for polling intervals #28501

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

darkwing
Copy link
Contributor

@darkwing darkwing commented Nov 15, 2024

Description

Adds a remote endpoint check to see if the remote API wants us to update the number of seconds between polling intervals for balances.

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Open the extension
  2. See the network request being made in the Networks devtools panel
  3. Change conditional in response to if (true) { and hardcode a pollInterval value
  4. See this.tokenBalancesController.setIntervalLength successfully called.

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.

@darkwing darkwing requested a review from a team as a code owner November 15, 2024 18:31
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.

@metamaskbot
Copy link
Collaborator

Builds ready [4640516]
Page Load Metrics (1818 ± 55 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16852125182011254
domContentLoaded16612077179510550
load16862131181811455
domInteractive308044136
backgroundConnect1086282311
firstReactRender672061022612
getState45315178
initialActions01000
loadScripts1201151813188742
setupStore5639126
uiStartup18502387202814771
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 666 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [cb82a96]
Page Load Metrics (1862 ± 65 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16702221186413665
domContentLoaded16212138182912460
load16632225186213565
domInteractive15176483416
backgroundConnect888332512
firstReactRender48204986029
getState482011053919
initialActions01000
loadScripts11761606135910249
setupStore679142110
uiStartup190527842231236113
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 666 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [cbc318f]
Page Load Metrics (1830 ± 90 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30823301766380182
domContentLoaded16102317180717885
load16432333183018790
domInteractive26246595426
backgroundConnect9120252512
firstReactRender4310266209
getState38110862010
initialActions01000
loadScripts12011786136915172
setupStore6539105
uiStartup186726682089229110
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 666 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@darkwing darkwing changed the title PortfolioView: Add feature flag check for paused networks and intervals feat: PortfolioView: Add feature flag check for paused networks and intervals Nov 16, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [93887cf]
Page Load Metrics (1985 ± 84 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint26025591912421202
domContentLoaded16852415194716378
load17292511198517484
domInteractive27267515024
backgroundConnect1089352411
firstReactRender48164802411
getState41132832512
initialActions01000
loadScripts12291851146513866
setupStore65112126
uiStartup196830842267227109
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 666 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@darkwing
Copy link
Contributor Author

@metamaskbot
Copy link
Collaborator

Builds ready [b4ba8d2]
Page Load Metrics (2194 ± 150 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint36725811859601288
domContentLoaded176428742156306147
load178528862194312150
domInteractive29208614019
backgroundConnect1288352211
firstReactRender523071529244
getState572081285125
initialActions01000
loadScripts127821791619257123
setupStore64912105
uiStartup204534772688412198
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 692 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [323e8df]
Page Load Metrics (2157 ± 180 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint41731642004634305
domContentLoaded166830682129375180
load167630792157375180
domInteractive28244594723
backgroundConnect974272211
firstReactRender463251067737
getState441811093617
initialActions01000
loadScripts122325191637334161
setupStore687162411
uiStartup190534432546407195
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 576 Bytes (0.01%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@darkwing darkwing changed the title feat: PortfolioView: Add feature flag check for paused networks and intervals feat: PortfolioView: Add feature flag check for polling intervals Nov 25, 2024
@darkwing darkwing force-pushed the portfolio-view-feature-flag branch 2 times, most recently from a0e28aa to 3ea34a9 Compare November 25, 2024 19:19
@darkwing darkwing requested a review from a team as a code owner November 25, 2024 19:19
@darkwing darkwing added the portfolio-view Used for PRs and issues related to Q4 2024 portfolio view label Nov 26, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [4be5539]
Page Load Metrics (1733 ± 70 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint35621091671334161
domContentLoaded15432096170314972
load15542108173314670
domInteractive247138157
backgroundConnect672292311
firstReactRender1599372713
getState57518209
initialActions01000
loadScripts11151616125113665
setupStore666172010
uiStartup176226841943225108

@metamaskbot
Copy link
Collaborator

Builds ready [2514209]
Page Load Metrics (1748 ± 64 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint23820391609435209
domContentLoaded14792025172213263
load14922040174813464
domInteractive2110536199
backgroundConnect76429178
firstReactRender1780482311
getState45613126
initialActions01000
loadScripts10831496127310852
setupStore65315168
uiStartup16752369195215776

@gambinish
Copy link
Contributor

We still planning to include this in the release? Or are we deciding to table this in favor of LaunchDarkly?

@darkwing
Copy link
Contributor Author

This needs to go into release.

@gambinish gambinish added this pull request to the merge queue Nov 27, 2024
Merged via the queue into develop with commit 068c456 Nov 27, 2024
75 checks passed
@gambinish gambinish deleted the portfolio-view-feature-flag branch November 27, 2024 16:39
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
portfolio-view Used for PRs and issues related to Q4 2024 portfolio view release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-wallet-ux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants