pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

Permissions: page is unusable when locale has many active contributors

Open bugzilla-to-github opened this issue 4 years ago • 7 comments

This issue was created automatically by a script.

Bug 1708744

Bug Reporter: @flodolo CC: @mathjazz

For example, go to the permissions for es-MX and try to search for an email. You can barely type a character that everything becomes incredibly slow https://pontoon.mozilla.org/es-MX/permissions/

We should either have a delay after the user types something, or explicitly ask for enter?

bugzilla-to-github avatar Apr 30 '21 02:04 bugzilla-to-github

Changing title for this, and try to raise the priority a bit: the page, not just the search, is unusable when there are a lot of active contributors.

For example, I had to try 3 or 4 time before managing to load the zh-CN page last week (I guess it depends on the current load). Searching and saving is as painful.

flodolo avatar Mar 29 '22 09:03 flodolo

This is what I see in the log (besides a bunch of memory quota errors)

Mar 29 09:29:27 dyno=web.3 connect=0ms service=23872ms status=503 bytes=0 protocol=https
Mar 29 09:29:28 Process exited with status 137
Mar 29 09:29:28 State changed from up to crashed
Mar 29 09:29:28 State changed from crashed to starting

flodolo avatar Mar 29 '22 09:03 flodolo

Confirming that I can't load at all the Permissions page for (example) in either zh-CN or fr locales. I'm trying to change permissions for zh-CN since they want to promote someone to manager, and someone else to translator

Delphine avatar Apr 24 '23 22:04 Delphine

Confirming that I can't load at all the Permissions page for (example) in either zh-CN or fr locales

Sadly, you need to keep trying at different times. If you share the names on Slack, I might try at different hours than you. Worst case scenario, we can fix it via Django admin :-(

flodolo avatar Apr 25 '23 05:04 flodolo

There are two major sources of slowness:

  1. The All Users panel that lists thousands of Pontoon users is loaded immediately. It transfers a ton of data and soaks the browser's memory.
  2. The permission selector widget (which includes the All users panel) is loaded for each Project enabled for a Locale. This takes a long time for Django to render the template.

The ability to assign permissions to any user has been removed temporarily. We should load users over AJAX and restore the ability to assign permission to any user.

mathjazz avatar Apr 25 '23 19:04 mathjazz

Closed by mistake.

mathjazz avatar May 01 '23 22:05 mathjazz

See also: #2849

mathjazz avatar May 29 '23 15:05 mathjazz