Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

The updated metrics responses will not be sent to p3a-json.brave.com #6546

Closed
GeetaSarvadnya opened this issue Dec 5, 2022 · 2 comments
Closed

Comments

@GeetaSarvadnya
Copy link

GeetaSarvadnya commented Dec 5, 2022

Description:

On profileload, the default response values for all the metrics are sent to p3a-json.brave.com endpoint over the network in Charles. But the updated values are not sent from client to server hence the updated values are NOT shown over the network via p3a-json.brave.com

Steps to Reproduce

  1. Clean profile 1.46.x
  2. Wait for the p3a-json.brave.com enpoint to show up in Charles
  3. Brave.NTP.SponsoredImagesEnabled response value is 1 as expected
  4. Open settings and navigate to New Tab Pages->Image Type-> Sponsored was default option, select default images option
  5. Waited for more than 1 hours 30 mins
  6. Brave.NTP.SponsoredImagesEnabled response value is 1 instead of 0

Actual result:
The updated metrics responses will not be sent to p3a-json.brave.com

Expected result:

The updated metrics responses should be sent to p3a-json.brave.com
Reproduces how often: [Easily reproduced, Intermittent Issue]

Easy
Brave Version:

1.46.133
Device details:
iPhone 8 - 16.1.1

Website problems only:

  • did you check with Brave Shields down?NA
  • did you check in Safari/Firefox (WkWebView-based browsers)? NA

Additional Information

cc: @brave/qa-team @kylehickinson @anthonypkeane

@GeetaSarvadnya
Copy link
Author

Verified the issue against the build 1.46 (22.12.7.22) and found issue is still reproducible, hence logged a new issue #6614

@GeetaSarvadnya
Copy link
Author

GeetaSarvadnya commented Dec 9, 2022

Verified the issue against the build 1.46 (22.12.8.20) The issue is fixed and working fine.

Followed the steps below:

  1. Open a Charles proxy network monitoring tool in macBook
  2. Launch brave with clean profile 1.46 (22.12.8.20) in iPhone
  3. Verify that the domain p3a-json.brave.com appears in the host list in Charles proxy
  4. Verify that the default metrics response values are sent to the endpoint p3a-json.brave.com
  5. Verify that the CookiesListEnabled metrics response value 0 is sent
  6. Enable the cookies list by clicking on the "Blcok cookies" button in the cookies consent prompt
  7. Verify that the CookiesListEnabled metrics response value 1 in the brave://local-state file
  8. Close the browser
  9. Set the system date ahead by one week
  10. Open the browser, wait for 35 mins
  11. Verify the updated response value 1 appears at the p3a-json.brave.com endpoint
Intial value updated value
Screenshot 2022-12-09 at 11 51 08 AM Screenshot 2022-12-09 at 11 50 05 AM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants