Bug 748252

Summary: [ovirt][webadmin]system events are flashing on each refresh
Product: [Retired] oVirt Reporter: Moran Goldboim <mgoldboi>
Component: ovirt-engine-webadminAssignee: Vojtech Szocs <vszocs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ecohen, iheim
Target Milestone: ---   
Target Release: 3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-09 07:57:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Moran Goldboim 2011-10-23 15:22:41 UTC
Description of problem:
when installing a host, all the events on the events are flushing on each refresh.

Version-Release number of selected component (if applicable):
e58c873756c51fecf8b3cbf0d6e7f352ae68facb

How reproducible:
always

Steps to Reproduce:
1.install a host and look in the event tab
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Vojtech Szocs 2011-11-10 15:44:20 UTC
If I understand correctly, the problem occurs when the user switches to "Events" main tab: event data is cleared before fetching fresh data from the backend.

This might be related to UiCommon, going to check.

Comment 2 Vojtech Szocs 2011-11-11 17:33:58 UTC
The "clear-before-data-fetch" Event table behavior is due to EventListModel.SyncSearch() manually setting its items to an empty collection before starting the data refresh timer.

WebAdmin model providers listen to item change events, and when "items" is not null (in our case, an empty collection), UI is refreshed according to "items". The reason why other main tabs are not cleared upon selection, is simply because "items" == null will not trigger UI refresh.

Comment 3 Vojtech Szocs 2011-11-14 18:23:33 UTC
Event main tab items no longer "flash" when selecting Event tab, given there was some data in the Event tab before.

Code review request: http://gerrit.ovirt.org/223

Comment 5 Itamar Heim 2012-08-09 07:57:14 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/