Shahar Havivi has uploaded a new change for review. Change subject: Engine: Add search by id to VMs object ......................................................................
Engine: Add search by id to VMs object Change-Id: I5a59a199846d4991130737c795eb871eb02fa29f bug-url: https://bugzilla.redhat.com/982050 Signed-off-by: Shahar Havivi <shav...@redhat.com> --- M backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VmConditionFieldAutoCompleter.java 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/07/18407/1 diff --git a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VmConditionFieldAutoCompleter.java b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VmConditionFieldAutoCompleter.java index 2af5ea1..297202c 100644 --- a/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VmConditionFieldAutoCompleter.java +++ b/backend/manager/modules/searchbackend/src/main/java/org/ovirt/engine/core/searchbackend/VmConditionFieldAutoCompleter.java @@ -36,9 +36,9 @@ mVerbs.add("TYPE"); mVerbs.add("QUOTA"); mVerbs.add("HOST"); + mVerbs.add("ID"); // Building the autoCompletion Dict buildCompletions(); - mVerbs.add("_VM_ID"); // Building the types dict getTypeDictionary().put("NAME", String.class); @@ -63,7 +63,7 @@ getTypeDictionary().put("TYPE", VmType.class); getTypeDictionary().put("QUOTA", String.class); getTypeDictionary().put("HOST", String.class); - getTypeDictionary().put("_VM_ID", UUID.class); + getTypeDictionary().put("ID", UUID.class); // building the ColumnName Dict columnNameDict.put("NAME", "vm_name"); @@ -89,7 +89,7 @@ columnNameDict.put("TYPE", "vm_type"); columnNameDict.put("QUOTA", "quota_name"); columnNameDict.put("HOST", "run_on_vds_name"); - columnNameDict.put("_VM_ID", "vm_guid"); + columnNameDict.put("ID", "vm_guid"); // Override field names for purpose of sorting, if needed sortableFieldDict.put("IP", StringFormat.format("fn_get_comparable_ip_list(%s)", getDbFieldName("IP"))); -- To view, visit http://gerrit.ovirt.org/18407 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5a59a199846d4991130737c795eb871eb02fa29f Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Shahar Havivi <shav...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches