Permissions: page is unusable when locale has many active contributors
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?
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.
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
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
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 :-(
There are two major sources of slowness:
- 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.
- 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.
Closed by mistake.
See also: #2849