Bug 1676584

Summary: Content of some widget disappears when changing user's Timezone
Product: Red Hat CloudForms Management Engine Reporter: Yuri Rudman <yrudman>
Component: ApplianceAssignee: Yuri Rudman <yrudman>
Status: CLOSED CURRENTRELEASE QA Contact: Jaroslav Henner <jhenner>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.10.0CC: abellott, dmetzger, mshriver, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1702480 (view as bug list) Environment:
Last Closed: 2019-12-13 14:54:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1702480    
Attachments:
Description Flags
No data in some widgets none

Description Yuri Rudman 2019-02-12 15:37:20 UTC
Description of problem:
   Content of some widget disappears when changing user's Timezone 

Version-Release number of selected component (if applicable):
 Issue replicated on master branch, but I think it exists for some time

How reproducible:
100%


Steps to Reproduce:
1. make sure that widgets "EVM: Recently Discovered Hosts" or "Top CPU Consumers (weekly)" show some data in "Cloud Intel" -> "Dashboard"
2. change Timezone for logged-in user: "My Settings" -> "Display Settings: Time Zone"
3. go to "Cloud Intel" -> "Dashboard"

Actual results:
  "No data found" in above widgets
  (screen shot attached)

Expected results:
   widgets should have data

Comment 3 Yuri Rudman 2019-02-13 14:51:58 UTC
Created attachment 1534428 [details]
No data in some widgets

Comment 4 Yuri Rudman 2019-02-13 15:56:08 UTC
*** Bug 1676583 has been marked as a duplicate of this bug. ***

Comment 5 CFME Bot 2019-02-20 15:00:47 UTC
New commit detected on ManageIQ/manageiq/master:

https://github.com/ManageIQ/manageiq/commit/1cc4672853a91ac6a53499e52b51fed2192a3580
commit 1cc4672853a91ac6a53499e52b51fed2192a3580
Author:     Yuri Rudman <yrudman>
AuthorDate: Tue Feb 12 11:22:21 2019 -0500
Commit:     Yuri Rudman <yrudman>
CommitDate: Tue Feb 12 11:22:21 2019 -0500

    issue: when user changing display Timezone than widget content for new Timezone was not generated yet and some widgets on dasgboard does not show any data since Timezone is present in condition. Fix: if contents with respect to Timezone not found than try to search for widgets content without Timezone filter.
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1676584

 app/models/miq_widget.rb | 26 +-
 1 file changed, 14 insertions(+), 12 deletions(-)

Comment 7 Jaroslav Henner 2019-07-04 08:41:59 UTC
Hi. For the verification, can I somehow create the data in a way that wouldn't require waiting several days for the widget to display the data? I tried changing time by day and by week but I didn't get anything displayed in the Top CPU consumers.

Comment 8 Yuri Rudman 2019-07-05 16:20:44 UTC
Hi.
If you are asking about widget scheduler:
 Cloud Intel => Reports => Dashboard Widgets => All Widgets => Reports => <Selected Report> => Configuration Edit this Widget), there is "Starting Date" and "Starting Time UTC" fields which are controlling when widget will be run the very first time.
Make sure you have metrics latest data if you are  testing metric dependent widgets, like "Top CPU ...", "Top Memory ..."

Comment 9 Jaroslav Henner 2019-07-10 14:50:52 UTC
I was unable to reproduce this for the Top CPU consumers, but it did reproduce for EVM: Recently Discovered Hosts in  Version 5.10.0.33.20190129203322_85a1e4e 

In Version 5.11.0.11.20190625161125_392c61e this didn't reproduce -- the Discovered hots widget data survived timezone change.