Opened 7 years ago

Last modified 4 years ago

#3043 assigned enhancement

Allow team reps to assign contributor badges

Reported by: hlashbrooke's profile hlashbrooke Owned by: coffee2code's profile coffee2code
Milestone: Q1 Priority: normal
Component: Profiles Keywords: needs-patch


As per the discussion here:

Currently it seems that only Network Administrators can assign badges to contributors (i.e. add them to the badge groups). It would be great if we could extend this to allow selected individuals (the team reps most likely) to do this as well.

While some badges are assigned automatically, there are certain contribution paths that are not able to have automated badges due to the nature of the contributions. In those cases, the contributors need to be manually added to the relevant group(s) and it would be a whole lot simpler if team reps could do this themselves at their discretion.

Let me know if you need any further info from me about the requirements here, but it's pretty straight forward as an idea (although I'm not sure how simple it would be to implement).

Change History (11)

#1 @coreymckrill
7 years ago

  • Keywords needs-patch added
  • Owner set to coreymckrill
  • Status changed from new to accepted

This ticket was mentioned in Slack in #meta by hlashbrooke. View the logs.

7 years ago

This ticket was mentioned in Slack in #meta by sergey. View the logs.

7 years ago

#4 @schlessera
7 years ago

I looked into this issue in more detail, and I think it should be pretty straightforward to build a plugin that provides a frontend version of the "Add users" functionality you can find on the backend Groups administration screen. It should basically allow a group admin to provide one or more user names (or emails) and then just add them, without passing through invites or requests.

Before I go ahead and code a plugin like this, is there any security or privacy implication that would make this a non-option?

The groups are only used for management purposes and don't get any notifications, so I guess circumventing the invite should not be an issue.

It would mean that a group admin can search through the entire list of user names and emails, instead of only those that are friends. Would this cause a problem?

#5 @coreymckrill
7 years ago

  • Owner changed from coreymckrill to schlessera
  • Status changed from accepted to assigned

I think the frontend management page kind of already exists, actually, it's just that it's currently only available to super admins.

I can't think of any security/privacy issues, as long as the frontend management page is only available to group admins. @coffee2code or @jjj may have more insight on this, though.

This ticket was mentioned in Slack in #cli by schlessera. View the logs.

6 years ago

#7 @dd32
5 years ago

  • Milestone set to Q1

Bumping this for #929 and others - I've been told the UI exists but is currently disabled

#8 @dd32
5 years ago

@jjj Do you have any suggestions here? Or should we just add trusted users to wp-admin?

I've gone digging through the source code, but I can't really find anything that would enable the "Group Admins can invite users to the group" functionality.

#9 @coffee2code
5 years ago

  • Owner changed from schlessera to coffee2code

I'm not a fan of granting wp-admin access just for this purpose.

I've just started working on customizing the current front-end UI for groups to permit group admins to manage badges. The built-in behavior won't allow for the main thing group admins should be permitted to do: directly assign users to their group. (And much of their existing capabilities need to be blocked, such as being able to delete the group, which will likely be a sizable part of the effort.) The existing system largely revolves around a by-invitation system which doesn't make sense in the context of badges (at the very least as far as administration goes).

#10 @dd32
4 years ago

  • Milestone changed from Q1 to 2020 Q1

Milestone renamed

#11 @dd32
4 years ago

  • Milestone changed from 2020 Q1 to Q1

Milestone renamed

Note: See TracTickets for help on using tickets.