-
Notifications
You must be signed in to change notification settings - Fork 893
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 Brave Ads save and dislike filters #11679
Conversation
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
cf6e35d
to
89dd280
Compare
89dd280
to
71d88d9
Compare
81553b0
to
de53cfa
Compare
a1b1b57
to
bb17206
Compare
bb17206
to
8f3b60c
Compare
CI failed on macOS due to unrelated test "EphemeralStorageBrowserTest.BroadcastChannelIsPartitioned (../../brave/browser/ephemeral_storage/ephemeral_storage_browsertest.cc:921)" |
Found brave/brave-browser#20482 while testing, but I think we should uplift anyway as it improves state of 1.35.x
Save an adConfirmed ad was saved by clicking "Saved" filter Confirm creative instance id was saved under config.json / adPreferences / saved_ads Remove an ad from savedConfirm ad was removed from "Saved" filter Confirm creative instance id was removed from config.json / adPreferences / saved_ads Mark as inappropriate (see kebab menu)Confirm ads are blocked based upon the creative set id for the marked ad
Confirm creative set id was saved under config.json / adPreferences / flagged_ads
Unmark as inappropriate (see kebab menu)Confirm ads are not blocked based upon the creative set id for the unmarked ad
Confirm creative set id was removed from config.json / adPreferences / flagged_ads Mark to no longer receive (aka no entry icon)Confirm ads are blocked based upon the category name for the marked ad Failed. Ad is shown and config.json / adPreferences / filtered_categories is empty. Logged brave/brave-browser#20482 Confirm category name was saved under config.json / adPreferences / filtered_categories Unmark to no longer receive (aka heart icon or neutral, i.e. no icon selected)Blocked on brave/brave-browser#20482 Confirm ads are not blocked based upon the category name for the unmarked ad Confirm category name was removed from config.json / adPreferences / filtered_categories Dislike (aka thumbs down icon)FAIL: brave/brave-browser#20482 (comment) Confirm ads are blocked based upon the advertiser id for the disliked ad Confirm advertiser id was saved under config.json / adPreferences / filtered_advertisers
Like (aka thumbs up icon or neutral, i.e. no icon selected)Confirm ads are not blocked based upon the advertiser id for the liked ad Ad was shown:
Confirm advertiser id was removed from config.json / adPreferences / filtered_advertisers
|
Resolves brave/brave-browser#20206
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Only affects 1.35 and above. Can be tested as part of brave/brave-browser#16005 or at a minimum please test the following within brave://rewards 30-day ads history:
Save an ad
client.json
/adPreferences
/saved_ads
Remove an ad from saved
client.json
/adPreferences
/saved_ads
Mark as inappropriate (see kebab menu)
client.json
/adPreferences
/flagged_ads
Unmark as inappropriate (see kebab menu)
client.json
/adPreferences
/flagged_ads
Mark to no longer receive (aka no entry icon)
client.json
/adPreferences
/filtered_categories
Unmark to no longer receive (aka heart icon or neutral, i.e. no icon selected)
client.json
/adPreferences
/filtered_categories
Dislike (aka thumbs down icon)
client.json
/adPreferences
/filtered_advertisers
Like (aka thumbs up icon or neutral, i.e. no icon selected)
client.json
/adPreferences
/filtered_advertisers