mozilla / pontoon

Mozilla's Localization Platform
https://pontoon.mozilla.org
BSD 3-Clause "New" or "Revised" License
1.46k stars 529 forks source link

Unify admin user status definition #3418

Open mathjazz opened 1 day ago

mathjazz commented 1 day ago

Admin user status introduced in https://github.com/mozilla/pontoon/pull/3400 is defined in two different ways:

  1. As a superuser (user with all permissions).

  2. As a user with access to Pontoon admin (these users can also be selected from the list of Project Managers).

We should unify that and only use one definition. Which one?

I think the latter, because these users add comments and fix translations, so their avatars will actually appear in the History and Comments panels.

They will also be listed as Project Managers in the Project dashboards. So we should also change the status name from Admin to PM.

flodolo commented 1 day ago

(cc @bcolsson for visibility)

This is collapsing at least two different issues, and I believe the starting point is incorrect (users with access to Pontoon admin don't currently show up as potential project managers when setting up a project).

I don't think admins and project managers should be collapsed:

As for the definition of Admin, I would probably use "users with access to admin", since that's a subset of superuser.

Final consideration: I have working code to add the PM label here. While I don't fully understand the front-end code, the priority of users when it comes to the banner seems to be inconsistent between front-end and back-end, even more so after #3414:

mathjazz commented 1 day ago

While I don't fully understand the front-end code, the priority of users when it comes to the banner seems to be inconsistent between front-end and back-end, even more so after #3414:

Good point! Filed https://github.com/mozilla/pontoon/pull/3421 for an immediate fix.