Closed Bug 1339824 Opened 7 years ago Closed 7 years ago

Move metadata storage to a separate DB in preparation for syncing

Categories

(Firefox for iOS :: Data Storage, defect, P1)

Other
iOS
defect

Tracking

()

RESOLVED FIXED
Iteration:
1.19
Tracking Status
fxios 8.0+ ---

People

(Reporter: fluffyemily, Assigned: justindarc)

References

(Depends on 1 open bug)

Details

(Whiteboard: [MobileAS])

Attachments

(3 files)

Currently metadata is stored in a separate table inside the main Firefox DB. To bring the FxiOS implementation in line with desktop, the metadata storage should be moved to a separate DB and ATTACHed to the existing DB during querying. This is so that we can sync metadata at a later date more easily.
Priority: -- → P2
Iteration: --- → 1.17
Priority: P2 → P1
Assignee: nobody → etoop
Status: NEW → ASSIGNED
Attached file Pull request
Attachment #8848554 - Flags: review?(sleroux)
Attachment #8848554 - Flags: review?(fpatel)
Iteration: 1.17 → 1.18
Attachment #8848554 - Flags: review?(sleroux) → review+
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
See Also: → 1349728
Revert due to regressions on master for now.
Attachment #8851086 - Flags: review?(jdarcangelo) → review+
Assignee: etoop → jdarcangelo
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #8848554 - Flags: review?(fpatel)
Iteration: 1.18 → 1.19
Attached file GitHub Pull Request v2
Steph, I left the PR as 2 commits. The first one is the original patch that we backed out. The second commit contains my changes to the schema initialization so we don't crash if the DB is deleted after a connection is established (which technically *shouldn't* ever happen). It also fixes the way we reset the profile in the XCUITests so that the aforementioned DB deletion doesn't happen after we've already connected to it.
Attachment #8855953 - Flags: review?(sleroux)
Attachment #8855953 - Flags: review?(sleroux) → review+
Blocks: 1355208
Landed on master:

https://github.com/mozilla-mobile/firefox-ios/commit/eadaa0053781e90a51c7042ef09f042a565dcb9f
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Depends on: 1384196
Depends on: 1384278
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: