nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.74k stars 4k forks source link

[Bug]: after entering file name, template modal takes ages to load #47416

Open maximelehericy opened 3 weeks ago

maximelehericy commented 3 weeks ago

⚠️ This issue respects the following points: ⚠️

Bug description

when creating a new file, after clicking the + and entering the file name, the template modal takes ages to load (about 15s on c.nc.c).

In the meantime nothing happens, and eventually, the popup appears, allowing one to pick a template.

Steps to reproduce

  1. go to Files
  2. click on + to create a new markdown file for example
  3. enter a filename "I love nc30" for example and hit enter
  4. wait
  5. eventually, the template picker shows up.

Expected behavior

template picker should show up way faster, and/or a loading item should also tell the user something is happening in the background.

Installation method

None

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

c.nc.c

sorbaugh commented 3 weeks ago

@Pytal maybe we can schedule this?

susnux commented 3 weeks ago

@sorbaugh this is not a front end bug¹, the real problem is that GET /ocs/v2.php/apps/files/api/v1/templates takes for ages to load even with only few templates. Meaning the template backend suffers performance issues.

¹ Well we should show a loading indicator, maybe even open the dialog but with "loading templates " inside?