Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting order (when manually configured) will not work as expected #1360

Open
Githopp192 opened this issue Jul 10, 2024 · 8 comments
Open

Sorting order (when manually configured) will not work as expected #1360

Githopp192 opened this issue Jul 10, 2024 · 8 comments
Assignees
Labels
bug Something isn't working needs info

Comments

@Githopp192
Copy link

Describe the bug
Sorting order (when manually configured) will not work.

not in every case - but from time to time - all entries will be sorted alphabetically (benutzerdefinierte Sortierung - unchanged !).
To re-order all entries (when there are more than 100) is very time intensive.
This happens for parent folders (entries), children, sub-children ..

To Reproduce
Steps to reproduce the behavior:

  1. User Definded sorting (Benutzerdefinierte Sortierung)
  2. Sort entries manually by "drag & drop"

Expected behavior

By refreshing the collectives page, by logging out/in, by leaving the app - the sorting order should be static.

Screenshots

Server details:

  • Collectives app version: - collectives: 2.12.0
  • Nextcloud version: 27.1.11
  • PHP Version: 8.2
  • Database: MariaDB 10.7

Client details:

OS:Windows
Browser: Version 126.0.2592.87 (Offizielles Build) (64-Bit)

@Githopp192 Githopp192 added the bug Something isn't working label Jul 10, 2024
@castrv
Copy link

castrv commented Aug 24, 2024

Hello,

The same happens to me. I'm using the latest Nextcloud AIO on latest Debian.

@Githopp192
Copy link
Author

This happend to me again today, after drag & drop one content to another place .. had to manually order again some other stuff, which was in the right order previously

@mejo-
Copy link
Member

mejo- commented Aug 26, 2024

Dear all, thanks for your reports. I didn't manage to reproduce this so far, and given that I know several setups where sorting by drag'n'drop is heavily used, I wonder what's the difference with your setup.

To get a better understanding: you sort pages with drag'n'drop, the UI reacts as expected and pages get rearranged. No error message pops up. After reloading, the custom ordering is gone again?

Is this reproducible for you in a reliable way? If so, could you open the browser console and see if any error messages get logged to it?

I could imagine that ordering in the frontend succeeds while updating the ordering in the database fails due to connectivity issues on your side, but in this case you should see an error message and the ordering should be reverted straight away.

@mejo-
Copy link
Member

mejo- commented Aug 26, 2024

Another thought: could it be that the file IDs of your files change due to changes in the storage? That would explain why all the custom page order gets reset at once.

@Githopp192
Copy link
Author

Dear Jonas .. regarding to some aspects you mentioned ==>

  • you sort pages with drag'n'drop, the UI reacts as expected ==>

  • Wanted to move one item to another place by drag and drop

  • after that some items, which were on top previously, moved to the middle of the board

  • so i had to re-order them

  • this item i tried to move, did not get to the place, where i want the item is

  • this item got at the top of board

no error message pops up. ==>

  • no error messages seen

After reloading, the custom ordering is gone again? ==>

  • no, this will not be the case normally
  • only in rare situation (where we don't know, where they come from ..), the order will re-arranged alphabetically (leaving the manuar order/sort)

reproducible for you in a reliable way? ==>

  • at the moment i cannot reproduce, because it's rare, but it happens from time to time
  • when this happen againg - yes - will press F12 to check the logs

... database fails due to connectivity issues on your side ==>

  • don't think so - never saw a SQL-Error statement in the nextcloud.log
  • network in my environment is stable (Gbit cabled stack, Enterprise Server)

.. hat the file IDs of your files change due to changes in the storage? ==>

  • storage is a high-end datastore, provided through NFS & no other service is allowed to access the storage, than the nextcloud instance itself.

Thx Jonas to have a look to this item :-)

@blizzz
Copy link
Member

blizzz commented Sep 2, 2024

I can reproduce it when adding a new page ("September" in the screenshot):

Screenshot_20240902_142831

@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Sep 11, 2024
@mejo- mejo- self-assigned this Sep 11, 2024
@castrv
Copy link

castrv commented Sep 16, 2024

I can also reproduce it: when I add a new page just bellow "Informática", the page named "Windows-as-a-Service - Deployment-Release Models" in the screenshot will go to the bottom.
Screenshot 2024-09-17 000918

@Githopp192
Copy link
Author

Githopp192 commented Oct 27, 2024

can also confirm issue from @blizzz .. when creating a new folder/Item - manual sort list will be newly sorted by name

so - there must be some mechanism, when creating a new folder in a list, the manual order mechanism is no longer functional for this scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs info
Projects
Status: 🧭 Planning evaluation (don't pick)
Development

No branches or pull requests

4 participants