-
Notifications
You must be signed in to change notification settings - Fork 903
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
WIP: Rewards data can now be cleared #1187
Conversation
@mandar-brave @davidtemkin Looking for feedback for text for clearing rewards data boxes: Rewards auto-contribute shows number of sites currently in auto-contribute list (current reconciliation period): |
@jasonrsadler how would a user back up their transaction history? I'd go with less text: "This action cannot be undone. All transaction history and reports will no longer be available. Please note that Brave does not store a copy of your data on our servers, so deleting this data from your browser is final." Also I'd recommend we default to "Cancel" rather than "Clear data" (default button) |
@davidtemkin backup will be implemented in brave/brave-browser#930 Will use your text and default to 'Cancel' Thanks 🙂 |
patches/chrome-browser-browsing_data-chrome_browsing_data_remover_delegate_factory.cc.patch
Outdated
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.
see comments
components/brave_rewards/browser/brave_rewards_data_remover_delegate.h
Outdated
Show resolved
Hide resolved
browser/ui/webui/settings/brave_settings_clear_rewards_data_handler.cc
Outdated
Show resolved
Hide resolved
int origin_type_mask, | ||
base::OnceClosure callback) { | ||
|
||
ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData( |
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.
this is going to call the callback before we've even started to remove the rewards data. base::DoNothing
below should instead call ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData
linting fixes and generated string fixes Added actual removal implementation. Updated return value for counters on rewards not enabled. Removed unused and added resource for clear all rewards modal. patch updates Refreshes Rewards dashboard after clear. Refactoring how to get current contributions in progress Rebase to Cr 73 Fix merge Repurpose clear data to separate Rewards section Included routing patch Corrected pref names Refactored dialog and counters Disables for contribution in progress Impemented footer details when a contribution is in progress Update patches to move basic to advanced (privacy) section Removed unused callbacks. Corrected checkbox pairing after ac completion Contribution now checked on counter. Removed logging Modified sql parameters to use ledger values Cleanup header guards, linting, license header Fix existing tests Style tests webui: paper-button gets 'warn' style minor UI cleanup Address gh comments Implemented bitwise operation into RewardsService for clearing rewards data UI fixes Fix missing arg list Removing Rewards specific impl Remover reimplemnt Updated ledger db access Fixing database calls Moved contribution monitor logic out of native ledger Corrected naming for contribution in progress method Method cleanups Moving db calls to taskrunner Clean up RewardsCounter Refactor native ledger and database call Moved anon functions to anon namespace patch updates Function rename and override delegate header Updated db to go through ledger minor cleanup updated tests Make clear rewards link from single point brave_privacy remove commented lines Updated task_runner functions. Moved components/rewards_data Moved delegate and rewards items to components/brave_rewards/browser crlf Moved pref registration removed header Removed unused functions Removed headers Addressing PR comments addressing PR comments Fix converting to date string Fix crlf Remove unused vars Removed unused function Removed unused mock
Closing as stale |
Fixes brave/brave-browser#926
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests
) ongit rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan 1:
Test Plan 2:
Test Plan 3:
Test Plan 4:
Test Plan 5:
Test Plan 6:
————————
Additional Info
When clearing only Auto-Contribute data, only the sites listed in the Auto-Contribute table (including the ones listed under "See All XX Sites" will be cleared. Auto-Contribute data from previous months is not affected and no other data that is visible to users is affected.
Auto-Contribute data for previous months is untouched if a user selects to only "Clear Auto-Contribute Data". Auto-Contribute data for previous months is discarded if a user selects to "Clear All Rewards Data".
BAT designated for unverified publishers through tipping is not affected by "Clear Auto-Contribute Data". BAT designated for unverified publishers through tipping WILL be discarded if "Clear All Rewards Data" is selected.
Tips will be discarded whether recurring or one time if "Clear All Rewards" data is selected. Tips are not affected by "Clear Auto-Contribute"
Past Auto-Contribute sites are currently not visible in the UI and past Auto-Contribute sites that didn't make vote count would also not be visible in the UI and would be discarded when "Clear All Rewards Data" is selected.
Clearing any Rewards data only affects data available in publisher_info_db. The amount of BAT in a user's wallet is not affected in any way
Reviewer Checklist: