Bug 1163952 - Unable to create dashboard widget for trending reports or filter
Summary: Unable to create dashboard widget for trending reports or filter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.3.0
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.4.0
Assignee: Harpreet Kataria
QA Contact: Jan Krocil
URL:
Whiteboard:
Depends On:
Blocks: 1170794
TreeView+ depends on / blocked
 
Reported: 2014-11-13 19:24 UTC by Josh Carter
Modified: 2019-03-22 07:24 UTC (History)
3 users (show)

Fixed In Version: 5.4.0.0.11
Doc Type: Bug Fix
Doc Text:
In the previous version of CloudForms Management Engine, Trending reports could not be used as dashboard widgets. This caused the users not being able to create dashboard widget based on either a trending report or selecting Trending->clusters->Cluster IO trends. This issue was fixed by excluding the Trending reports from dashboard widgets. Now trending reports are not available to create widgets.
Clone Of:
: 1170794 (view as bug list)
Environment:
Last Closed: 2015-06-16 12:44:32 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Description Josh Carter 2014-11-13 19:24:51 UTC
Description of problem:

Unable to create a dashboard widget based on either a trending report or selecting trending->clusters->Cluster IO trends. 

"At least one column must be selected" 

Cloumn1 does not display any available columns to select.  


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 CFME Bot 2014-12-04 21:11:05 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/4f6ec6e103a3b371c779db48cbdc0768a1cb0f61

commit 4f6ec6e103a3b371c779db48cbdc0768a1cb0f61
Author:     Harpreet Kataria <hkataria>
AuthorDate: Mon Nov 24 14:47:30 2014 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Tue Dec 2 09:22:06 2014 -0500

    Exclude Trending reports from Dashboard widgets.
    
    Changed code to exclude Trending reports from widget editor because those are not like regular reports and do not have columns. Show a message instead of third pull-down "No Reports to select" in the view.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1163952

 vmdb/app/controllers/report_controller/schedules.rb | 8 +++++---
 vmdb/app/views/report/_widget_form_report.html.erb  | 2 ++
 2 files changed, 7 insertions(+), 3 deletions(-)

Comment 4 CFME Bot 2014-12-04 21:11:07 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/2da4c46e719e3892351e949a97827dcf21757116

commit 2da4c46e719e3892351e949a97827dcf21757116
Author:     Harpreet Kataria <hkataria>
AuthorDate: Mon Nov 24 14:51:24 2014 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Tue Dec 2 09:22:06 2014 -0500

    Refactored code in schedule_menus method.
    
    - Renamed schedule_menus method to report_selection_menus, and changed all it's callers.
    - Moved report_selection_menus method to reports controller, as it is a common method schedules and widgets editor.
    - Added spec tests for report_selection_menus method
    - Changed message to be displayed for folders that do not have reports .
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1163952

 vmdb/app/controllers/report_controller.rb          | 28 ++++++++++++++++
 .../app/controllers/report_controller/schedules.rb | 37 ++-------------------
 vmdb/app/controllers/report_controller/widgets.rb  |  6 ++--
 vmdb/app/views/report/_widget_form_report.html.erb |  2 +-
 vmdb/spec/controllers/report_controller_spec.rb    | 38 ++++++++++++++++++++++
 5 files changed, 72 insertions(+), 39 deletions(-)

Comment 5 CFME Bot 2014-12-04 21:11:10 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/cf70190836b14fdb59f525bc9dd2a96146a99e7a

commit cf70190836b14fdb59f525bc9dd2a96146a99e7a
Author:     Harpreet Kataria <hkataria>
AuthorDate: Tue Nov 25 18:01:15 2014 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Tue Dec 2 10:56:33 2014 -0500

    Converted view to haml.
    
    - Used gettext to display "No Widget compatible Reports found" message.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1163952

 vmdb/app/views/report/_widget_form_report.html.erb | 43 ----------------------
 .../app/views/report/_widget_form_report.html.haml | 42 +++++++++++++++++++++
 vmdb/config/locales/en.yml                         |  2 +-
 3 files changed, 43 insertions(+), 44 deletions(-)
 delete mode 100644 vmdb/app/views/report/_widget_form_report.html.erb
 create mode 100644 vmdb/app/views/report/_widget_form_report.html.haml

Comment 6 CFME Bot 2014-12-04 21:46:04 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=8190aeba820f67bd41aca74f5ac8c1c75174fc14

commit 8190aeba820f67bd41aca74f5ac8c1c75174fc14
Author:     Harpreet Kataria <hkataria>
AuthorDate: Tue Dec 2 09:22:06 2014 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Thu Dec 4 16:42:39 2014 -0500

    Refactored code in schedule_menus method.
    
    - Renamed schedule_menus method to report_selection_menus, and changed all it's callers.
    - Moved report_selection_menus method to reports controller, as it is a common method schedules and widgets editor.
    - Added spec tests for report_selection_menus method
    - Changed message to be displayed for folders that do not have reports .
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1163952
    (cherry picked from commit 2da4c46)
    https://bugzilla.redhat.com/show_bug.cgi?id=1170794

 vmdb/app/controllers/report_controller.rb          | 28 ++++++++++++++++
 .../app/controllers/report_controller/schedules.rb | 37 ++-------------------
 vmdb/app/controllers/report_controller/widgets.rb  |  6 ++--
 vmdb/app/views/report/_widget_form_report.html.erb |  2 +-
 vmdb/spec/controllers/report_controller_spec.rb    | 38 ++++++++++++++++++++++
 5 files changed, 72 insertions(+), 39 deletions(-)

Comment 7 CFME Bot 2014-12-04 21:46:09 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=e10cad3a5f8974a75ecad6fe3a6866d182014a9b

commit e10cad3a5f8974a75ecad6fe3a6866d182014a9b
Author:     Harpreet Kataria <hkataria>
AuthorDate: Tue Dec 2 10:56:33 2014 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Thu Dec 4 16:42:50 2014 -0500

    Converted view to haml.
    
    - Used gettext to display "No Widget compatible Reports found" message.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1163952
    (cherry picked from commit cf70190)
    https://bugzilla.redhat.com/show_bug.cgi?id=1170794

 vmdb/app/views/report/_widget_form_report.html.erb | 43 ----------------------
 .../app/views/report/_widget_form_report.html.haml | 42 +++++++++++++++++++++
 2 files changed, 42 insertions(+), 43 deletions(-)
 delete mode 100644 vmdb/app/views/report/_widget_form_report.html.erb
 create mode 100644 vmdb/app/views/report/_widget_form_report.html.haml

Comment 8 CFME Bot 2014-12-04 21:46:14 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=26eca4dc231e0d6e0def87f709b6289b84924728

commit 26eca4dc231e0d6e0def87f709b6289b84924728
Author:     Harpreet Kataria <hkataria>
AuthorDate: Tue Dec 2 09:22:06 2014 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Thu Dec 4 16:42:27 2014 -0500

    Exclude Trending reports from Dashboard widgets.
    
    Changed code to exclude Trending reports from widget editor because those are not like regular reports and do not have columns. Show a message instead of third pull-down "No Reports to select" in the view.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1163952
    (cherry picked from commit 4f6ec6e)
    https://bugzilla.redhat.com/show_bug.cgi?id=1170794

 vmdb/app/controllers/report_controller/schedules.rb | 8 +++++---
 vmdb/app/views/report/_widget_form_report.html.erb  | 2 ++
 2 files changed, 7 insertions(+), 3 deletions(-)

Comment 13 errata-xmlrpc 2015-06-16 12:44:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1100.html


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