Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Jun 10, 2025

To reproduce:

  • first create 51 folders like x1, x2... x51
  • then after that create one folder like a1
  • load page
    • see x1 - x50 are listed
    • go to page 2
    • see x50 and x51 are listed
    • go back to page 1
    • see that a1 is now listed

@susnux susnux added bug 3. to review Items that need to be reviewed labels Jun 10, 2025
@susnux
Copy link
Contributor Author

susnux commented Jun 10, 2025

/backport to stable31

@provokateurin
Copy link
Member

ksort is working, but results in an "unnatural" sorting order, right? I didn't really get that from the PR title and description as it doesn't really explain what is wrong.

@susnux susnux force-pushed the fix/groupfolder-sort branch from 902b788 to f937e86 Compare June 10, 2025 19:51
@susnux
Copy link
Contributor Author

susnux commented Jun 10, 2025

its currently sorted by ID but the frontend is sorted by displayname by default (mount point).
So we load the wrong batch per pagination, as the backend needs to sort the same way for the batch as the frontend does.

@susnux
Copy link
Contributor Author

susnux commented Jun 10, 2025

BTW no idea whats wrong with psalm, it complains about possible wrong types, but its not possible.
The types it could have are only string, bool or int which all can be cast to string.

To reproduce:
- first create 51 folders like x1, x2... x51
- then after that create one folder like a1
- load page
  - see x1 - x50 are listed
  - go to page 2
  - see x50 and x51 are listed
  - go back to page 1
  - see that a1 is now listed

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: provokateurin <[email protected]>
@provokateurin provokateurin force-pushed the fix/groupfolder-sort branch from f937e86 to 46cb4ef Compare June 13, 2025 20:44
@provokateurin
Copy link
Member

Fixed it

@provokateurin provokateurin enabled auto-merge June 13, 2025 20:44
@provokateurin provokateurin merged commit 699a701 into master Jun 13, 2025
50 checks passed
@provokateurin provokateurin deleted the fix/groupfolder-sort branch June 13, 2025 20:53
@skjnldsv skjnldsv mentioned this pull request Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Items that need to be reviewed bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants