Closed
Bug 1888436
Opened 6 months ago
Closed 5 months ago
Add a "recover" method to the BackupResource base class
Categories
(Firefox :: Profile Backup, task, P3)
Firefox
Profile Backup
Tracking
()
RESOLVED
FIXED
127 Branch
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
Details
(Whiteboard: [fidefe-device-migration])
Attachments
(1 file)
This is the method that will need to be overridden by each subclass in order to perform the part of a recovery that involves moving user data from a recovery folder for the BackupResource into a newly created user profile directory.
The recover
method might do some processing on the data before it moves into the directory. Down the line, we might also need to add a postRecovery
method that runs immediately after launching the recovered profile, but that'll be outside of this bug.
Updated•6 months ago
|
Assignee | ||
Comment 1•6 months ago
•
|
||
Here's the method signature I'm proposing:
/**
* Restore a backup to some profile directory. This will reject and fail if
* the profile is already in use.
*
* @param {object} manifestEntry
* The deserialized object that was generated and returned by `backup` when this
* particular resource was backed up.
* @param {string} recoveryPath
* The path to the folder on the file system where all files within the
* backup file archive were decompressed.
* @param {string} profilePath
* The profile path to write the restored files to.
* @returns {Promise<undefined>}
*/
async recover(manifestEntry, recoveryPath, profilePath) {}
Assignee | ||
Updated•6 months ago
|
Severity: -- → N/A
Priority: -- → P3
Assignee | ||
Updated•5 months ago
|
Assignee: nobody → mconley
Assignee | ||
Comment 2•5 months ago
|
||
Pushed by mconley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d439383ee836
Add recover and postRecovery methods to BackupResource. r=backup-reviewers,kpatenio
Comment 4•5 months ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 5 months 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
•