-
Notifications
You must be signed in to change notification settings - Fork 975
add support for legacy ledger settings #10441
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10441 +/- ##
==========================================
+ Coverage 53.81% 54.23% +0.41%
==========================================
Files 238 244 +6
Lines 21054 21122 +68
Branches 3258 3262 +4
==========================================
+ Hits 11330 11455 +125
+ Misses 9724 9667 -57
|
xoxo codecov |
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.
The test plan works. Thanks for taking this!
- Somehow extension preferences got added into deprecated section. Moved these out - Made deprecated settings more explicit - updated state.md to call out deprecated settings - removed bitwarden/enpass tests and setting. This was never a value in 0.11.x or prior so no migration was needed Auditors: @cezaraugusto
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.
OK wow- this was a little bit of a mess, but glad we're fixing it up 😄 I added a commit which cleans things up a bit more.
Cezar, there is a section I think you can move your change over to (where I have made similar changes 😄 ). Please take a look at
Lines 43 to 52 in f240074
// Retrofit a new setting based on old values; we don't want to lose existing user settings. | |
const getDefaultSetting = (settingKey, settingsCollection) => { | |
switch (settingKey) { | |
case settings.ACTIVE_PASSWORD_MANAGER: | |
return passwordManagerDefault(settingKey, settingsCollection) | |
case settings.BOOKMARKS_TOOLBAR_MODE: | |
return bookmarksBarDefault(settingKey, settingsCollection) | |
} | |
return undefined | |
} |
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.
On second thought... I think it's just fine how you implemented it 😄 We can revisit this with #10488
++ except missing delete legacy addressed in 9ad7b4f |
We're running into issues and unfortunately, this PR is causing issues with the BAT Mercury work (since settings were renamed). I'm going to pull this into 0.19.x |
…BAT Mercury. Details: Because the settings were renamed, git didn't properly handle changes when cherry-picking backwards. This caused the code in 0.19.x and 0.20.x to use the naming from 0.21.x Merge pull request #10164 from luixxiul/polish-hideLower Replace hideLower with showLess f0d9c3d Merge pull request #10441 from brave/10322 add support for legacy ledger settings 052277d Also includes fixes from 9ad7b4f (most of this commit was already backported, just grabbed the settings migration fixes) Auditors: @NejcZdovc, @luixxiul, @cezaraugusto Fixes #11261 Fixes #11260 Fixes #11250 Fixes #11246 Fixes #11263
…BAT Mercury. Details: Because the settings were renamed, git didn't properly handle changes when cherry-picking backwards. This caused the code in 0.19.x and 0.20.x to use the naming from 0.21.x Merge pull request #10164 from luixxiul/polish-hideLower Replace hideLower with showLess f0d9c3d Merge pull request #10441 from brave/10322 add support for legacy ledger settings 052277d Also includes fixes from 9ad7b4f (most of this commit was already backported, just grabbed the settings migration fixes) Auditors: @NejcZdovc, @luixxiul, @cezaraugusto Fixes #11261 Fixes #11260 Fixes #11250 Fixes #11246 Fixes #11263
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Manual test plan:
before checking this PR
auto-incude
to OFFShow only included sites
to ONMinimum page time before logging a visit
to 8 secondsMinimum visits for publisher relevancy
to 10 visitsAllow contributions to non-verified sites
to falseshow less
)checkout this pr
ensure the above data is persisted:
auto-incude
is OFFShow only included sites
is ONMinimum page time before logging a visit
is 8 secondsMinimum visits for publisher relevancy
is 10 visitsAllow contributions to non-verified sites
is falseshow less
Reviewer Checklist:
Tests