Bug 1402939

Summary: Editing an already created schedule for "Container Image compliance" doesn't populate all the existing schedule settings
Product: Red Hat CloudForms Management Engine Reporter: Raul Mahiques <rmahique>
Component: UI - OPSAssignee: Aparna Karve <akarve>
Status: CLOSED CURRENTRELEASE QA Contact: Einat Pacifici <epacific>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6.0CC: cpelland, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.8.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 5.8.0.7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1433366 1434847 (view as bug list) Environment:
Last Closed: 2017-06-12 17:38:19 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: 1433366, 1434847    

Description Raul Mahiques 2016-12-08 16:41:21 UTC
Description of problem:
Editing an already created schedule for "Container Image compliance" doesn't populate all the existing schedule settings

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

How reproducible:
Create a schedule
Edit it.

Steps to Reproduce:
1. Settings → Configuration
2. Settings → Schedules
3. Configuration → Add a new Schedule
	Name: OpenSCAP containers analysis
	Description: It triggers OpenSCAP analysis of Containers
	Active: on
	Action: Container Image Compliance Check
	Filter: All container images → Not possible at the moment to filter by tag
	Run: Daily → every: Day
	Time Zone: (GMT+01:00) Zurich
	The rest leave it as default
4. Save
It shows the right information, but then:
5. Configuration --> Edit this Schedule
        Action: Nothing selected



Actual results:
Action is missing.

Expected results:
Action shows the correct action assigned to the schedule.

Additional info:

Comment 3 CFME Bot 2017-03-16 09:38:02 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/022561afaa9808ce82f7d0e75a7d6b28a7b036e3

commit 022561afaa9808ce82f7d0e75a7d6b28a7b036e3
Author:     Aparna Karve <akarve>
AuthorDate: Mon Mar 13 14:07:51 2017 -0700
Commit:     Aparna Karve <akarve>
CommitDate: Mon Mar 13 14:07:51 2017 -0700

    Fix filter values for container_image_check_compliance
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1402939

 app/controllers/ops_controller/settings/schedules.rb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comment 5 Aparna Karve 2017-03-21 16:19:06 UTC
Note that prior to the fix, the "Container Image compliance" schedules were being created with incorrect values. 
As a corrective action to fixing those broken and already existing "Container Image compliance" schedules, it is important open them in the Edit mode, set the appropriate values and re-save them.

Comment 7 Einat Pacifici 2017-05-29 07:24:35 UTC
Verified. Followed steps to recreate. Now Action does show selected Action.