xenadmin/XenModel
mcintyre94 7f2ecb6eab [CA-233454] PVS tab doesn't show a new VM when it's created (#1314)
* [CA-233454] PVS tab doesn't show a new VM when it's created

Refined the rules for not adding a VM to the table, if it is a template (thus not_a_real_vm), and it has the __gui__ prefix (thus hidden), we still add it, but hide it.
When its name is changed (to remove the __gui__ prefix), we update its name and re-calculate whether it should be visible (in the case of a new VM this will be true once the __gui__ prefix is gone). Also resort the table if a node changes from hidden to visible, because it appears as an addition to the table.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>

* [CA-233454] Update criteria for VM visibility to include is_a_real_vm

is_a_template is changed before the name_label removes the __gui__ prefix, so this works with no other changes to the vm property changed event.

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>

* [CA-233454] Update when the VMs are shown in the PVS list

New observable property IsBeingCreated for VMs, set to true when they're made a hidden object, and false when they're removed from hidden objects (both in CreateVMAction). In the PVS Page when this is set to false, we re-evaluate whether a VM can be shown. This means that new VMs show here at the same time they're added to the tree (only different is tree refresh time), instead of far earlier (and before their networks were added).

Signed-off-by: Callum McIntyre <callumiandavid.mcintyre@citrix.com>

* [CA-233454] Set IsbeingCreated in the CreateVMFastAction

* [CA-233454] Properly support the VM Fast Create action

Further changes to CreateVMFastAction, to ensure it works with PVS tab - use the __gui__ prefix when the VM is created and then change it back just before showing.

* [CA-233454] Small logic adjustments/tidying up
2016-11-30 12:24:02 +00:00
..
Actions [CA-233454] PVS tab doesn't show a new VM when it's created (#1314) 2016-11-30 12:24:02 +00:00
Alerts CA-200532: Restore a try-catch I shouldn't have removed 2016-02-26 17:12:24 +00:00
CustomFields Refactored old events which did not need to pass parameters when fired, but were 2016-10-13 22:59:06 +01:00
Mappings CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
Network Merge remote-tracking branch 'github_xenadmin/master' into CAR-2245_temp 2016-10-20 19:12:57 +01:00
Properties CP-16012: Rename branding variables 2016-02-10 11:52:30 +00:00
ServerDBs CP-14647: Intermediate check-in #1 2015-11-08 11:27:56 +00:00
StorageLinkAPI CP-14647: Intermediate check-in #4 2015-11-08 11:28:01 +00:00
Utils [CA-233454] PVS tab doesn't show a new VM when it's created (#1314) 2016-11-30 12:24:02 +00:00
WLB CA-203345: Use DestroyTask() in WlbReportAction 2016-07-14 10:01:45 +01:00
XenAPI Merge pull request #1255 from GaborApatiNagy/master_packaging_fixes 2016-11-01 17:02:18 +00:00
XenAPI-Extensions [CA-233454] PVS tab doesn't show a new VM when it's created (#1314) 2016-11-30 12:24:02 +00:00
XenSearch CP-19257: Icon for Kylin Linux 2016-10-21 18:46:38 +01:00
XenServerProxy CA-173695: Reclaim freed space is failing with "Index and length must refer to a location with in the string" for AD users 2015-08-05 13:16:22 +01:00
DockerContainer.cs CA-162992: Better display of container network port mapping information on General tab 2015-03-06 11:43:47 +00:00
DockerContainers.cs CA-162992: Better display of container network port mapping information on General tab 2015-03-06 11:43:47 +00:00
Folder.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
Folders.cs CA-209502: FolderAction refactoring 2016-06-30 15:41:46 +01:00
FriendlyNames.Designer.cs [CA-220457] Add friendly names for new graphs, and filter duplicates 2016-10-26 16:03:12 +01:00
FriendlyNames.ja.resx L10N:TRanslations check-ins 2016-10-19 16:37:43 +05:30
FriendlyNames.resx [CA-220457] Add friendly names for new graphs, and filter duplicates 2016-10-26 16:03:12 +01:00
FriendlyNames.zh-CN.resx L10N:TRanslations check-ins 2016-10-19 16:37:43 +05:30
HealthCheckSettings.cs CA-205190: Fix Health Check Url 2016-04-01 12:37:03 +01:00
I18NException.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
Icons.cs Merge pull request #1238 from xenserver/CAR-2245 2016-10-24 17:56:16 +01:00
InvisibleMessages.Designer.cs CA-225731: XenCenter: Find the ISO update in the zip file defined in CFU 2016-10-19 13:42:16 +01:00
InvisibleMessages.ja.resx L10N:TRanslations checkpin 2016-10-27 14:46:55 +05:30
InvisibleMessages.resx CA-225731: XenCenter: Find the ISO update in the zip file defined in CFU 2016-10-19 13:42:16 +01:00
InvisibleMessages.zh-CN.resx L10N:TRanslations checkpin 2016-10-27 14:46:55 +05:30
InvokeHelper.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
Messages.Designer.cs CA-232944: Displaying server name as well 2016-11-25 10:47:40 +00:00
Messages.ja.resx L10N:TRanslations checkpin 2016-10-27 14:46:55 +05:30
Messages.resx CA-232944: Displaying server name as well 2016-11-25 10:47:40 +00:00
Messages.zh-CN.resx L10N:TRanslations checkpin 2016-10-27 14:46:55 +05:30
ObjectChange.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
OtherConfigWatcher.cs CA-150412: Removed invocation of XenConnections_CollectionChanged with null parameters; 2016-10-14 10:32:20 +01:00
PoolJoinRules.cs Merge pull request #881 from MihaelaStoica/CA-201119 2016-03-09 11:37:54 +00:00
RbacMethod.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
StringExtensions.cs CP-18618: If live patching fails, warn the user 2016-08-24 11:13:58 +01:00
Tags.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
TimeSpanExtensions.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
XenAdminConfigManager.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00
XenModel.csproj Merge remote-tracking branch 'github_xenadmin/master' into CAR-2245_temp 2016-10-20 19:12:57 +01:00
XenServerPlugins.cs CP-4816: Initial commit to git repo 2013-06-24 12:41:48 +01:00