Bug 1392351

Summary: "Starting Date" in scheduled report is always next day; cannot be set to another day
Product: Red Hat CloudForms Management Engine Reporter: Sachin <sacpatil>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Stefanisin <jistefan>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, hkataria, jhardy, jkrocil, mpovolny, obarenbo
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1399669 1399759 (view as bug list) Environment:
Last Closed: 2017-06-12 16:03:47 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:
Bug Depends On:    
Bug Blocks: 1399669, 1399759    

Description Sachin 2016-11-07 09:52:22 UTC
Description of problem:

"Starting Date" in scheduled report is always next day when "Once", "Daily", "Weekly" & "Monthly" is selected. It should be any date in future.


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


How reproducible:

Always


Steps to Reproduce:
Reproducer: https://10.74.130.178

1. Cloud Intel -> Schedules -> All Schedules -> test_more_than_5_email_ids 
2. Configuration -> "Edit this schedule"
3. Section: "Timer", Field "Run": <Select anything from "Once", "Daily", "Weekly", "Monthly">
4. Try to select "Starting Date" which is greater than next day

Actual results:

Cannot change date other than default date which is for next day

Expected results:

Should be able to change date other than next day


Additional info:

Reproducer: https://10.74.130.178
(This reproducer is also used for other BZs. Do not try anything which will alter any settings)

Comment 3 Jiri Stefanisin 2016-11-21 09:10:29 UTC
Also reported in https://github.com/ManageIQ/manageiq/issues/10619

Comment 5 Milan Zázrivec 2016-11-23 16:15:26 UTC
https://github.com/ManageIQ/manageiq/pull/12816

Comment 6 CFME Bot 2016-11-25 22:15:57 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/611bdfae71ced83695aa4ba87a30773f5c3efff5

commit 611bdfae71ced83695aa4ba87a30773f5c3efff5
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Wed Nov 23 17:12:35 2016 +0100
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Thu Nov 24 11:20:40 2016 +0100

    Set start date explicitly only when changing schedule interval
    
    Otherwise the start date would be set every time, also when
    changing the start date.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1392351

 app/controllers/report_controller/schedules.rb | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)