Closed Bug 1032557 Opened 11 years ago Closed 11 years ago

Synchronize logic for collections

Categories

(Firefox OS Graveyard :: Gaia::Everything.me, defect)

x86
macOS
defect
Not set
normal

Tracking

(b2g-v1.4 unaffected, b2g-v2.0 fixed, b2g-v2.1 fixed)

RESOLVED FIXED
2.0 S5 (4july)
Tracking Status
b2g-v1.4 --- unaffected
b2g-v2.0 --- fixed
b2g-v2.1 --- fixed

People

(Reporter: kgrandon, Assigned: kgrandon)

References

Details

(Whiteboard: [p=2],[systemsfe])

Attachments

(1 file)

It may be possible to have an outdated local database in some cases for collections. This should probably only be possible due to platform bugs currently, but this is needed for when we have replaceable homescreens.
Comment on attachment 8448389 [details] [review] WIP - github pull request Cristian - could you review this? This is in case the local indexed DB gets out of sync with the CollectionsDatastore. I thought that datastore would take care of this for us, but it appears that we still need this. This is basically the same logic as the bookmarks source.
Attachment #8448389 - Flags: review?(crdlc)
Comment on attachment 8448389 [details] [review] WIP - github pull request The code LGTM. I wrote just a comment in github. Other idea that we could take a look is the revisionId. I did it for bookmarks in the old-home. If the revisionId is the same in home and bookmarks datastore we won't need to synchronize anything. Otherwise we should synchronize when revisionIds are different. https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/js/bookmark.js#L63 https://github.com/mozilla-b2g/gaia/blob/master/apps/homescreen/js/grid.js#L983
Attachment #8448389 - Flags: review?(crdlc) → review+
Blocks: vertical-homescreen
No longer blocks: vertical-home-next
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment on attachment 8448389 [details] [review] WIP - github pull request This is needed for the vertical homescreen.
Attachment #8448389 - Flags: approval-gaia-v2.0?(bbajaj)
Attachment #8448389 - Flags: approval-gaia-v2.0?(bbajaj) → approval-gaia-v2.0+
Hi Reporter, Could you provide the detailed reproduce steps for me to verify this bug? Thank you!
Flags: needinfo?(kgrandon)
There is nothing here to verify, consider it infrastructure stuff.
Flags: needinfo?(kgrandon)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: