fix(xo-web/vm/disks): VDI disappears after migration (#5296)

Related to 1116530a6b
This commit is contained in:
Rajaa.BARHTAOUI 2020-10-06 10:38:33 +02:00 committed by GitHub
parent 4f3d4b06b5
commit 385984b1d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,7 @@
- [Backup/S3] Fix secret key edit form [#5233](https://github.com/vatesfr/xen-orchestra/issues/5233) (PR[#5305](https://github.com/vatesfr/xen-orchestra/pull/5305))
- [New network] Remove the possibility of creating a network on a bond member interface (PR [#5262](https://github.com/vatesfr/xen-orchestra/pull/5262))
- [User] Fix custom filters not showing up when selecting a default filter for templates (PR [#5298](https://github.com/vatesfr/xen-orchestra/pull/5298))
- [Self/VDI migration] Fix hidden VDI after migration (PR [#5296](https://github.com/vatesfr/xen-orchestra/pull/5296))
### Packages to release

View File

@ -81,7 +81,11 @@ import VmActionBar from './action-bar'
pool: getPool(state, props),
srs: getSrs(state, props),
vbds: getVbds(state, props),
vdis: getVdis(state, props),
// Workaround to get the VDI object when the permissions cache isn't up to date:
// when a VDI is created on a VM, the user permissions might be checked on the
// VBD *before* it's attached to the VM so the permissions cache will store that
// the user doesn't have permissions on the VDI even after it's been attached
vdis: getVdis(state, props, true),
vm,
vmTotalDiskSpace: getVmTotalDiskSpace(state, props),
}