Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTrigger sync compaction for bookmarks every week #3749
Conversation
|
PR looks good |
|
Verified it works with STR of: I. Making bookmarks with lots of updates
paste and run it several times II. Initiating compact operation
III. Verifying compact was correct
|
| extensions::api::brave_sync::OnSendCompactSyncCategory::Create( | ||
| category_name).release()); | ||
| std::unique_ptr<Event> event( | ||
| new Event(extensions::events::FOR_TEST, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
darkdh
Oct 22, 2019
Author
Member
it is just a events::HistogramValue and I can't find a suitable value from the existing list. Should we extend the enum? Please note that brave sync will eventually go away and migrated to native implementation
| base::Time::Now() - last_compact_time > | ||
| base::TimeDelta::FromDays(kCompactPeriodInDays)) { | ||
| brave_sync_client_->SendCompactSyncCategory(kBookmarks); | ||
| brave_sync_prefs_->SetLastCompactTime(base::Time::Now()); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
darkdh
Oct 22, 2019
Author
Member
You mean, when the objects are really deleted on s3?
The compaction API is designed to have no callback, if we want callback when the object is really deleted, we would need extra listObject query to check. The deletion is not instant, it takes approximately 1 minute
This comment has been minimized.
This comment has been minimized.
darkdh
Oct 22, 2019
Author
Member
Also, the compaction could take a significant long time to pull down all the record if the recordset is huge
This comment has been minimized.
This comment has been minimized.
darkdh
Oct 29, 2019
Author
Member
addressed in bb0c6c3
which requires deps update when brave/sync#355 is merged
|
++ |
56d2773
to
aef2165
bda5e45
to
527100a
confusion
darkdh commentedOct 18, 2019
•
edited
fix brave/brave-browser#6552
Submitter Checklist:
npm run lint)git rebase master(if needed).git rebase -ito squash commits (if needed).Test Plan:
#3749 (comment) can be referenced to generate update records easily
Update
chrome://inspect/#extensionsand inspectBrave Syncon device Acompaction deletes... on console and wait for extra 3 minschrome://inspect/#extensionsand inspectBrave Syncon device Cgot 2 decrypted records in BOOKMARKS after 0on consoleDelete
chrome://inspect/#extensionsand inspectBrave Syncon device Acompaction deletes... on console and wait for extra 3 minschrome://inspect/#extensionsand inspectBrave Syncon device Cgot 1 decrypted records in BOOKMARKS after 0on consoleReviewer Checklist:
After-merge Checklist:
changes has landed on.