Skip to content

Commit

Permalink
feat(xo-web): display more notes on backup main page
Browse files Browse the repository at this point in the history
  • Loading branch information
b-Nollet committed Sep 9, 2024
1 parent 2f7e0d0 commit 2644b3c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- [REST API/Dashboard] Add name and type of the backup in the backup job issues (PR [#7958](https://github.com/vatesfr/xen-orchestra/pull/7958))
- [Perf-alert] Display warning if no guest tools are detected while monitoring VM memory (PR [#7886](https://github.com/vatesfr/xen-orchestra/pull/7886))
- [V2V] Fix computation of `memory_static_max`
- [Backups] Display more informations in the _Notes_ column of the backup page (PR [#7977](https://github.com/vatesfr/xen-orchestra/pull/7977))

### Bug fixes

Expand Down
2 changes: 2 additions & 0 deletions packages/xo-web/src/common/intl/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1961,6 +1961,8 @@ const messages = {
vmsTags: 'VMs tags',
tagNoBak: 'VMs with this tag will not be backed up {reason, select, null {} other {({reason})}}',
tagNotifyOnSnapshot: 'An email will be sent when a VM with this tag is snapshotted',
nbdConnections: `NBD connections`,
speedLimitNoUnit: 'Speed limit',

// ----- Restore files view -----
restoreFiles: 'Restore backup files',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import pickBy from 'lodash/pickBy.js'
const DEFAULTS = {
__proto__: null,

backupReportTpl: 'mjml',
cbtDestroySnapshotData: false,
checkpointSnapshot: false,
compression: '',
concurrency: 0,
fullInterval: 0,
nbdConcurrency: 1,
offlineBackup: false,
offlineSnapshot: false,
preferNbd: false,
reportWhen: 'failure',
timeout: 0,
}
Expand Down
20 changes: 20 additions & 0 deletions packages/xo-web/src/xo-app/backup/overview/tab-jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,18 @@ class JobsTable extends React.Component {
{
itemRenderer: job => {
const {
backupReportTpl,
cbtDestroySnapshotData,
checkpointSnapshot,
compression,
concurrency,
fullInterval,
maxExportRate,
nbdConcurrency,
nRetriesVmBackupFailures,
offlineBackup,
offlineSnapshot,
preferNbd,
proxyId,
reportWhen,
timeout,
Expand All @@ -338,9 +343,24 @@ class JobsTable extends React.Component {
{reportWhen in REPORT_WHEN_LABELS && (
<Li>{_.keyValue(_('reportWhen'), _(REPORT_WHEN_LABELS[reportWhen]))}</Li>
)}
{backupReportTpl !== undefined && (
<Li>{_.keyValue(_('shorterBackupReports'), _(backupReportTpl ? 'stateEnabled' : 'stateDisabled'))}</Li>
)}
{concurrency !== undefined && <Li>{_.keyValue(_('concurrency'), concurrency)}</Li>}
{preferNbd && <Li>{_.keyValue(_('nbdConnections'), nbdConcurrency ?? 1)}</Li>}
{preferNbd && cbtDestroySnapshotData !== undefined && (
<Li>
{_.keyValue(
_('cbtDestroySnapshotData'),
_(cbtDestroySnapshotData ? 'stateEnabled' : 'stateDisabled')
)}
</Li>
)}
{timeout !== undefined && <Li>{_.keyValue(_('timeout'), timeout / 3600e3)} hours</Li>}
{fullInterval !== undefined && <Li>{_.keyValue(_('fullBackupInterval'), fullInterval)}</Li>}
{maxExportRate > 0 && (
<Li>{_.keyValue(_('speedLimitNoUnit'), maxExportRate / (1024 * 1024) + ' MiB/s')}</Li>
)}
{offlineBackup !== undefined && (
<Li>{_.keyValue(_('offlineBackup'), _(offlineBackup ? 'stateEnabled' : 'stateDisabled'))}</Li>
)}
Expand Down

0 comments on commit 2644b3c

Please sign in to comment.