Bug 1649945

Summary: C&U: Download button disabled for non-empty Utilization trend summary reports
Product: Red Hat CloudForms Management Engine Reporter: Nandini Chandra <nachandr>
Component: UI - OPSAssignee: Harpreet Kataria <hkataria>
Status: CLOSED CURRENTRELEASE QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.0CC: bmidwood, dmetzger, hkataria, lavenel, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: Regression
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-12 16:52:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screen shot of Utilization trend summary report none

Description Nandini Chandra 2018-11-14 21:45:32 UTC
Created attachment 1505814 [details]
screen shot of Utilization trend summary report

Description of problem:
-----------------------
The Download button is disabled for non-empty Utilization trend summary reports.

See attached screen shot.

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


How reproducible:
-----------------
Always


Steps to Reproduce:
-------------------
1.Manage an infra provider.Enable C&U for the provider.
2.Wait for C&U data to be collected(at least 2 days worth of data)
3.Navigate to the Optimize->Utilization page.Select 'Region'. Click 'Report' tab on the right.


Actual results:
--------------
Download button disabled for Utilization trend summary reports 


Expected results:
-----------------
Download button should be enabled for non-empty Utilization trend summary reports 


Additional info:
----------------

Comment 4 CFME Bot 2018-11-16 20:47:43 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/a98e6945da43db6ee47f5e931edd6307b31e4ff1
commit a98e6945da43db6ee47f5e931edd6307b31e4ff1
Author:     Harpreet Kataria <hkataria>
AuthorDate: Fri Nov 16 11:18:03 2018 -0500
Commit:     Harpreet Kataria <hkataria>
CommitDate: Fri Nov 16 11:18:03 2018 -0500

    Fixed to enable the download buttons on Utilization Report tab

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1649945

 app/helpers/application_helper/button/utilization_download.rb | 4 +-
 spec/helpers/application_helper/buttons/utilization_download_spec.rb | 61 +-
 2 files changed, 47 insertions(+), 18 deletions(-)

Comment 5 CFME Bot 2018-11-19 18:26:46 UTC
New commit detected on ManageIQ/manageiq-ui-classic/hammer:

https://github.com/ManageIQ/manageiq-ui-classic/commit/a1cf2639f3d235703f3923e5170aa408f6d8d35e
commit a1cf2639f3d235703f3923e5170aa408f6d8d35e
Author:     Dan Clarizio <dclarizi>
AuthorDate: Fri Nov 16 15:43:15 2018 -0500
Commit:     Dan Clarizio <dclarizi>
CommitDate: Fri Nov 16 15:43:15 2018 -0500

    Merge pull request #4934 from h-kataria/download_button_fix_for_utilization_report

    Fixed to enable the download buttons on Utilization Report tab

    (cherry picked from commit ced47cd800314a3fde82c30cce2012e01f33c7e1)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1649945

 app/helpers/application_helper/button/utilization_download.rb | 4 +-
 spec/helpers/application_helper/buttons/utilization_download_spec.rb | 61 +-
 2 files changed, 47 insertions(+), 18 deletions(-)

Comment 6 Nandini Chandra 2018-12-03 18:29:36 UTC
Verified in 5.10.0.27