-
Notifications
You must be signed in to change notification settings - Fork 973
increase version range for pinnedTopSites cleanup #13429
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13429 +/- ##
==========================================
+ Coverage 56.25% 56.26% +0.01%
==========================================
Files 283 283
Lines 28353 28363 +10
Branches 4674 4675 +1
==========================================
+ Hits 15950 15959 +9
- Misses 12403 12404 +1
|
@cezaraugusto besides the dupes, this should fix folks who missed your fix (fixing their top sites). Did we want to capture that scenario in the test plan? ex:
|
// allowing duplicated items. See #12941 | ||
let pinnedTopSitesCleanup = false | ||
try { | ||
pinnedTopSitesCleanup = compareVersions(data.lastAppVersion, '0.22.00') < 1 |
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.
Should we have another check for this, so it only runs once?
Specifically we could capture this in the state in an area called "migrations" (see example which was removed with ccee122#diff-b4e400e260f324745d12616a8c9c1fc6L377 - was removed since nothing else is using it).
When fix is ran you could set this value to current timestamp and default the value (in app/sessionStore.js
) to 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.
Also, note to self: we'll want to update this version before we ship. We might want to create an issue to track that
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.
Changes look good- left comment about having this only run once and asking about test plan. Let me know when it's ready for re-review I'll run the test plan 😄 👍
re #13429 (comment) I included your take (thanks) in the test plan. Most users did receive the fix, this PR specifically target all of them and unless someone manages to update from 0.19.x to something >0.22.00, all users should get this fix. |
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.
Thanks for the test plan update! 😄 👍 Great work, sir!
increase version range for pinnedTopSites cleanup
increase version range for pinnedTopSites cleanup
Different fixes were tried for this but all needed to iterate over the list to check for duplicates and ended bulking startup time.
This fix is the same take as previous with a wider range of versions. This is better for performance as it does not iterate over the list on startup/every pin interaction but instead cleans the state at update time so no user-space affected.
fix #12941
Test Plan:
Test Plan (QA specific):