New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(xo-web/vm-import) Don't block the UI when dropping a big OVA file #4018
Conversation
Confirmed that it doesn't block the UI with a big file, and can import a small file. |
const { name } = file | ||
|
||
info(_('startVmImport'), name) | ||
|
||
if (data.tables) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data
may be undefined
.
const { name } = file | ||
|
||
info(_('startVmImport'), name) | ||
|
||
if (data && data.tables) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explicit tests: !== undefined
.
@@ -12,10 +12,10 @@ const GRAIN_ADDRESS_OFFSET = 56 | |||
*/ | |||
export default async function readVmdkGrainTable(fileAccessor) { | |||
const getLongLong = (buffer, offset, name) => { | |||
if (buffer.length < offset + 8) { | |||
if (buffer.byteLength < offset + 8) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea if this change is ok.
@@ -4,6 +4,7 @@ | |||
|
|||
- [SR/Disk] Disable actions on unmanaged VDIs [#3988](https://github.com/vatesfr/xen-orchestra/issues/3988) (PR [#4000](https://github.com/vatesfr/xen-orchestra/pull/4000)) | |||
- [Pool] Specify automatic networks on a Pool [#3916](https://github.com/vatesfr/xen-orchestra/issues/3916) (PR [#3958](https://github.com/vatesfr/xen-orchestra/pull/3958)) | |||
- [Import] Avoid blocking the UI when dropping a big OVA file on the UI (PR [#4018](https://github.com/vatesfr/xen-orchestra/pull/4018)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rebase on master and add xo-vmdk-to-vhd
to the Changelog.
3ff7383
to
a4bb915
Compare
Don't forget to check the PR checkboxes when done or irrelevant so we know when it's ready to be merged :) |
Check list
Fixes #007
)CHANGELOG.unreleased.md
:${name} v${new version}
)Process
WiP:
(Work in Progress) if not ready to be merged