pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

Unify admin user status definition

Open mathjazz opened this issue 1 year ago • 2 comments

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.

mathjazz avatar Oct 20 '24 22:10 mathjazz

(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:

  • A project manager might just be a point of contact for the project who doesn't have rights to make changes to translations (they're not experts in localization). They're only available to answer questions, or relay them to developers and bring back the answer.
  • The PM is a specific figure with knowledge on that project, e.g. Peiying shouldn't show up as a PM for Firefox.
  • An admin might just be a developer who's not going to make any changes to translations (e.g. Harmit). At that point they're unlikely to show up in the Translate UI, but what would be the point of marking them as PMs if they do?

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:

  • Priority should go to roles within the locale (I'm a manager for Italian first in the context of Italian localization, because that's an indication for users contributing there).
  • Then comes the PM role. It's less important to know that Bryan is an admin when he leaves a comment in Firefox, he's important to highlight that he's the point of reference for that project (i.e. a PM).
  • Finally comes the Admin role.

flodolo avatar Oct 21 '24 05:10 flodolo

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.

mathjazz avatar Oct 21 '24 14:10 mathjazz