Created attachment 1219830 [details] back trace Description of problem: Any attempt to open custom report in Cloud Intel->Timelines based on "Operations VM Power On/Off Events for Last Week" report causes exception in production.log and appropriate error "undefined method `each' for nil:NilClass [dashboard/tl_generate]". Actually, my report has only one change Last Week -> This Week. Version-Release number of selected component (if applicable): 5.7.0.10 How reproducible: 100% Steps to Reproduce: 1. Add any provider. f.e. vsphere55 1. Create a copy of "Operations VM Power On/Off Events for Last Week" report and change its filter from Last Week to This Week 2. Start/Stop any vm 3. Queue the report and wait until it gets prepared 4. Try to open the report thru Cloud Intel->Timelines->Custom-><Custom Report> Actual results: error page and exception in production.log Expected results: correctly displayed timelines Additional info: Harpreet already looked into this issue
it is probably related to this issue https://bugzilla.redhat.com/show_bug.cgi?id=1391706
https://github.com/ManageIQ/manageiq/pull/12593
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/8ebf1f368588622213bccf789ec95eb013fefebe commit 8ebf1f368588622213bccf789ec95eb013fefebe Author: Harpreet Kataria <hkataria> AuthorDate: Fri Nov 11 13:19:04 2016 -0500 Commit: Harpreet Kataria <hkataria> CommitDate: Fri Nov 11 13:34:40 2016 -0500 Event building code fix for OOTB reports with db EventStream/PolicyEvent Need to skip building grouping of events in timeline for OOTB reports with db as EventStream/PolicyEvent. Events in these reports are not based on categories, all events in such reports are shown in one single group. https://bugzilla.redhat.com/show_bug.cgi?id=1394316 lib/report_formatter/timeline.rb | 4 +++- spec/lib/report_formater/timeline_spec.rb | 20 +++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-)
I also run into this issue for default "Operations VMs Powered On/Off For Last Week" report. So, the issue is relevant for any report not only custom one.
New commit detected on ManageIQ/manageiq/euwe: https://github.com/ManageIQ/manageiq/commit/6b459d2c1547aca6c3a3c2f779c00884070f311c commit 6b459d2c1547aca6c3a3c2f779c00884070f311c Author: Dan Clarizio <dclarizi> AuthorDate: Fri Nov 11 16:04:03 2016 -0800 Commit: Oleg Barenboim <chessbyte> CommitDate: Mon Nov 14 10:06:49 2016 -0500 Merge pull request #12593 from h-kataria/timeline_fix_for_ootb_reports Event building code fix for OOTB reports with db EventStream/PolicyEvent (cherry picked from commit 7eb22b956d2d086a806fd30c78a6949c81111deb) https://bugzilla.redhat.com/show_bug.cgi?id=1394316 lib/report_formatter/timeline.rb | 4 +++- spec/lib/report_formater/timeline_spec.rb | 20 +++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-)