Closed
Bug 1143154
Opened 10 years ago
Closed 10 years ago
Data store for Synced Tabs
Categories
(Firefox for iOS :: Home screen, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: nalexander, Assigned: nalexander)
References
Details
Attachments
(1 file)
This ticket tracks implementing an SQLite data store for iOS Fennec's representation of Sync's clients and tab records.
Assignee | ||
Comment 1•10 years ago
|
||
rnewman: can you outline v1 of this? Can it just be a clients table and a tabs table, like in Fennec? Or do we need to build in a Sync store layer up-front?
Flags: needinfo?(rnewman)
Comment 2•10 years ago
|
||
I think this is a two-parter, with the other part being Bug 1134904. That bug has some schema details for tabs itself.
Because clients and tabs are unidirectional (see Bug 1141845 and friends), we don't really need to do anything special here: just a place to put client and tab records when we download them.
Flags: needinfo?(rnewman)
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #2)
> I think this is a two-parter, with the other part being Bug 1134904. That
> bug has some schema details for tabs itself.
Here, I'm thinking strictly of storage for Synced Tabs. I don't care if we store local tabs in the same DB/table but we don't *need* to, and since Sync's tabs format is relatively impoverished, we might want to split this storage entirely. So yes: two parts.
Updated•10 years ago
|
Assignee | ||
Comment 4•10 years ago
|
||
This should blocked the Synced Tabs panel. I am actively working on this.
Assignee | ||
Comment 5•10 years ago
|
||
rnewman: st3fan: still some things left to do here, but I thought I'd get feedback early.
I kind of went for a hybrid: two GenericTables but some roll your own SQL in the middle. I originally intended to do a single LEFT OUTER JOIN like we do on Android, but it got a little... duplicative. So I went for two queries (clients, then all tabs).
I don't like the callback interface but I don't care to depend on Result and Deferred just yet.
Attachment #8578346 -
Flags: review?(rnewman)
Attachment #8578346 -
Flags: feedback?(sarentz)
Comment 6•10 years ago
|
||
I think this looks good.
My only request is to test with real timestamps. The changes that I made to support long long timestamps are probably ok but it would be good to see some more tests use it.
(Just use 13 digit numbers to test with and see if they come back ok)
Updated•10 years ago
|
Attachment #8578346 -
Flags: feedback?(sarentz)
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8578346 [details] [review]
Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/228
rnewman reviewed on GH and IRC.
Attachment #8578346 -
Flags: review?(rnewman) → review+
Assignee | ||
Comment 8•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•