Gilad Chaplik has submitted this change and it was merged.

Change subject: restapi: backward compatibility for cluster's scheduling policy
......................................................................


restapi: backward compatibility for cluster's scheduling policy

The engine implementation for cluster policy has changed, thus
changing the cluster mapper to handle it, without breaking compatibility.

* scheduling_policy_type will be mapped to cluster_policy_name and vice-versa.
* thresholds will be mapped to properties map and vice-versa.

* also, currently in case of 'none' policy, user will see:
<scheduling_policy/>
altered the mapper to show 'none' instead of empty entity.

Change-Id: I4edd7313401670ca225b32d19dd7ad961ccd1b6a
Signed-off-by: Gilad Chaplik <gchap...@redhat.com>
---
M 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/ClusterMapper.java
M 
backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/ClusterMapperTest.java
2 files changed, 40 insertions(+), 49 deletions(-)

Approvals:
  Gilad Chaplik: Verified; Looks good to me, approved


-- 
To view, visit http://gerrit.ovirt.org/16607
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4edd7313401670ca225b32d19dd7ad961ccd1b6a
Gerrit-PatchSet: 20
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Laszlo Hornyak <lhorn...@redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com>
Gerrit-Reviewer: Ori Liel <ol...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to