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

brave_stats: Create preference to disable ping #9229

Merged
merged 4 commits into from
Jul 6, 2021

Conversation

kkuehlz
Copy link
Contributor

@kkuehlz kkuehlz commented Jun 24, 2021

Resolves brave/brave-browser#16583

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

See issue

Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

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

LGTM

@kkuehlz kkuehlz requested a review from a team as a code owner June 24, 2021 21:16
@kkuehlz kkuehlz requested a review from simonhong June 24, 2021 21:19
@diracdeltas
Copy link
Member

UI lgtm but i didn't see any usage pings with or without the setting enabled. what's the expected IP of the ping?

@kkuehlz
Copy link
Contributor Author

kkuehlz commented Jun 24, 2021

UI lgtm but i didn't see any usage pings with or without the setting enabled. what's the expected IP of the ping?

I think since you are on a dev build it's not set. You can pass the cli flag --brave_stats_updater_url=https://vault.bsg.bravesoftware.com or set brave_stats_updater_url in .npmrc. Needs VPN. Also the ping on dev builds will 4xx because channel is set to developer, so that is expected.

@diracdeltas
Copy link
Member

You can pass the cli flag --brave_stats_updater_url=https://vault.bsg.bravesoftware.com or set brave_stats_updater_url in .npmrc

i tried both and still no pings. npm start runs the build with --disable-brave-update though, not sure if that matters.

@kkuehlz kkuehlz requested review from rebron and karenkliu June 25, 2021 20:59
@kkuehlz
Copy link
Contributor Author

kkuehlz commented Jun 29, 2021

@diracdeltas the browser tests pass, which wait for the ping to fire, and i am able to see it log in the URL loader handler. You should see if you can see the ping without this patchset. If you run into any issues can follow up on Slack.

@kkuehlz
Copy link
Contributor Author

kkuehlz commented Jul 1, 2021

Screenshot_20210701_152803

@karenkliu the screenshots you asked for

@karenkliu
Copy link

@keur I'm not seeing the updated text for crash reporting, the usage ping, and P3A? Also it should be ordered P3A, usage ping, then crash reporting:

Screen Shot 2021-07-01 at 4 06 02 PM

Copy link

@karenkliu karenkliu left a comment

Choose a reason for hiding this comment

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

Left a comment: #9229 (comment)

@kkuehlz
Copy link
Contributor Author

kkuehlz commented Jul 1, 2021

Screenshot_20210701_163620 cc @karenkliu

@kkuehlz kkuehlz requested a review from karenkliu July 1, 2021 23:38
Copy link

@karenkliu karenkliu left a comment

Choose a reason for hiding this comment

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

Perfect! 💯

@kkuehlz kkuehlz requested a review from simonhong July 1, 2021 23:52
Copy link
Member

@simonhong simonhong left a comment

Choose a reason for hiding this comment

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

++

Copy link
Collaborator

@mkarolin mkarolin left a comment

Choose a reason for hiding this comment

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

chromium_src ++

@@ -308,8 +308,8 @@ By installing this extension, you are agreeing to the Google Widevine Terms of U
<translation id="1872784258300710671">Brave uses completely private product analytics to estimate the overall usage of certain features</translation>
Copy link
Collaborator

Choose a reason for hiding this comment

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

.xtb files are generated automatically when we pull translations from Transifex. There's no need to edit them.

Kevin Kuehler added 4 commits July 6, 2021 08:37
@kkuehlz
Copy link
Contributor Author

kkuehlz commented Jul 6, 2021

Test failure in ads. Unrelated

@kkuehlz kkuehlz merged commit 0e2a562 into master Jul 6, 2021
@kkuehlz kkuehlz deleted the stats_pref_disable_ping branch July 6, 2021 21:20
@kkuehlz kkuehlz added this to the 1.28.x - Nightly milestone Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add pref for disabling stats ping
6 participants