feat(xo-web/backup/new): ability to force full backup per schedule in case of CR (#5648)

Fixes #5541
This commit is contained in:
badrAZ
2021-03-09 09:38:56 +01:00
committed by GitHub
parent 066f54906b
commit b7603e109d
4 changed files with 6 additions and 5 deletions

View File

@@ -8,6 +8,7 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [VIF] To edit MAC address on a VIF, user has to be operator of the VIF and administrator of its network [#4700](https://github.com/vatesfr/xen-orchestra/issues/4700) (PR [#5631](https://github.com/vatesfr/xen-orchestra/pull/5631))
- [Backup/CR] Ability to set a specific schedule to always run full backups [#5541](https://github.com/vatesfr/xen-orchestra/issues/5541) (PR [#5648](https://github.com/vatesfr/xen-orchestra/pull/5648))
### Bug fixes
@@ -37,4 +38,4 @@
- @xen-orchestra/xapi patch
- @xen-orchestra/backups minor
- xo-server minor
- xo-web patch
- xo-web minor

View File

@@ -422,10 +422,10 @@ const New = decorate([
}
},
showScheduleModal: ({ saveSchedule }, storedSchedule = DEFAULT_SCHEDULE) => async (
{ copyMode, exportMode, deltaMode, propSettings, settings = propSettings, snapshotMode },
{ copyMode, exportMode, deltaMode, isDelta, propSettings, settings = propSettings, snapshotMode },
{ intl: { formatMessage } }
) => {
const modes = { copyMode, deltaMode, exportMode, snapshotMode }
const modes = { copyMode, isDelta, exportMode, snapshotMode }
const schedule = await form({
defaultValue: storedSchedule,
render: props => (

View File

@@ -103,7 +103,7 @@ const New = decorate([
<Number min='0' onChange={effects.setSnapshotRetention} value={schedule.snapshotRetention} required />
</FormGroup>
)}
{modes.deltaMode && (
{modes.isDelta && (
<FormGroup>
<label>
<strong>{_('forceFullBackup')}</strong>{' '}

View File

@@ -78,7 +78,7 @@ export default decorate([
},
]
if (state.deltaMode) {
if (state.isDelta) {
columns.push({
itemRenderer: schedule => (schedule.fullInterval === 1 ? _('stateEnabled') : _('stateDisabled')),
sortCriteria: 'fullInterval',