Skip to content

Commit

Permalink
feat(xo-web/Backup NG/logs): display whether the export is delta/full (
Browse files Browse the repository at this point in the history
  • Loading branch information
badrAZ authored and julien-f committed Jun 7, 2018
1 parent 2cee413 commit a81f0b9
Show file tree
Hide file tree
Showing 4 changed files with 225 additions and 201 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Create new VDI from SR view not attached to any VM [#2229](https://github.com/vatesfr/xen-orchestra/issues/2229)
- [Patches] ignore XS upgrade in missing patches counter [#2866](https://github.com/vatesfr/xen-orchestra/issues/2866)
- [Health] List VM snapshots related to non-existing backup jobs/schedules [#2828](https://github.com/vatesfr/xen-orchestra/issues/2828)
- [Delta Backup NG logs] Display wether the export is a full or a delta [#2711](https://github.com/vatesfr/xen-orchestra/issues/2711)

### Bugs

Expand Down
8 changes: 6 additions & 2 deletions packages/xo-server/src/xo-mixins/backups-ng/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1018,12 +1018,16 @@ export default class BackupNg {
}
})()

const isFull = some(
deltaExport.vdis,
vdi => vdi.other_config['xo:base_delta'] === undefined
)
await waitAll(
[
...remotes.map(
wrapTaskFn(
id => ({
data: { id, type: 'remote' },
data: { id, isFull, type: 'remote' },
logger,
message: 'export',
parentId: taskId,
Expand Down Expand Up @@ -1119,7 +1123,7 @@ export default class BackupNg {
...srs.map(
wrapTaskFn(
id => ({
data: { id, type: 'SR' },
data: { id, isFull, type: 'SR' },
logger,
message: 'export',
parentId: taskId,
Expand Down
1 change: 1 addition & 0 deletions packages/xo-web/src/common/intl/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ const messages = {
jobTransferredDataSpeed: 'Transfer speed:',
operationSize: 'Size',
operationSpeed: 'Speed',
exportType: 'Type',
jobMergedDataSize: 'Merge size:',
jobMergedDataSpeed: 'Merge speed:',
allJobCalls: 'All',
Expand Down

0 comments on commit a81f0b9

Please sign in to comment.