Bug 1534962

Summary: Save button isn't activated when date is removed in VM "Set/Remove retirement date"
Product: Red Hat CloudForms Management Engine Reporter: Radim Hrazdil <rhrazdil>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, hhudgeon, hkataria, jprause, lavenel, mpovolny, obarenbo, tpapaioa
Target Milestone: GAKeywords: Regression, TestOnly, ZStream
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:
: 1553243 (view as bug list) Environment:
Last Closed: 2019-02-11 14:01:16 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: 1553243    

Description Radim Hrazdil 2018-01-16 11:23:41 UTC
Description of problem:

Let's have a vm that is retired, navigate to the vm's "Set/Remove retirement date for Virtual Machine" page. 

When the "Retirement Date and Time" field is clicked, the date is removed, a date widget is displayed, but the save button is not activated.

I would expect 2 following behaviours:
1. When user selects "Retirement Date and Time", the date is cleared and the Save button is activated, so that when the date widget is closed, changes can be saved.

2. When user selects "Retirement Date and Time", the date remains the same, and when clearing the field manually or by clicking the thrash bin, the Save button is activated, so changes can be saved. 

The first case feels more natural.

Version-Release number of selected component (if applicable):
CFME 5.9.0.16.20180109204148_7ac9852 

How reproducible:
100%

Steps to Reproduce:
1. Navigat to Set/Remove retirement date for Virtual Machine of a retired VM
2. Select Retirement Date and Time field and close it by clicking anywhere outside the widget

Actual results:
Save button is not activated, but Date has been changed (removed).

Expected results:
Save button IS activated, so that changes can be saved

Additional info:
For exact steps you may refer to test cfme.tests.cloud_infra_common/test_retirement/test_resume_retired_instance

Comment 5 CFME Bot 2018-02-20 17:05:04 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/8fbf8359bb5ae9994a94023ca1adc468b52b2fca

commit 8fbf8359bb5ae9994a94023ca1adc468b52b2fca
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Mon Feb 19 17:59:06 2018 +0100
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Mon Feb 19 17:59:06 2018 +0100

    Support for vm / orch. stack / instance / service unretire
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1534962

 app/assets/javascripts/directives/datetimepicker.js | 6 ++++++
 1 file changed, 6 insertions(+)

Comment 7 Tasos Papaioannou 2018-07-10 19:24:30 UTC
Verified on 5.10.0.3.