Michael Pasternak has posted comments on this change. Change subject: restapi: non admin user api - exposing filtering param (#783087) ......................................................................
Patch Set 4: I would prefer that you didn't submit this (2 inline comments) i'd merge this patch to I563d7e13 .................................................... File backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BaseBackendResource.java Line 311: List<String> filterVar = getHttpHeaders().getRequestHeader(USER_FILTER_FIELD); 1. no need to retrieve header on each isFiltered() call (can be few durring the session), you can save it - it won't change. 2.we already have same code (you can reuse it), see SessionUtils Line 314: filter = Boolean.valueOf(filterVar.iterator().next()); what about disaster recovery from non-boolean variable? -- To view, visit http://gerrit.ovirt.org/4360 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I8e5e23cbb8e883f6005f69be46fa528ac6e7518c Gerrit-PatchSet: 4 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Asaf Shakarchi <a...@redhat.com> Gerrit-Reviewer: Asaf Shakarchi <a...@redhat.com> Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com> Gerrit-Reviewer: Ori Liel <ol...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches