Bug 1519358

Summary: Service Dialog Elements not sorting properly
Product: Red Hat CloudForms Management Engine Reporter: Brant Evans <brant.evans>
Component: UI - ServiceAssignee: Oleg Barenboim <obarenbo>
Status: CLOSED CURRENTRELEASE QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: high Docs Contact:
Priority: medium    
Version: 5.9.0CC: cpelland, hkataria, jhardy, lavenel, mpovolny, nansari, obarenbo, ohadlevy
Target Milestone: GAKeywords: TestOnly
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:
: 1531677 (view as bug list) Environment:
Last Closed: 2019-02-11 14:06:49 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: 1531677    
Attachments:
Description Flags
Service Dialog sorting example none

Description Brant Evans 2017-11-30 16:06:53 UTC
Created attachment 1360984 [details]
Service Dialog sorting example

Description of problem:
Sorting in Service Dialog Elements is broken. 

1) The sort is not honoring the sort order. Sorting is always descending for dropdowns and ascending for radio buttons.

2) Sorting of dropdown elements is different when sorting by value vs. description. The "None" selection is at the top (as expected) when sorting by value and at the bottom when sorting by description.

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

How reproducible:
Always

Steps to Reproduce:
1. Import the Service Dialog export attached to this BZ
2. Create a Service Catalog Item that uses the imported dialog
3. Order the Service Catalog Item

Actual results:
Dropdown and radio button fields are not sorted properly

Expected results:
Sorting works as defined in the dialog

Additional info:

Comment 2 Brant Evans 2017-11-30 16:08:45 UTC
The Service UI has the same problem (I think this is expected since moving the OPS UI to use the same dialog format as the SUI).

Comment 4 Chris Hale 2017-12-06 17:38:55 UTC
GH PR https://github.com/ManageIQ/ui-components/pull/212

Comment 6 Chris Hale 2017-12-13 15:16:58 UTC
This fix is strictly for sorting of dropdowns and radio lists.

Comment 8 Niyaz Akhtar Ansari 2018-09-04 08:58:30 UTC
Verified in Version 5.10.0.14.20180831154906_2f9a1dd