Closed Bug 1380060 Opened 8 years ago Closed 8 years ago

Sync new local bookmarks into Mobile Bookmarks

Categories

(Firefox for iOS :: Sync, enhancement, P1)

All
iOS
enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: eoger, Assigned: eoger, Mentored)

References

Details

(Whiteboard: [MobileCore][BookmarkSync][Sync Q3 OKR])

Attachments

(1 file)

Implementation details: Let's add a new "simple" bookmarks engine that runs before the existing (read-only) bookmarks engine. It should detect new bookmarks, pull the mobile root from the server, add these new bookmarks to the mobile root "children" collection, and upload all these records. When the upload is done, delete these records locally: the will re-appear later once we run the existing bookmarks engine. We should not try to upload folders.
There's a little nuance around when this runs. My recommendation is to do this _after_ download and _before_ merge/upload. Treat the newly downloaded buffer records as canonical, and upload with XIUS: there's no need for an additional download. On success, the buffer can be directly updated to reflect the upload, the timestamp advanced, and then the local records discarded. That sequence is interruptible and efficient.
Mentor: rnewman
Hardware: Other → All
Summary: Sync new bookmarks into Mobile Bookmarks → Sync new local bookmarks into Mobile Bookmarks
Attaching the prototype I wrote before opening this bug. This is the complete opposite of what Richard recommended, but it still seems worthwhile to put it out there.
Assignee: nobody → eoger
Priority: -- → P1
Comment on attachment 8885762 [details] [review] mozilla-mobile/firefox-ios#2912 Would you mind giving me feedback on that Richard? I tried to follow the approach you outlined in comment 1.
Attachment #8885762 - Flags: feedback?(rnewman)
Whiteboard: [MobileCore][BookmarkSync]
Comment on attachment 8885762 [details] [review] mozilla-mobile/firefox-ios#2912 This reached r+, but I've asked for it to be wrapped in a feature flag so we can land it.
Attachment #8885762 - Flags: feedback?(rnewman) → review+
Status: NEW → ASSIGNED
Landed on master, preffed off: https://github.com/mozilla-mobile/firefox-ios/commit/875829dd37e2f6b5c65490da5aa3c227d450016f Nice work, eoger! Stefan, could you set flags and file a follow up to pref this on when the UI work is done?
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: [MobileCore][BookmarkSync] → [MobileCore][BookmarkSync][Sync Q3 OKR]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: