Skip to content

fix: sort space members and managers by name within a role - #3927

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/space-members-stable-order
Oct 22, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/space-members-stable-order

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Stable order: the server returns space permissions in a rotating order, so members changed places and pages on every load. Members are now sorted by name (case-insensitive, numeric aware) within their role, then by id.
  • Places: sortSpaceMembers (Spaces overview members panel, space sidebar, space members in the share panel, space details), the admin settings Spaces members panel and getSpaceManagers (admin Spaces list manager column and details panel).

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: same result for different server orders, role order first, "User 2" before "User 10", space permissions not mutated
  • test case 2: browser: 15 members in a project space, reloaded several times: files app members panel incl. page 2, space sidebar, share panel, admin members panel, admin manager column and details, member search

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@tammi-23 tammi-23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 looks good

@AlexAndBear
AlexAndBear merged commit 684a3c1 into main Oct 22, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/space-members-stable-order branch October 22, 2026 10:09
@openclouders openclouders mentioned this pull request Oct 22, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Space member lists change their order on every load

2 participants