Bug 1556984 - Default selected tag name / value mismatch when assigning tags
Summary: Default selected tag name / value mismatch when assigning tags
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.9.0
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.10.0
Assignee: Hilda Stastna
QA Contact: Tasos Papaioannou
URL:
Whiteboard:
Depends On:
Blocks: 1561096
TreeView+ depends on / blocked
 
Reported: 2018-03-15 16:54 UTC by Tasos Papaioannou
Modified: 2019-02-28 17:57 UTC (History)
6 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1561096 (view as bug list)
Environment:
Last Closed: 2019-02-11 14:10:00 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.