Bug 1564199

Summary: Wrong default value for "Run" field on Editing Widget screen
Product: Red Hat CloudForms Management Engine Reporter: Yuri Rudman <yrudman>
Component: UI - OPSAssignee: Zita Nemeckova <znemecko>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: clichybi, cpelland, hkataria, lavenel, mpovolny, nachandr, obarenbo, simaishi, yrudman, znemecko
Target Milestone: GA   
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-07 23:01:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Widget scheduled to run daily
none
Run value is Hourly none

Description Yuri Rudman 2018-04-05 16:06:03 UTC
Description of problem:
  Default widget which set-up to run Daily has "Hourly" value in Run field on edit widget screen 

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

How reproducible: 100%


Steps to Reproduce:
1. Go to Reports -> Dashboard Widget
2. Select widget which has value "Run daily starting on ..." (Top Storage Consumers)
3. Configuration -> Edit

Actual results:
  Run field has "Hourly" value

Expected results:
  Run field should have "Daily" value

Comment 2 Yuri Rudman 2018-04-05 16:07:34 UTC
Created attachment 1417840 [details]
Widget scheduled to run daily

Comment 3 Yuri Rudman 2018-04-05 16:09:39 UTC
Created attachment 1417841 [details]
Run value is Hourly

Comment 5 CFME Bot 2018-05-02 14:12:21 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/ff81db6a3408c7475cdf45f9527cd03030d54dfa
commit ff81db6a3408c7475cdf45f9527cd03030d54dfa
Author:     Zita Nemeckova <znemecko>
AuthorDate: Fri Apr 27 05:30:08 2018 -0400
Commit:     Zita Nemeckova <znemecko>
CommitDate: Fri Apr 27 05:30:08 2018 -0400

    Change @edit[:new][:timer_typ] to @edit[:new][:timer].typ

    There's no :time_typ key in @edit[:new] so it's aways nil and select is set to Hourly as it's the first value

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

 app/views/report/_schedule_form_timer.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 6 Nandini Chandra 2018-07-10 17:01:08 UTC
verified in 5.10.0.3

Comment 14 errata-xmlrpc 2019-02-07 23:01:30 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://access.redhat.com/errata/RHSA-2019:0212