Change in ovirt-engine[ovirt-engine-4.0]: webadmin: Refactor CurrentUser code
piotr.kliczewski at gmail.com
piotr.kliczewski at gmail.com
Sat Aug 13 11:27:03 UTC 2016
Piotr Kliczewski has submitted this change and it was merged.
Change subject: webadmin: Refactor CurrentUser code
......................................................................
webadmin: Refactor CurrentUser code
CurrentUser#onUserLogin is typically called after UI plugins get initialized.
Keeping separate DbUser reference in CurrentUser is not only redundant but also
dangerous -- before CurrentUser#onUserLogin executes, UI plugins will get 'null'
from api.loginUserName() and api.loginUserId() functions.
This patch also removes some unused methods from CurrentUser.
Change-Id: I0b6998dd2bfaabd22f80fdde1c154fb2da447804
Bug-Url: https://bugzilla.redhat.com/1361656
Signed-off-by: Vojtech Szocs <vszocs at redhat.com>
---
M frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/auth/CurrentUser.java
M frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/system/BaseApplicationInit.java
2 files changed, 10 insertions(+), 24 deletions(-)
Approvals:
Alexander Wels: Looks good to me, approved
Jenkins CI: Passed CI tests
Vojtech Szocs: Verified
--
To view, visit https://gerrit.ovirt.org/62161
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0b6998dd2bfaabd22f80fdde1c154fb2da447804
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-4.0
Gerrit-Owner: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Tal Nisan <tnisan 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