backups: recursively update the dep preserveSecs
One idea was to compute this at cleanup time, but this has two problems: * the UI won't reflect this value. can be good or bad * the cleaner has no easy way to find out the "parent". I guess we should change our data structure, if we want to go down this route...
This commit is contained in:
@@ -135,7 +135,8 @@ describe('backup cleaner', function () {
|
||||
state: backups.BACKUP_STATE_NORMAL,
|
||||
dependsOn: [ 'backup-app-00', 'backup-app-01' ],
|
||||
manifest: null,
|
||||
format: 'tgz'
|
||||
format: 'tgz',
|
||||
preserveSecs: 0
|
||||
};
|
||||
|
||||
const BACKUP_0_APP_0 = { // backup of installed app
|
||||
@@ -148,7 +149,8 @@ describe('backup cleaner', function () {
|
||||
state: backups.BACKUP_STATE_NORMAL,
|
||||
dependsOn: [],
|
||||
manifest: null,
|
||||
format: 'tgz'
|
||||
format: 'tgz',
|
||||
preserveSecs: 0
|
||||
};
|
||||
|
||||
const BACKUP_0_APP_1 = { // this app is uninstalled
|
||||
@@ -161,7 +163,8 @@ describe('backup cleaner', function () {
|
||||
state: backups.BACKUP_STATE_NORMAL,
|
||||
dependsOn: [],
|
||||
manifest: null,
|
||||
format: 'tgz'
|
||||
format: 'tgz',
|
||||
preserveSecs: 0
|
||||
};
|
||||
|
||||
const BACKUP_1_BOX = {
|
||||
@@ -174,7 +177,8 @@ describe('backup cleaner', function () {
|
||||
identifier: 'box',
|
||||
dependsOn: [ 'backup-app-10', 'backup-app-11' ],
|
||||
manifest: null,
|
||||
format: 'tgz'
|
||||
format: 'tgz',
|
||||
preserveSecs: 0
|
||||
};
|
||||
|
||||
const BACKUP_1_APP_0 = {
|
||||
@@ -187,7 +191,8 @@ describe('backup cleaner', function () {
|
||||
identifier: app.id,
|
||||
dependsOn: [],
|
||||
manifest: null,
|
||||
format: 'tgz'
|
||||
format: 'tgz',
|
||||
preserveSecs: 0
|
||||
};
|
||||
|
||||
const BACKUP_1_APP_1 = {
|
||||
@@ -200,7 +205,8 @@ describe('backup cleaner', function () {
|
||||
identifier: 'app1',
|
||||
dependsOn: [],
|
||||
manifest: null,
|
||||
format: 'tgz'
|
||||
format: 'tgz',
|
||||
preserveSecs: 0
|
||||
};
|
||||
|
||||
before(async function () {
|
||||
|
||||
Reference in New Issue
Block a user