Closed
Bug 1891494
Opened 2 years ago
Closed 2 years ago
Add `getAllKeys` to ActivityStreamStorage
Categories
(Firefox :: New Tab Page, task)
Firefox
New Tab Page
Tracking
()
RESOLVED
FIXED
127 Branch
| Tracking | Status | |
|---|---|---|
| firefox127 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
Details
(Whiteboard: [fidefe-device-migration])
Attachments
(1 external file)
Via bug 1890585, we've learned that it would be useful to backup the contents of the snippets table in the ActivityStream IndexedDB database that is managed by ActivityStreamStorage.
What I'd like to propose is that we expose the IDBObjectStore getAllKeys method through ActivityStreamStorage, which lets us get each of the object keys in the store. We can then use the already exposed get method to get each value, and put each object into a JS object which can then be serialized to JSON.
When it comes time to restore this database, we'll read in the JSON to the object, and for each key, put that value into ActivityStreamStorage database for the snippets table.
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Assignee: nobody → mconley
| Assignee | ||
Comment 1•2 years ago
|
||
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/36c7007b3927
Add getAllKeys to ActivityStreamStorage. r=home-newtab-reviewers,thecount
Comment 3•2 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox127:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•