Closed
Bug 723803
Opened 13 years ago
Closed 11 years ago
test recovery of old simple-storage data
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: warner, Assigned: zombie)
References
Details
Attachments
(1 file, 1 obsolete file)
After discovering the simple-storage problems in bug 723012, we realized it'd be a good idea to have a test that confirms we can recover data stored with simple-storage from previous versions of the SDK. That means recording the save-data file created by simple-storage in e.g. 1.2, then have a test which populates a new profile with the preserved data, then check to see if we can recover it.
It might be easiest to test that with one of the examples/ rather than in packages/api-utils . Maybe add code to the test runner that looks for a "_saved-profile-data.json" file in the package directory, and if present, loads the contents and jams it into the profile somewhere, after mozrunner creates the profile, but before the tests are run.
Comment 1•13 years ago
|
||
Don't think this needs to wait for triage, this is super-important and I'd love to see it done for 1.5 if at all possible. Losing data is one of the things we should avoid at all costs and this helps us there.
Priority: -- → P1
Target Milestone: --- → 1.5
Target Milestone: 1.5 → ---
Updated•12 years ago
|
Blocks: sdk/simple-prefs
Updated•12 years ago
|
Assignee | ||
Comment 2•11 years ago
|
||
is this still relevant?
and if yes, is it a simple test of writing a json file to the "expected" place, loading the module, and verifying that all is well?
Flags: needinfo?(dtownsend+bugmail)
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8409151 -
Flags: review?(dtownsend+bugmail)
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #8409151 -
Attachment is obsolete: true
Attachment #8409151 -
Flags: review?(dtownsend+bugmail)
Attachment #8409155 -
Flags: review?(dtownsend+bugmail)
Comment 7•11 years ago
|
||
Comment on attachment 8409155 [details] [review]
Link to Github pull-request: https://github.com/mozilla/addon-sdk/pull/1467
Wonderful!
Attachment #8409155 -
Flags: review?(dtownsend+bugmail) → review+
Comment 8•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/337cc748c00d128b01731e7ff105863090e67add
bug 723803 - test recovery of simple-storage data
https://github.com/mozilla/addon-sdk/commit/196d79e9c2c627031bd3fb2715e0612d88255c56
Merge pull request #1467 from zombie/723803-test-ss-recover
bug 723803 - test recovery of simple-storage data, r=@Mossop
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•