-
Notifications
You must be signed in to change notification settings - Fork 900
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
Fixes estimated earnings and ad notifications are not updating for users #6758
Conversation
00d25c9
to
a6fcb01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just had one comment
...at-native-ads/src/bat/ads/internal/server/refill_unblinded_tokens/refill_unblinded_tokens.cc
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS lgtm 🙂 Just needs a small change on brave-ios to rename the updateAdRewards
method to reconcileAdRewards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rewards code looks good
1757aaa
to
9057d56
Compare
… has been processed
…log has been processed
4b5ab90
to
ac60287
Compare
Fixes estimated earnings and Ad notifications are not updating for users
Fixes estimated earnings and ad notifications are not updating for users
Using the below build:
Verified the following scenarios on Nightly:
See below for details Confirm unblinded tokens are refilled if we have less than 10 unblinded tokens when triggering an event to server an ad notification
Confirm failed confirmations are retried after attempting to download the catalogViewed an ad, enabled Charles re-write rule to make confirmation fail, then dismissed the ad to create a failed confirmation:
Closed browser, disabled rewrite rule, relaunched browser. Confirmed after catalog was downloaded, the failed confirmations for retry were scheduled:
Confirmed at expected time (
Confirm failed confirmations are retried when an unblinded token redemption failsViewed an ad, enabled Charles re-write rule to make confirmation fail, then dismissed the ad to create a failed confirmation:
Disabled Charles rewrite rule and waited until the time mentioned in the logs (
Confirm unblinded tokens are refilled to 50 if we are below the threshold after attempting to download the catalogEnable Rewards, wait until everything is complete (catalog download, tokens fetched, etc). View an ad, dismiss ad. Enable Charles rewrite rule outlined in https://github.com/brave/internal/issues/731. Use +1/-1 on Ad history to use tokens so that you have less than 20 left:
Close browser. Disable Charles rewrite rule. Relaunch browser. Confirm after catalog is downloaded that tokens are refilled successfully:
Confirm unblinded tokens are refilled to 50 if we are below the threshold after redeeming an unblinded tokenEnable Rewards, wait until everything is complete (catalog download, tokens fetched, etc). View an ad, dismiss ad. Use +1/-1 on Ad history to use tokens just until you have 20 left:
Use the other (+1 or -1) button to get to 19 and confirm that tokens are refilled successfully:
Verification passed on
Confirm ad rewards are reconciled upon browser launch
Confirm ad rewards are reconciled after restoring a wallet
Confirm ad rewards are reconciled after redeeming unblinded payment tokens
Confirm ad rewards are reconciled after claiming an ad promotion
Verification passed on
Verified catalog is downloaded upon browser launch
Verified Confirm catalog is downloaded every ~2 hoursVerified catalog is scheduled to be downloaded
Verified catalog is downloaded at that hour:
Verified catalog download is not started if currently retrying a previously failed download
Verified Confirm unblinded payment tokens are redeemed ~24 hours
Verified unblinded payment tokens redemption is not started if currently retrying a previously failed downloadVerified
|
Resolves brave/brave-browser#11952
Submitter Checklist:
npm run lint
,npm run gn_check
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).QA/Yes
orQA/No
) to the associated issuerelease-notes/include
orrelease-notes/exclude
) to the associated issueTest Plan:
404 NOT FOUND
forPOST /v1/confirmation/token/{payment_id}
endpoint)Reviewer Checklist:
After-merge Checklist:
changes has landed on.