nextcloud / collectives

Collectives is a Nextcloud App for activist and community projects to organize together.
GNU Affero General Public License v3.0
91 stars 14 forks source link

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

Open Githopp192 opened 2 months ago

Githopp192 commented 2 months ago

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:

Client details:

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

castrv commented 2 weeks ago

Hello,

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

Githopp192 commented 2 weeks ago

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- commented 2 weeks ago

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- commented 2 weeks ago

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 commented 2 weeks ago

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

no error message pops up. ==>

reproducible for you in a reliable way? ==>

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

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

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

blizzz commented 1 week ago

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

Screenshot_20240902_142831