[GH-ISSUE #623] Sort groups list on user view #231

Closed
opened 2026-02-27 08:16:00 +03:00 by kerem · 1 comment
Owner

Originally created by @mechanarchy on GitHub (Jul 22, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/623

On the user view, the list of groups that the user is in has no defined sort, nor is the ordering stable. The group list changes order with each refresh. Please can this list be alphabetically sorted so that it is stable between refreshes and matches the ordering of groups on the group view page.

I'm not familiar with Rust enough to implement this myself but I believe the code that needs to be changed is here:
github.com/lldap/lldap@7d1f5abc13/app/src/components/user_details.rs (L149)

Or it may need to be implemented upstream in the GraphQL API.

Originally created by @mechanarchy on GitHub (Jul 22, 2023). Original GitHub issue: https://github.com/lldap/lldap/issues/623 On the user view, the list of groups that the user is in has no defined sort, nor is the ordering stable. The group list changes order with each refresh. Please can this list be alphabetically sorted so that it is stable between refreshes and matches the ordering of groups on the group view page. I'm not familiar with Rust enough to implement this myself but I believe the code that needs to be changed is here: https://github.com/lldap/lldap/blob/7d1f5abc137821c500de99c94f7579761fc949d8/app/src/components/user_details.rs#L149 Or it may need to be implemented upstream in the GraphQL API.
kerem 2026-02-27 08:16:00 +03:00
Author
Owner

@nitnelave commented on GitHub (Jul 29, 2023):

Sorted the groups upstream so that graphql always returns a sorted list.

<!-- gh-comment-id:1656667780 --> @nitnelave commented on GitHub (Jul 29, 2023): Sorted the groups upstream so that graphql always returns a sorted list.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#231
No description provided.