Yair Zaslavsky has posted comments on this change. Change subject: aaa: Adding engineSessionId on CommandContext ......................................................................
Patch Set 17: (3 comments) http://gerrit.ovirt.org/#/c/28829/17/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddImageFromScratchCommand.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddImageFromScratchCommand.java: Line 22: @NonTransactiveCommandAttribute(forceCompensation=true) Line 23: public class AddImageFromScratchCommand<T extends AddImageFromScratchParameters> extends CreateSnapshotCommand<T> { Line 24: Line 25: public AddImageFromScratchCommand(T parameters, CommandContext parentCommandContext) { Line 26: super(parameters, parentCommandContext); > as you expect to call this after duplicate, I think this is context not par Done Line 27: setVmId(getParameters().getMasterVmId()); Line 28: getParameters().setCommandType(getActionType()); Line 29: } Line 30: http://gerrit.ovirt.org/#/c/28829/17/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/context/EngineContext.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/context/EngineContext.java: Line 5: private String sessionId; Line 6: Line 7: public EngineContext(String sessionId) { Line 8: this.sessionId = sessionId; Line 9: } > I think we should be consistent and always use chaining. Done Line 10: Line 11: public String getSessionId() { Line 12: return sessionId; Line 13: } http://gerrit.ovirt.org/#/c/28829/17/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/context/QueryContext.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/context/QueryContext.java: Line 11: public EngineContext getEngineContext() { Line 12: return engineContext; Line 13: } Line 14: Line 15: public void setEngineContext(EngineContext engineContext) { > if we can avoid set context it will be great. Done Line 16: this.engineContext = engineContext; Line 17: } Line 18: -- To view, visit http://gerrit.ovirt.org/28829 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I310f5f77fff78b3232ee77fe63791425fd521516 Gerrit-PatchSet: 17 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com> Gerrit-Reviewer: Arik Hadas <aha...@redhat.com> Gerrit-Reviewer: Moti Asayag <masa...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Ravi Nori <rn...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches