groupfolders icon indicating copy to clipboard operation
groupfolders copied to clipboard

Perpetual loading with operations on folders

Open gaellafond opened this issue 2 years ago โ€ข 2 comments

How to use GitHub

  • Please use the ๐Ÿ‘ reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Create a folder in a Group Folder.
  2. Rename, delete or move the folder.
  3. A "loading" icon appear on the folder. The icon won't disappear unless the page is refreshed.

Screenshot from 2022-03-16 10-34-52

Expected behaviour

The modification to the folder should be applied almost immediately, without requiring a page reload. In other words, it should behave just like personal folders, outside of Group Folders.

Actual behaviour

A "loading" icon appear on the folder. The icon won't disappear unless the page is refreshed.

The modification are applied immediately to the file system, but the UI feels broken, since it shows a loading icon which doesn't go away.

If the group folder have several folders, it will take more time for the UI to reflect the changes: the user will have to click the "refresh" button several times.

The time it takes for the UI to reflect the changes is the same as the time it takes for the "occ groupfolders:scan" command to complete, which makes me believe Group Folders is running that command in the backend.

There is a direct correlation between the number of folders inside the Group Folder and the time it takes to run the scan. The number of files or the size of the files seems to be irrelevant. For a Group Folder containing about 5000 folders, the scan takes about 2 minutes to complete. This mean a user modifying a folder in that Group Folder will have to click the refresh button for 2 minutes before the changes are sync in the user interface.

correlation_folder_scan-time

Server configuration

Operating system: Ubuntu

Web server: Apache

Database: MySQL 8.0

PHP version: 8.0.16

Nextcloud version: 22.2.5

Group folders version: 10.0.2

Updated from an older Nextcloud/ownCloud or fresh install: Fresh install

Where did you install Nextcloud from: Docker image

Are you using external storage, if yes which one: Docker mounted volume. This should be irrelevant since the issue does not occur with personal files which are on the same docker volume.

Are you using encryption: No

Are you using an external user-backend, if yes which one: Saml

Client configuration

Browser: Firefox, Google Chrome

Operating system: Ubuntu

gaellafond avatar Mar 16 '22 02:03 gaellafond