Change in ovirt-engine[master]: webadmin, userportal: Overhaul UiCommonEditorDriver cleanup()...
vszocs at redhat.com
vszocs at redhat.com
Tue Oct 25 17:41:46 UTC 2016
Vojtech Szocs has submitted this change and it was merged.
Change subject: webadmin,userportal: Overhaul UiCommonEditorDriver cleanup() impl.
......................................................................
webadmin,userportal: Overhaul UiCommonEditorDriver cleanup() impl.
1. when cleaning up the edited Model object:
- emit `if (getObject() != null) { .. }` block only if we have
at least one statement to put in that block
2. when cleaning up the Editor instance:
- scan supertype hierarchy to find all fields (inherited too)
eligible for cleanup
3. refactor code by splitting into smaller methods
With this patch, there is no need for "supertype field cleanup",
the generated driver.cleanup() impl. takes care of that already.
Change-Id: Ia2aa2c259e97c623c81aed23fad892a11e4f28cb
Bug-Url: https://bugzilla.redhat.com/1368101
Signed-off-by: Vojtech Szocs <vszocs at redhat.com>
---
M frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/binding/UiCommonEditorDriverGenerator.java
M frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/view/popup/permissions/AbstractPermissionsPopupView.java
M frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/section/main/view/popup/permissions/PermissionsPopupView.java
M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/AbstractNetworkPopupView.java
M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/NewNetworkPopupView.java
M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/PermissionsPopupView.java
M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/view/popup/datacenter/EditNetworkPopupView.java
7 files changed, 71 insertions(+), 40 deletions(-)
Approvals:
Alexander Wels: Looks good to me, approved
Jenkins CI: Passed CI tests
Vojtech Szocs: Verified
--
To view, visit https://gerrit.ovirt.org/65733
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia2aa2c259e97c623c81aed23fad892a11e4f28cb
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Greg Sheremeta <gshereme at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Betak <mbetak at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
More information about the Engine-commits
mailing list