[wp-meta] [Making WordPress.org] #2214: Forums: Automate Support badges

Making WordPress.org noreply at wordpress.org
Sat Aug 22 19:59:40 UTC 2020


#2214: Forums: Automate Support badges
----------------------------+---------------------
 Reporter:  SergeyBiryukov  |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Q1
Component:  Support Forums  |  Resolution:
 Keywords:                  |
----------------------------+---------------------

Comment (by coffee2code):

 Replying to [comment:21 sterndata]:
 > How many people have more than 400 replies where...

 Currently there are 1,862 users with more than 400 replies. I don't agree
 with the "last reply is less than two months ago" stipulation. Regardless
 of when they replied, if they meet the criteria for the badge then they
 meet it. It doesn't save us any effort to try to winnow down the complete
 list.

 Replying to [comment:30 macmanx]:
 > Upon reaching the 400 reply goal, the Support Contributor badge would be
 applied to the profile.
 > Upon being promoted to Moderator, the Support Team Badge would be
 applied to the profile.

 I concur with this straightforward criteria. It's easier to understand and
 easier to implement.

 As far as implementation goes, I've already written (though uncommitted)
 the wporg-profiles-association-handler plugin portion of the changes
 (which is half of what's needed as [comment:5 Sergey noted earlier]).

 The support plugin just needs to have functionality added to contact the
 Profiles association handler when a badge should be awarded. Roughly
 speaking, that means:
 * Upon publish/approval of a reply, check if it is the user's 400th reply
 and is so send request to Profiles association handler to assign badge.

 For the team badge:
 * Upon change of role to moderator (or higher), send request to Profiles
 association handler to assign badge.
 * Upon change of role from moderator to something lower, send request to
 Profiles association handler to remove badge.

 Pre-existing users who warrant either or both badges would be assigned the
 badges just prior to the above coming online.

 All in all, not a lot to it. I'll see about coding up the support side of
 things and testing it out soon.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/2214#comment:31>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list