Bug 1392351 - "Starting Date" in scheduled report is always next day; cannot be set to another day
Summary: "Starting Date" in scheduled report is always next day; cannot be set to anot...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.8.0
Assignee: Milan Zázrivec
QA Contact: Jiri Stefanisin
URL:
Whiteboard:
Depends On:
Blocks: 1399669 1399759
TreeView+ depends on / blocked
 
Reported: 2016-11-07 09:52 UTC by Sachin
Modified: 2019-12-16 07:19 UTC (History)
6 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1399669 1399759 (view as bug list)
Environment:
Last Closed: 2017-06-12 16:03:47 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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(-)


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