Bug 1444112

Summary: Saved mapping rule has always Resource Entity as <All>
Product: Red Hat CloudForms Management Engine Reporter: Matouš Mojžíš <mmojzis>
Component: UI - OPSAssignee: Zohar Gal-Or <zgalor>
Status: CLOSED CURRENTRELEASE QA Contact: Angelina Vasileva <anikifor>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: dajohnso, fsimonce, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: configuration:ui
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1445363 (view as bug list) Environment:
Last Closed: 2018-03-06 15:54:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1445363    

Description Matouš Mojžíš 2017-04-20 15:21:55 UTC
Description of problem:


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

How reproducible:
Always

Steps to Reproduce:
1. Go to Configuration -> CFME Region -> Map Tags
2. Add a new mapping
3. Choose an entity that is not All
4. Save it

Actual results:
Entity is always <All> when saved.

Expected results:
Entity is saved correctly.

Additional info:

Comment 3 Zohar Gal-Or 2017-04-23 13:19:06 UTC
Submitted fix in PR:
https://github.com/ManageIQ/manageiq-ui-classic/pull/1122

Comment 4 Zohar Gal-Or 2017-04-24 08:41:34 UTC
Just a note. This was a UI bug, meaning the correct entity was saved in the database, but the display always showed "<All>".
In the table of all mapping rules, the Entity field was displayed as empty.

Anyway, all is fixed in the PR.

Comment 5 Zohar Gal-Or 2017-04-24 11:24:09 UTC
I think this should be included in 5.8.
The PR https://github.com/ManageIQ/manageiq-ui-classic/pull/1122 is ready but needs reviews.

Federico,
What do you think?

Comment 7 Federico Simoncelli 2017-04-26 08:02:44 UTC
Bug has been already cloned for 5.8, clearing needinfo.

Comment 8 Matouš Mojžíš 2017-10-30 19:20:09 UTC
Verified in 5.9.0.4. Mapping rule Resource Entity is saved correctly now.