Bug 2221946 - can't sort userlist by admin flag
Summary: can't sort userlist by admin flag
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Users & Roles
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-11 11:11 UTC by Evgeni Golov
Modified: 2023-07-18 11:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-18 11:25:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (9.28 KB, image/png)
2023-07-11 11:11 UTC, Evgeni Golov
no flags Details

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.


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