Bug 1676584 - Content of some widget disappears when changing user's Timezone
Summary: Content of some widget disappears when changing user's Timezone
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.11.0
Assignee: Yuri Rudman
QA Contact: Jaroslav Henner
Red Hat CloudForms Documentation
URL:
Whiteboard:
: 1676583 (view as bug list)
Depends On:
Blocks: 1702480
TreeView+ depends on / blocked
 
Reported: 2019-02-12 15:37 UTC by Yuri Rudman
Modified: 2019-12-13 14:54 UTC (History)
5 users (show)

Fixed In Version: 5.11.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1702480 (view as bug list)
Environment:
Last Closed: 2019-12-13 14:54:39 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
No data in some widgets (195.81 KB, image/png)
2019-02-13 14:51 UTC, Yuri Rudman
no flags Details

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.


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