Bug 1493386

Summary: We cannot backdate the schedule once you schedule it
Product: Red Hat CloudForms Management Engine Reporter: Neha Chugh <nchugh>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Pavol Kotvan <pakotvan>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpatters, hkataria, jhardy, mpovolny, obarenbo, pakotvan, rbabyuk
Target Milestone: GAKeywords: TestOnly
Target Release: 5.10.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1514525 1569127 (view as bug list) Environment:
Last Closed: 2018-06-21 20:56:22 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: 1514525, 1569127    

Description Neha Chugh 2017-09-20 05:46:42 UTC
Description of problem:
We cannot backdate the schedule once you schedule it.

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

How reproducible:
Always

Steps to Reproduce:
1. Navigate to Configuration -> Settings -> Schedules
2. Create a schedule to run a custom automate instance. Choose the action as Automate task and choose the future date say if today is 20 Sep 17 then choose the 2 months from now i.e. 20th Nov.
3. Now edit the schedule and change the date from 20th Nov to 21st Sep. you cannot change the date.

Actual results:

we cannot backdate the schedule.

Expected results:

It should edit the date.

Additional info:

Comment 5 CFME Bot 2017-11-16 14:04:29 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/092202923a5396b08662f6cfe4c8f7c785cb00ae

commit 092202923a5396b08662f6cfe4c8f7c785cb00ae
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Thu Oct 5 16:22:48 2017 +0200
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Tue Nov 14 18:21:51 2017 +0100

    Use miq-calendar directive in schedule editor
    
    This would fix some problems with datepicker-init:
    1. the controller now can work with Date object internally
    2. the controller can now correctly set datepicker start date
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1493386

 .../schedule/schedule_form_controller.js            |  7 +++----
 app/views/ops/_schedule_form_timer.html.haml        | 21 ++++++++-------------
 .../schedule/schedule_form_controller_spec.js       |  4 ++--
 3 files changed, 13 insertions(+), 19 deletions(-)