xenadmin/XenAdmin/Commands
Callum McIntyre 479d4b4b87 [CA-269110] Stop calling assert_can_boot_here after migrate dropdown is closed
When we right click migrate a VM we load all the hosts in the pool into
a dropdown, and then one-by-one assert whether the selected VM can boot
on that host, enabling each option where this is positive. If the
dropdown is exited then nothing stops these assert calls from
continuing, and looking at the logs we can see that they do.

With a large pool this is problematic because the UI basically locks up
until it's completed all these asserts, even if we've already selected a
host to migrate to. If we try to migrate another host then we see in the logs that both the old thread and new
thread are making `assert_can_boot_here` calls, and the UI for the new
thread doesn't function until the old one has finished.

This commit adds a new property `_isDropDownClosed`, which is set by the
new `OnDropDownClosed` event handler. In the loop enabling dropdown
items, each iteration we check this property - and if it is true then
the dropdown is no longer showing so we stop the loop and thus don't
call any more `assert_can_boot_here` commands. This stops the UI locking
up after the dropdown is closed.

Signed-off-by: Callum McIntyre <callum.mcintyre@citrix.com>
2017-11-09 16:59:25 +00:00
..
Controls [CA-269110] Stop calling assert_can_boot_here after migrate dropdown is closed 2017-11-09 16:59:25 +00:00
ActivateVBDCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
AddHostCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
AddHostToPoolCommand.cs CA-268975: Do not allow multiple hosts to join the pool if the new pool size will exceed the max size 2017-10-13 10:14:00 +01:00
AddNewHostToPoolCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
AddVirtualDiskCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ApplyLicenseEditionCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
AttachVirtualDiskCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
BackupHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
BaseVIFCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
BugToolCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
CallHomeCommand.cs CA-176169: Added copyright statement to files which it was missing from 2017-01-16 20:14:56 +00:00
CancelHostConnectionCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ChangeControlDomainMemoryCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ChangeHostPasswordCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CollapseChildTreeNodesCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
Command.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ConnectAllHostsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ConvertVMToTemplateCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CopyTemplateCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CopyVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CreateVIFCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
CreateVMFromTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
CrossConnectionCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
CrossPoolCopyVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CrossPoolMigrateCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
CrossPoolMigrateToHomeCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
CrossPoolMoveVMCommand.cs CA-249858: Fix build warning as error 2017-06-15 08:31:47 +01:00
DeactivateVBDCommand.cs Converted remaining extension get and set properties of the API classes to methods 2017-09-05 02:15:38 +01:00
DeleteFolderCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DeletePoolCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DeleteSnapshotCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DeleteTagCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DeleteTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DeleteVirtualDiskCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DeleteVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DeleteVMsAndTemplatesCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DestroyBondCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DestroyHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DestroySRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DetachSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DetachVirtualDiskCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisableChangedBlockTrackingCommand.cs CP-24477: Add licence check for CBT feature 2017-09-25 18:19:15 +01:00
DisablePvsReadCachingCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DisasterRecoveryCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectAllHostsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectHostCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectHostsAndPoolsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectPoolCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DisconnectWlbServerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DragDropAddHostToPoolCommand.cs CA-268975: Do not allow multiple hosts to join the pool if the new pool size will exceed the max size 2017-10-13 10:14:00 +01:00
DragDropCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DragDropCrossPoolMoveHaltedVMCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DragDropIntoFolderCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DragDropMigrateVMCommand.cs CA-270505: Use generic msg if VM migr not allowed 2017-10-24 15:08:35 +01:00
DragDropRemoveHostFromPoolCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DragDropTagCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DRConfigureCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
DRDryrunCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DRFailbackCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
DRFailoverCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
EditTagsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
EnablePvsReadCachingCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ExpandTreeNodesCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ExportCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ExportResourceReportCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ExportSnapshotAsTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ExportTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ExportVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ForceVMRebootCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ForceVMShutDownCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ForgetSavedPasswordCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ForgetSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
HACommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
HostMaintenanceModeCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
HostPasswordCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
HostReconnectAsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ImPortCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ImportSearchCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
InstallNewUpdateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
InstallToolsCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
InstantVMFromTemplateCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
MigrateVirtualDiskCommand.cs Merge 'upstream/master' into REQ-67-us 2017-09-22 11:02:51 +01:00
MoveVirtualDiskCommand.cs Merge 'upstream/master' into REQ-67-us 2017-09-22 11:02:51 +01:00
MoveVMCommand.cs Merge 'upstream/master' into REQ-67-us 2017-09-22 11:02:51 +01:00
NewFolderCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NewPoolCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NewSRCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NewTemplateFromSnapshotCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
NewVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
NewVMFromSnapshotCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
NewVMFromTemplateCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
PauseDockerContainerCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
PoolReconnectAsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
PowerOnHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
PropertiesCommands.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
PutFolderIntoRenameModeCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
PutTagIntoRenameModeCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ReattachSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RebootCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RebootHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RebootVMCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ReconnectHostCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RemoveFromFolderCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RemoveHostCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RemoveHostCrashDumpsCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RemoveHostFromPoolCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RenameFolderCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RenameTagCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RepairSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RescanPIFsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RestartDockerContainerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RestartToolstackCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RestoreHostFromBackupCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ResumeDockerContainerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ResumeVMCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
RevertToSnapshotCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
RollingUpgradeCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
SaveSessionCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
SelectedItem.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
SelectedItemCollection.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
SelectionBroadcaster.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
SelectionManager.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
SetAsDefaultSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ShutDownCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
ShutDownHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ShutDownVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
StartDockerContainerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
StartVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
StopDockerContainerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
SuspendVMCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
TakeSnapshotCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
TrimSRCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
UntagCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
UpdateVIFCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
VappShutDownCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
VappStartCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
ViewWorkloadReportsCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
VirtualDiskCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
VMGroupCommand.cs CA-242134: Remove the VMPP code 2017-05-25 15:37:05 +01:00
VMLifeCycleCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
VMOperationCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
VMOperationHomeServerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
VMOperationHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
VMOperationWlbHostCommand.cs Converted all extension get properties of the API classes to methods in order to 2017-09-03 03:35:30 +01:00
VMOperationWlbOptimalServerCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00
VMRecoveryModeCommand.cs CA-176169: Changed copyright statements to include the comma in Citrix Systems, 2017-01-16 19:59:50 +00:00