Closed
Bug 1214188
Opened 9 years ago
Closed 9 years ago
Call setDataStoreId after merge in history adapter?
Categories
(Firefox OS Graveyard :: Sync, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
FxOS-S11 (13Nov)
People
(Reporter: mbdejong, Assigned: mbdejong)
References
Details
(Whiteboard: [partner-cherry-pick])
Attachments
(1 file)
Reading the code, it seems to me that https://github.com/mozilla-b2g/gaia/blob/master/apps/sync/js/adapters/history.js#L128 should also be followed by a call to setDataStoreId? (to discuss with Sean)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(selee)
Comment 1•9 years ago
|
||
Hi Michiel, Thanks again for finding this. Just like you said, it should follow setDataStoreId.
Flags: needinfo?(selee)
Comment 2•9 years ago
|
||
Hey Michiel, I would like to add 'setDataStoreId(place.fxsyncId, id);' here for both addPlace and deletePlace: https://github.com/mozilla-b2g/gaia/blob/master/apps/sync/js/adapters/history.js#L144 so the original setDataStoreId can be removed. https://github.com/mozilla-b2g/gaia/blob/master/apps/sync/js/adapters/history.js#L130
Assignee | ||
Comment 3•9 years ago
|
||
OK! I'll have a look at that. Same issue exists bookmarks adapter https://github.com/mozilla-b2g/gaia/blob/master/apps/sync/js/adapters/bookmarks.js#L124 btw.
Assignee | ||
Updated•9 years ago
|
Target Milestone: --- → FxOS-S9 (16Oct)
Comment 4•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8674110 -
Flags: feedback?(selee)
Assignee | ||
Comment 5•9 years ago
|
||
Needs a unit test, still.
Comment 6•9 years ago
|
||
Comment on attachment 8674110 [details] [review] [gaia] michielbdejong:1214188-setDataStoreId-after-merge > mozilla-b2g:master Thanks for working on this, Michiel! I think the matching table has to be updated only when the new record is coming. In the case of your patch, both bookmark and history are updating an existing record. That's not necessary to update it again. This issue is worth to consider again in our new bookmark store. Thank you. :)
Attachment #8674110 -
Flags: feedback?(selee) → feedback-
Assignee | ||
Comment 7•9 years ago
|
||
Right, we won't need this for the TV, but we'll need it for the phone. Foxfooders will already have history entries (and to a lesser extent also bookmark entries) on the phone before a history or bookmarks entry comes in from sync, the same URL.
Flags: needinfo?(selee)
Updated•9 years ago
|
Blocks: TV_FxAccount
Updated•9 years ago
|
Target Milestone: FxOS-S9 (16Oct) → FxOS-S11 (13Nov)
Assignee | ||
Comment 8•9 years ago
|
||
This bug is phone-only, cannot happen on TV yet.
Assignee | ||
Comment 9•9 years ago
|
||
(In reply to Michiel de Jong [:michielbdejong] from comment #8) > This bug is phone-only, cannot happen on TV yet. Correction, on the TV this cannot happen for history records, and for bookmarks records, it's fixed here: https://github.com/mozilla-b2g/gaia/pull/32578/files#diff-6dac2f6d58d68fbc11a10804f9946d4fR116 as part of bug 1215086. Will do the fix for history as a P3 priority.
Flags: needinfo?(selee)
Priority: -- → P3
Assignee | ||
Updated•9 years ago
|
Attachment #8674110 -
Flags: review?(selee)
Comment 10•9 years ago
|
||
Comment on attachment 8674110 [details] [review] [gaia] michielbdejong:1214188-setDataStoreId-after-merge > mozilla-b2g:master LGTM :)
Attachment #8674110 -
Flags: review?(selee) → review+
Assignee | ||
Comment 13•9 years ago
|
||
Comment on attachment 8674110 [details] [review] [gaia] michielbdejong:1214188-setDataStoreId-after-merge > mozilla-b2g:master Already got r+ from Sean and addressed his comments.
Attachment #8674110 -
Flags: review?(ferjmoreno)
Comment 14•9 years ago
|
||
Comment on attachment 8674110 [details] [review] [gaia] michielbdejong:1214188-setDataStoreId-after-merge > mozilla-b2g:master Thank you Michiel. It'd be great to have a test for this.
Attachment #8674110 -
Flags: review?(ferjmoreno) → review+
Assignee | ||
Comment 15•9 years ago
|
||
Tests added (and testDataGenerator fixed), and rebased. Let's wait for TreeHerder.
Flags: needinfo?(ferjmoreno)
Assignee | ||
Comment 16•9 years ago
|
||
TreeHerder is green.
Comment 17•9 years ago
|
||
Gaia is closed :\ so we have to wait a little bit.
Comment 18•9 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/8bd1fd2a4c7bc1977dfb8e85a1f9ffaf2f31a82e
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(ferjmoreno)
Resolution: --- → FIXED
Updated•9 years ago
|
Whiteboard: [partner-cherry-pick]
You need to log in
before you can comment on or make changes to this bug.
Description
•