Bug 1436720

Summary: When using dynamic drop downs, sorting of items doesn't work in self service portal.
Product: Red Hat CloudForms Management Engine Reporter: Ryan Spagnola <rspagnol>
Component: UI - OPSAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED CURRENTRELEASE QA Contact: Shveta <sshveta>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7.0CC: abellott, dajohnso, dclarizi, greartes, hkataria, jhardy, mpovolny, obarenbo, rspagnol, simaishi, smallamp, sshveta, tfitzger
Target Milestone: GAKeywords: TestOnly
Target Release: cfme-future   
Hardware: All   
OS: All   
Whiteboard: ssui:dialog
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1442168 1442169 (view as bug list) Environment:
Last Closed: 2018-07-31 16:10:22 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: 1442168, 1442169    
Attachments:
Description Flags
Sorting in OPS UI
none
SUI
none
Classic UI
none
SelfService UI
none
sort method
none
Sorting in OPS UI
none
Sorting in SUI - Working none

Description Ryan Spagnola 2017-03-28 13:48:43 UTC
Description of problem:
When using dynamic drop downs, sorting of items doesn't work in self service portal.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Chris Hale 2017-03-28 15:36:10 UTC
Could you please provide steps to reproduce this issue?

Comment 7 Chris Kacerguis 2017-04-07 12:03:10 UTC
Chris - Let's just use ng-sort

Comment 8 Chris Hale 2017-04-10 17:14:10 UTC
Shveta, 
     Could you try to see if you can import this service dialog and associated data from this ticket?  I seem to be unable to and wanted to see if you could validate that the attached files work. 

Thanks in advance

Comment 10 Shveta 2017-04-10 23:42:16 UTC
Hi Ryan , 

I used the above method and dialog .
Not able to list the datastores from vcentre.
Can you please check https://10.8.197.160 . Service - "sorting"

Comment 12 Shveta 2017-04-11 16:21:42 UTC
Sorry that one is gone .
Please check https://10.8.198.98

Comment 14 Shveta 2017-04-11 22:01:12 UTC
Created attachment 1270959 [details]
Sorting in OPS UI

Since I could not get the original method load the Datacenters I added some values manually. 

The values are neither sorted in OPS UI nor in SUI .
But the order in which the values are shown are different in both UI's

Comment 15 Shveta 2017-04-11 22:01:42 UTC
Created attachment 1270960 [details]
SUI

Comment 16 Ryan Spagnola 2017-04-12 11:09:16 UTC
Created attachment 1271108 [details]
Classic UI

Comment 17 Ryan Spagnola 2017-04-12 11:09:44 UTC
Created attachment 1271109 [details]
SelfService UI

Comment 18 Ryan Spagnola 2017-04-12 11:12:56 UTC
I have attached screenshots provided by the customer. The Classic UI is sorted alphabetically with the default choose option at the top. The SelfService dropdown is random with the default choose at the bottom. Is it possible to have these match?

Comment 19 Chris Hale 2017-04-12 20:00:44 UTC
GH PR https://github.com/ManageIQ/manageiq-ui-service/pull/671

Comment 22 Shveta 2017-10-31 20:18:32 UTC
Created attachment 1346093 [details]
sort method

Sorting is working in SUI but not in OPS UI.
Used a method that has sorting based on value in ascending order . (Screenshot1)

Comment 23 Shveta 2017-10-31 20:19:13 UTC
Created attachment 1346096 [details]
Sorting in OPS UI

Values are not sorted .

Comment 24 Shveta 2017-10-31 20:19:40 UTC
Created attachment 1346097 [details]
Sorting in SUI - Working

Comment 25 Chris Kacerguis 2017-11-03 01:18:26 UTC
Working in SUI, need to be tweaked in Ops.  Sending to that team.

Comment 27 Sudhir Mallamprabhakara 2018-05-23 14:07:59 UTC
Should this bug be closed or does the issue still persists in Ops UI?

Comment 28 Shveta 2018-05-23 22:21:41 UTC
This is working in OPS UI .
Checked in 5.9.3.0.20180522175053_3940873