Bug 1556984

Summary: Default selected tag name / value mismatch when assigning tags
Product: Red Hat CloudForms Management Engine Reporter: Tasos Papaioannou <tpapaioa>
Component: UI - OPSAssignee: Hilda Stastna <hstastna>
Status: CLOSED CURRENTRELEASE QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.9.0CC: cpelland, hkataria, lavenel, mpovolny, obarenbo, tpapaioa
Target Milestone: GAKeywords: TestOnly, ZStream
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:
: 1561096 (view as bug list) Environment:
Last Closed: 2019-02-11 14:10:00 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: 1561096    

Description Tasos Papaioannou 2018-03-15 16:54:24 UTC
Description of problem:

After selecting Policy > Edit Tags for a provider, VM, or other object, the default value in first dropdown list is the 'Auto Approve - Max CPU' tag name. Clicking on the second dropdown list to select a value shows values that apply to the 'Cost Center' tag:

<Select a value to assign>
Cost Center 001
Cost Center 002

If I select one of these values, then the correct tag name of 'Cost Center' appears in the Category column. If instead I select another tag from from the first dropdown, then select 'Auto Approve - Max CPU' again, the expected values for this tag now show up in the second dropdown:

<Select a value to assign>
1
2
3
4
5

The same issue occurs regardless of the type of object being tagged (infrastructure provider, VM, host, Satellite provider, etc.).

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

5.9.0.22

How reproducible:

100%

Steps to Reproduce:
1.) See description above.

Actual results:

Default selected tag name in first dropdown list doesn't match the values available in the second dropdown.

Expected results:

Default selected tag name in first dropdown list matches the values available in the second dropdown.


Additional info:

Comment 6 CFME Bot 2018-03-27 11:47:29 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/02bc49c3d1f499b8f565ecf3ed6596243f40f1cf
commit 02bc49c3d1f499b8f565ecf3ed6596243f40f1cf
Author:     Hilda Stastna <hstastna>
AuthorDate: Mon Mar 19 06:24:14 2018 -0400
Commit:     Hilda Stastna <hstastna>
CommitDate: Mon Mar 19 06:24:14 2018 -0400

    Fix sorting of categories by description for assigning tags

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1556984

    Fix sorting of categories by description for assigning tags so that
    downcase method is added, to sort items of the array properly.

 app/controllers/application_controller/tags.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 8 Tasos Papaioannou 2018-07-27 16:17:04 UTC
Verified on 5.10.0.4.