From ffd523679de80b36b2eacd30cc98de3c588a2b77 Mon Sep 17 00:00:00 2001 From: Florent BEAUCHAMP Date: Thu, 9 Nov 2023 14:50:16 +0100 Subject: [PATCH] feat(backups): update VDI importing status its name_label --- @xen-orchestra/backups/_incrementalVm.mjs | 2 ++ CHANGELOG.unreleased.md | 1 + 2 files changed, 3 insertions(+) diff --git a/@xen-orchestra/backups/_incrementalVm.mjs b/@xen-orchestra/backups/_incrementalVm.mjs index 542b1fe65..6b3785f86 100644 --- a/@xen-orchestra/backups/_incrementalVm.mjs +++ b/@xen-orchestra/backups/_incrementalVm.mjs @@ -256,7 +256,9 @@ export const importIncrementalVm = defer(async function importIncrementalVm( if (stream.length === undefined) { stream = await createVhdStreamWithLength(stream) } + await xapi.setField('VDI', vdi.$ref, 'name_label', `[Importing] ${vdiRecords[id].name_label}`) await vdi.$importContent(stream, { cancelToken, format: 'vhd' }) + await xapi.setField('VDI', vdi.$ref, 'name_label', vdiRecords[id].name_label) } }), diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index b1858ecc1..7e5f6ede8 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -10,6 +10,7 @@ - [Netbox] Ability to synchronize XO users as Netbox tenants (PR [#7158](https://github.com/vatesfr/xen-orchestra/pull/7158)) - [VM/Console] Add a message to indicate that the console view has been [disabled](https://support.citrix.com/article/CTX217766/how-to-disable-the-console-for-the-vm-in-xencenter) for this VM [#6319](https://github.com/vatesfr/xen-orchestra/issues/6319) (PR [#7161](https://github.com/vatesfr/xen-orchestra/pull/7161)) - [Restore] Show source remote and restoration time on a restored VM (PR [#7186](https://github.com/vatesfr/xen-orchestra/pull/7186)) +- [Backup/Import] Show disk import status during Incremental Replication or restoration of Incremental Backup (PR [#7171](https://github.com/vatesfr/xen-orchestra/pull/7171)) ### Bug fixes