Closed Bug 745410 Opened 12 years ago Closed 7 years ago

Remove remaining microsummary and dynamic container support from bookmarks

Categories

(Firefox :: Sync, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox55 --- fixed

People

(Reporter: gps, Assigned: eoger, Mentored)

References

Details

(Whiteboard: [sync:bookmarks][good first bug][lang=js])

Attachments

(2 files)

I believe we're getting rid of microsummaries on bookmarks for the next engine version.
Blocks: 569501
Whiteboard: [sync:bookmarks]
It's probably worth reviewing

https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsINavBookmarksService

and looking for more obsolete features!
Depends on: 524091, 700296
Summary: Remove microsummaries from bookmarks → Remove remaining microsummary and dynamic container support from bookmarks
Whiteboard: [sync:bookmarks] → [sync:bookmarks][good first bug][lang=js][mentor=rnewman]
Mentor: rnewman
Whiteboard: [sync:bookmarks][good first bug][lang=js][mentor=rnewman] → [sync:bookmarks][good first bug][lang=js]
Hi,

I would like to work on this bug. Can you please suggest how should I go about it?

Thanks in advance
shreyas
Flags: needinfo?(rnewman)
Take a look at

https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions#Getting_started

to get a working Firefox build.

Once you're done with that, take a look at services/sync/modules/engines/bookmarks.js, and familiarize yourself with the overall structure.

Compare that file with the link in Comment 1. You should see that some features have been removed, and no longer need to be supported in bookmarks.js.

Let me know if you need more help!
Flags: needinfo?(rnewman)
So Basically what I need to do is to look for the methods and features marked obsolete in https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsINavBookmarksService
and remove/replace them in bookmarks.js right?
Flags: needinfo?(rnewman)
Is the bug still on?
Yes!
Flags: needinfo?(rnewman)
I compared the link and the file. I couldn't find any uses of deprecated methods from that interface present in bookmarks.js.
Flags: needinfo?(rnewman)
Not just methods; also 'things' -- like microsummaries.
Flags: needinfo?(rnewman)
Attached patch bug_745410.diffSplinter Review
Is it correct?
Attachment #8565498 - Flags: review?
Attachment #8565498 - Flags: feedback?(rnewman)
Comment on attachment 8565498 [details] [diff] [review]
bug_745410.diff

This looks fine to me. I don't think it can land until we remove Sync 1.1 support. Here's why:

* Most microsummary support was removed in Bug 524091. What's left here allows microsummary records to fall back to being ordinary bookmarks when Sync applies them.

* Sync 1.5 clients are guaranteed not to have uploaded any microsummary records to Sync 1.5 servers.

* Technically, Sync 1.1 servers can still contain microsummary records. We shouldn't drop those on the floor when a client downloads them.

Rather than adding logic here to change things for 1.5 only, let's just leave this here.

N.B., we also need to make sure the docs are up to date:

http://docs.services.mozilla.com/sync/objectformats.html


So let's leave this patch on the bug, and we can apply it a few months from now. Sound good?
Attachment #8565498 - Flags: review?
Attachment #8565498 - Flags: feedback?(rnewman)
Attachment #8565498 - Flags: feedback+
Ok, no problem.
(In reply to Richard Newman [:rnewman] from comment #10)
> Comment on attachment 8565498 [details] [diff] [review]
> bug_745410.diff
> 
> This looks fine to me. I don't think it can land until we remove Sync 1.1
> support. Here's why:
> 
> * Most microsummary support was removed in Bug 524091. What's left here
> allows microsummary records to fall back to being ordinary bookmarks when
> Sync applies them.
> 
> * Sync 1.5 clients are guaranteed not to have uploaded any microsummary
> records to Sync 1.5 servers.
> 
> * Technically, Sync 1.1 servers can still contain microsummary records. We
> shouldn't drop those on the floor when a client downloads them.
> 
> Rather than adding logic here to change things for 1.5 only, let's just
> leave this here.
> 
> N.B., we also need to make sure the docs are up to date:
> 
> http://docs.services.mozilla.com/sync/objectformats.html
> 
> 
> So let's leave this patch on the bug, and we can apply it a few months from
> now. Sound good?

Is this bug still there? Its been a long time.
1.1 support hasn't been removed yet. But soon.
Should we get back to this now?
(In reply to Edouard Oger [:eoger] from comment #14)
> Should we get back to this now?

Yeah, I think we should - we've effectively killed 1.1 support in 54.
I don't think anyone is gonna take this bug since it's 2 years old
Assignee: nobody → eoger
Status: NEW → ASSIGNED
Priority: -- → P2
Comment on attachment 8846091 [details]
Bug 745410 - Remove microsummary support from Sync.

https://reviewboard.mozilla.org/r/119172/#review121156

Nice!
Attachment #8846091 - Flags: review?(kit) → review+
Pushed by eoger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9c8eac7852f6
Remove microsummary support from Sync. r=kitcambridge
Flags: needinfo?(eoger)
Pushed by eoger@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7b53ca1627c0
Remove microsummary support from Sync. r=kitcambridge
https://hg.mozilla.org/mozilla-central/rev/7b53ca1627c0
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: