Gilad Chaplik has submitted this change and it was merged.
Change subject: userportal,webadmin: Querying for events takes too much time
userportal,webadmin: Querying for events takes too much time
For events sub tab it took too long time to read the data.
The problem was, that the EventListModel.Search() is invoked
when the Events tab is shown. But this method only set up
the query and started the timer, and the events where actually
queried when the timer decided to.
This fix enriched the EventListModel.Search() by explicitly
invoking the refresh command when the events tab is shown.
Note, that this is invoked only when the tab is shown, but
after this, the timer takes care of refreshing the data.
This patch also contains the following fix:
When there are no events for some entity, the progress
animation was on the events sub tab forever.
This has been fixed by sending the LastEvent event
also when no data came back from the server.
Signed-off-by: Tomas Jelinek <tjelinek(a)redhat.com>
1 file changed, 20 insertions(+), 5 deletions(-)
Gilad Chaplik: Verified; Looks good to me, approved
To view, visit http://gerrit.ovirt.org/5610
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-Owner: Tomas Jelinek <tjelinek(a)redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchaplik(a)redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek(a)redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs(a)redhat.com>