Gilad Chaplik has uploaded a new change for review.

Change subject: webadmin: user session is kept alive
......................................................................

webadmin: user session is kept alive

When events are updated we trigger RefreshActiveModelEvent
event, which forcefully update current active model, and
causes a refresh in user session. As far as I understand
this event should only be called when running an action.

Change-Id: Ib99861bfdc41b98ceac0df7103acff5b9074f851
Signed-off-by: Gilad Chaplik <gchap...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/events/EventListModel.java
1 file changed, 0 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/27/23027/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/events/EventListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/events/EventListModel.java
index ea564d3..e7430cb 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/events/EventListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/events/EventListModel.java
@@ -16,7 +16,6 @@
 import org.ovirt.engine.ui.frontend.AsyncQuery;
 import org.ovirt.engine.ui.frontend.Frontend;
 import org.ovirt.engine.ui.frontend.INewAsyncCallback;
-import org.ovirt.engine.ui.frontend.communication.RefreshActiveModelEvent;
 import org.ovirt.engine.ui.uicommonweb.Linq;
 import org.ovirt.engine.ui.uicommonweb.UICommand;
 import org.ovirt.engine.ui.uicommonweb.models.GridTimer;
@@ -236,10 +235,6 @@
             return;
         }
 
-        if (!source.isEmpty()) {
-            //We received some new events, tell the active models to update.
-            RefreshActiveModelEvent.fire(this, false);
-        }
         List<AuditLog> list = (List<AuditLog>) getItems();
 
         Collections.sort(source, new Linq.AuditLogComparer());


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib99861bfdc41b98ceac0df7103acff5b9074f851
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <gchap...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to