Bug 1391621 - timelines for one category always shows one event
Summary: timelines for one category always shows one event
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.7.0
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: GA
: 5.8.0
Assignee: Harpreet Kataria
QA Contact: Ievgen Zapolskyi
URL:
Whiteboard: ui:timeline
: 1391644 (view as bug list)
Depends On:
Blocks: 1394340
TreeView+ depends on / blocked
 
Reported: 2016-11-03 15:55 UTC by Ievgen Zapolskyi
Modified: 2017-06-12 16:29 UTC (History)
6 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1394340 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:29:31 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:


Attachments (Terms of Use)
timelines screenshot (103.82 KB, image/png)
2016-11-03 15:55 UTC, Ievgen Zapolskyi
no flags Details
event_streams dump (435.45 KB, application/x-gzip)
2016-11-03 15:58 UTC, Ievgen Zapolskyi
no flags Details

Description Ievgen Zapolskyi 2016-11-03 15:55:10 UTC
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.

Comment 2 Ievgen Zapolskyi 2016-11-03 15:58:18 UTC
Created attachment 1217082 [details]
event_streams dump

Comment 3 Harpreet Kataria 2016-11-08 22:11:42 UTC
https://github.com/ManageIQ/manageiq/pull/12518

Comment 4 CFME Bot 2016-11-10 21:06:49 UTC
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(-)

Comment 5 CFME Bot 2016-11-10 21:26:30 UTC
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(-)

Comment 7 Harpreet Kataria 2016-11-15 21:58:39 UTC
*** Bug 1391644 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.