Hide Forgot
Created attachment 1217080 [details] timelines screenshot Description of problem: When one management category is chosen it always shows one event despite that db contains a lot of events for such category. Version-Release number of selected component (if applicable): 5.7.0.9 How reproducible: 100% Steps to Reproduce: 1. Add Infra Provider (f.e vsphere55) 2. Provision VM and start/stop it several times 3. Open Timelines for this vm/provider/etc. 4. Choose Power Activity category and centered position 5. Click Apply Actual results: Timelines shows only one event though there were several/many power off/on operations Expected results: all the events present in db relevant to chosen operation should be displayed in timelines. Additional info: I attached a screenshot and event_streams.
Created attachment 1217082 [details] event_streams dump
https://github.com/ManageIQ/manageiq/pull/12518
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/c469b3958f3d0a1cc9463a704d6931cba7665d5c commit c469b3958f3d0a1cc9463a704d6931cba7665d5c Author: Harpreet Kataria <hkataria> AuthorDate: Tue Nov 8 16:58:34 2016 -0500 Commit: Harpreet Kataria <hkataria> CommitDate: Tue Nov 8 17:27:18 2016 -0500 Fixed code that was gathering events for each selected category Changed code that was looping thru records to gather timeline events for each selected category, previously it was skipping thru some of the categories with the way code was looping thru random events in Ruport dfata table. Also replaced double-quotes in the timeline event data with single-quote, new timeline widget does not like double quotes in the description. Added spec test to verify counts of events. https://bugzilla.redhat.com/show_bug.cgi?id=1391621 lib/report_formatter/timeline.rb | 23 +++++----------- lib/report_formatter/timeline_message.rb | 1 + spec/lib/report_formater/timeline_spec.rb | 45 +++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 16 deletions(-)
New commit detected on ManageIQ/manageiq/euwe: https://github.com/ManageIQ/manageiq/commit/0e75435f479b203cca0375d0eef167e39bfeb2e5 commit 0e75435f479b203cca0375d0eef167e39bfeb2e5 Author: Dan Clarizio <dclarizi> AuthorDate: Thu Nov 10 12:59:11 2016 -0800 Commit: Oleg Barenboim <chessbyte> CommitDate: Thu Nov 10 16:23:30 2016 -0500 Merge pull request #12518 from h-kataria/timeline_events_fix Fixed code that was gathering events for each selected category (cherry picked from commit b7d64e6f62dc44d3cf98f7077dd868f0089833dd) https://bugzilla.redhat.com/show_bug.cgi?id=1391621 lib/report_formatter/timeline.rb | 23 +++++----------- lib/report_formatter/timeline_message.rb | 1 + spec/lib/report_formater/timeline_spec.rb | 45 +++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 16 deletions(-)
*** Bug 1391644 has been marked as a duplicate of this bug. ***