-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 monthly/weekly wallet usage ping parameter #20956
Comments
Related issue: #17059 |
Please refer to the test plan in the issue description. |
@DJAndries Need a few clarifications on the test plan, please find my testing observations below:
|
@GeetaSarvadnya Least significant bit = daily Here is a description for each value: Please note that the wallet usage values are totally independent from the browser usage flags (the |
@DJAndries The description is very ambiguous, e.g, for the value
Also, how does the weekly usage calculation happen? what is the start and end day time period for weekly pings calculation? does it consider only Monday to Sunday time period? I have verified the PR brave/brave-core#12310 and found a few bugs, looks like pings are not working as mentioned in the #20956 (comment). I have set up a call to discuss the wallet usage pings in detail. Thanks! |
As discussed over the call, monthly usage is determined by calendar month and weekly usage is determined by the ISO week number of the year |
Will require |
Removing As discussed during the b-b meeting, @GeetaSarvadnya will run through a subset of the cases as this was already thoroughly verified on Nightly. |
Verification PASSED on
Clean profile Case 1: Wallet=0_PASSEDCase 2: Wallet=7_PASSED
Case 3: Wallet=1_PASSED
Case 4: Wallet=3_PASSED
Case 5: Wallet=5_PASSED
Upgrade profile Case 1: Create wallet in 1.35.x and then upgrade to 1.36.x and check wallet usage pings_PASSED
|
Description
Monthly and weekly usage flags for the wallet parameter in the usage ping, are set to true every day in the month and week. This results in inaccurate monthly and weekly user stats for the wallet.
The wallet usage monthly and weekly flags should only be set to true once during the relevant period, if the wallet was used in the period.
Steps to Reproduce
Testers can use the faketime CLI to fake the system time for the browser process.
MITM proxy is recommended to see the usage ping query parameters. The parameter to look out for is
walletActive
. The value is a bitfield: LSB is daily use, second bit is weekly use, MSB is monthly use. Example: AwalletActive
value of 7 would indicate a monthly, weekly and daily use.- confirm usage ping walletActive=3 (daily, weekly)
- confirm usage ping walletActive=0 (no use since last report)
- confirm usage ping walletActive=7 (monthly, daily, weekly)
Actual result:
Usage pings:
Expected result:
See notes in test plan above.
Reproduces how often:
Easily reproduced
Desktop Brave version:
Building from source.
Brave: 1.37.30 Chromium: 98.0.4758.87 (Developer Build) (64-bit)
Revision: e4cd00f135fb4d8edc64c8aa6ecbe7cc79ebb3b2-refs/branch-heads/4758
OS: Linux
Version/Channel Information:
Other Additional Information:
Miscellaneous Information:
Raising PR soon. Will request uplift for upcoming release.
The text was updated successfully, but these errors were encountered: