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

Give the user ability to opt out of get balance batch request for all loaded accounts #16746

Merged
merged 4 commits into from
Dec 1, 2022

Conversation

pedronfigueiredo
Copy link
Contributor

@pedronfigueiredo pedronfigueiredo commented Nov 30, 2022

Explanation

  • Adds ability for the user to opt-out of batching requests to get balances for all accounts in the wallet

    • Toggle under settings > Security & Privacy
    • Toggle on the "Set advanced privacy settings" post-wallet creation onboarding screen
  • Unit tests

  • Fixes [Bug]: Don't correlate accounts with RPC endpoint. #15169

Screenshots/Screencaps

Opting.out.of.batching.Network.Requests.for.user.privacy.1.mp4

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@pedronfigueiredo pedronfigueiredo requested a review from a team as a code owner November 30, 2022 16:42
@github-actions
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.

@pedronfigueiredo pedronfigueiredo changed the title Fix 15169 Give the user ability to opt out of get balance batch request for all loaded accounts Nov 30, 2022
Copy link
Contributor Author

@pedronfigueiredo pedronfigueiredo left a comment

Choose a reason for hiding this comment

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

github diff checker is a bit confused on this file, I simply reordered the render functions on this file and added a new one

@@ -83,24 +85,26 @@ export default class SecurityTab extends PureComponent {
);
}

renderMetaMetricsOptIn() {
renderIncomingTransactionsOptIn() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

github diff checker is a bit confused on this file, I simply reordered the render functions on this file and added a new one

@pedronfigueiredo pedronfigueiredo force-pushed the fix-15169 branch 2 times, most recently from f1e4b6f to 342a8e5 Compare November 30, 2022 17:13
@metamaskbot
Copy link
Collaborator

Builds ready [342a8e5]
Page Load Metrics (2107 ± 170 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint101173128178
domContentLoaded157528802092353170
load157528802107354170
domInteractive157528802092353170
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 464 bytes
  • ui: 1333 bytes
  • common: 231 bytes

highlights:

storybook

brad-decker
brad-decker previously approved these changes Nov 30, 2022
Copy link
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

This looks good to me, tested locally and works well. Great work @pedronfigueiredo 🎉

jpuri
jpuri previously approved these changes Nov 30, 2022
Copy link
Contributor

@jpuri jpuri left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@pedronfigueiredo pedronfigueiredo changed the title Give the user ability to opt out of get balance batch request for all loaded accounts [DRAFT] Give the user ability to opt out of get balance batch request for all loaded accounts Nov 30, 2022
@pedronfigueiredo pedronfigueiredo changed the title [DRAFT] Give the user ability to opt out of get balance batch request for all loaded accounts (DRAFT) Give the user ability to opt out of get balance batch request for all loaded accounts Nov 30, 2022
@pedronfigueiredo pedronfigueiredo marked this pull request as draft November 30, 2022 18:25
@pedronfigueiredo
Copy link
Contributor Author

Marking it as a draft until tomorrow to get the final copy.

@brad-decker brad-decker added the DO-NOT-MERGE Pull requests that should not be merged label Nov 30, 2022
@brad-decker
Copy link
Contributor

brad-decker commented Nov 30, 2022

@pedronfigueiredo by default we let contributors with merge access merge their own PRs, but sometimes they do get merged by others. Marking as draft is appropriate here due to incoming changes but you can also flag with DO-NOT-MERGE when necessary to avoid others merging fully approved PRs. Example: #12847 (at least it has been fully approved multiple times in the past :P )

@pedronfigueiredo pedronfigueiredo dismissed stale reviews from jpuri and brad-decker via e92ec03 December 1, 2022 13:34
@pedronfigueiredo pedronfigueiredo changed the title (DRAFT) Give the user ability to opt out of get balance batch request for all loaded accounts Give the user ability to opt out of get balance batch request for all loaded accounts Dec 1, 2022
@pedronfigueiredo pedronfigueiredo marked this pull request as ready for review December 1, 2022 13:36
@pedronfigueiredo pedronfigueiredo removed the DO-NOT-MERGE Pull requests that should not be merged label Dec 1, 2022
@metamaskbot
Copy link
Collaborator

Builds ready [145bf9a]
Page Load Metrics (2427 ± 154 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint993321515024
domContentLoaded174630042417319153
load174630042427320154
domInteractive174630042417319153
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 464 bytes
  • ui: 1333 bytes
  • common: 231 bytes

highlights:

storybook

@metamaskbot
Copy link
Collaborator

Builds ready [c4dd37e]
Page Load Metrics (1856 ± 91 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint9112410484
domContentLoaded14782168183719192
load14782246185619091
domInteractive14782168183719192
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 464 bytes
  • ui: 1333 bytes
  • common: 231 bytes

highlights:

storybook

@metamaskbot
Copy link
Collaborator

Builds ready [59598bb]
Page Load Metrics (2583 ± 319 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1051392315419201
domContentLoaded182741542573668321
load182741542583664319
domInteractive182741542573668321
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 464 bytes
  • ui: 1333 bytes
  • common: 231 bytes

highlights:

storybook

Copy link
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

🎉

@pedronfigueiredo pedronfigueiredo merged commit d096560 into develop Dec 1, 2022
@pedronfigueiredo pedronfigueiredo deleted the fix-15169 branch December 1, 2022 21:16
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2022
@pedronfigueiredo pedronfigueiredo self-assigned this Dec 8, 2022
@PeterYinusa PeterYinusa added this to the v10.24.0 milestone Jan 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Don't correlate accounts with RPC endpoint.
6 participants