Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2221946

Summary: can't sort userlist by admin flag
Product: Red Hat Satellite Reporter: Evgeni Golov <egolov>
Component: Users & RolesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: aruzicka, mhulan, oezr
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-18 11:25:28 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:
Attachments:
Description Flags
screenshot none

Description Evgeni Golov 2023-07-11 11:11:07 UTC
Created attachment 1975133 [details]
screenshot

Description of problem:
When I open the user list (/users), I can click on the "Administrator" column and the page reloads (to /users?order=admin+ASC or /users?order=admin+DESC) but the data is in fact not sorted.

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

How reproducible:
100%

Steps to Reproduce:
1. go to /users
2. click "Administrator" column

Actual results:
not sorted by the admin flag

Expected results:
sorted by the admin flag

Additional info:

Comment 1 Evgeni Golov 2023-07-11 11:11:44 UTC
sorting by other columns works just fine

Comment 2 Adam Ruzicka 2023-07-18 11:25:28 UTC
This seems to work on stream, 6.14 and 6.13.1. Sadly I don't have 6.13.0 at hand to check there.

Tested with a list of users created by
for i in `seq 25`; do if [[ $((i % 2 )) -gt 0 ]]; then ADMIN=true; else ADMIN=false; fi; hammer user create --login test-$i --password changeme --auth-source Internal --mail a --firstname a --lastname b --admin $ADMIN; done

If there's something I missed, feel free to reopen.