Skip to content
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

CA-368247 and CA-379225 #3257

Closed
wants to merge 9 commits into from
Closed

CA-368247 and CA-379225 #3257

wants to merge 9 commits into from

Conversation

kc284
Copy link
Contributor

@kc284 kc284 commented Nov 13, 2023

Please review each commit separately.

…ly as parent class for exporting snapshots and templates.

Signed-off-by: Konstantina Chremmou <[email protected]>
…to file Win32.cs.

Signed-off-by: Konstantina Chremmou <[email protected]>
- The export code was written from scratch instead of making use of the
  relevant http action exposed in the SDK.
- The option to preserve a suspended VM's power state was not exposed.
- Show percentage in the progress message.
- Verification was happening twice (during download and after it).

Signed-off-by: Konstantina Chremmou <[email protected]>
- Added image column to show the VM's power state.
- Made the tick and image columns sortable.
- Corrected sort logic for the size column.
- Some refactoring to use a dedicated VmRow class.

Signed-off-by: Konstantina Chremmou <[email protected]>
… a suspended VM when exporting it as XVA.

Signed-off-by: Konstantina Chremmou <[email protected]>
/// </summary>
/// <param name="path">An absolute path</param>
/// <exception cref="Exception">May be thrown</exception>>
public static DiskSpaceInfo GetDiskSpaceInfo(string path)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this method closer to the file it is callwed from because I don't think it can be used in a wider context (attempt to use it in ExportSelectVMsPage.cs instead of Win32.GetDiskFreeSpaceEx causes a crash).

@kc284 kc284 added the do not review yet PR is still being drafted, do not review. label Nov 30, 2023
@kc284 kc284 changed the title CA-368247: Preserve the power state when exporting suspended VM as XVA. Other smaller fixes in the same area. CA-368247 and CA-379225 Dec 1, 2023
@kc284 kc284 closed this Dec 5, 2023
@kc284 kc284 deleted the export-vm-new branch December 5, 2023 22:12
@kc284 kc284 removed the do not review yet PR is still being drafted, do not review. label Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant