Operator: Jmorgan (WMF) ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 21:11, Thursday, March 5, 2015 ( UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): Python
Source code available: repo on GitHub
Function overview: Matches users who have created a profile page at the
Wikipedia Co-op with mentors who can teach them particular editing skills. When a match is made, the bot posts a message on the profile talkpage—creating that page as a
Flow board, (request amended; see
discussion) if that talkpage does not already exist. The bot needs to be granted the
flow-create-board
user right to accomplish this.
This bot request is twofold:
Links to relevant discussions (where appropriate):
Edit period(s): as requested: the bot checks for new mentorship requests every ~5 minutes, and attempts to match each new request with a mentor immediately
Estimated number of pages affected: 10-20 per month
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details:
HostBot is hosted on Labs. Every five minutes, it will query the Wikipedia API for new pages in Co-op-specific categories. These pages will either be new Co-op member profiles (example: Wikipedia:Co-op/AMemberUserName) or existing member profiles where a user has recently added a new Co-op specific category (indicating a change in learning interests). It will also query the API for a list of Co-op mentors with profile pages (Wikipedia:Co-op/AMentorUserName) in the corresponding mentor category who have not opted out of receiving new matches. In both cases, Hostbot/Co-op checks that the category members are in fact subpages of Wikipedia:Co-op.
For each newly-categorized Co-op member, the bot chooses a random mentor from the list of corresponding mentors. If none are available for the given interest, it chooses a random mentor from the fallback category "General editing skills". Once the match is found, HostBot leaves a post on the talk page corresponding to the Co-op member's profile page (example: Wikipedia_talk:Co-op/AMemberUserName). If this page does not already exist, the bot uses the Flow API's new-topic
submodule to post its welcome message as a new topic, thus creating the talk page as a Flow board; otherwise, the bot edits the talk page normally. The message mentions the mentor and posts on the Flow-enabled talk page of a page that the member created, and so generates an Echo notification for both of them. The member and the mentor are then free to follow up with each other, and the bot's involvement is finished.
Constraints.
flow-create-board
right. A bureaucrat will need to add HostBot to
the flow-bot group which has this right. More details here:
https://phabricator.wikimedia.org/T76785Demonstration. This workflow is running on test.wikipedia.org already, by MatchBot. Here's an example learner profile page and talk page. You can sample it yourself if you want: click the "find a mentor" button on the co-op testwiki portal to create a sample profile and wait a few minutes to receive your matches. Note that approval for the FormWizard gadget used to create profiles on testwiki is not part of this request; matching works just as well with manually-created profile pages.
flow-create-board
access. What is the rollback plan for actions made in error? —
xaosflux
Talk
05:33, 8 March 2015 (UTC)
replyflow-create-board
action (please correct me if this functionality is present).
Xaosflux, I_JethroBT Alright, trial period is over. I've turned off the matching script for now. What's next? Jmorgan (WMF) ( talk) 18:38, 14 April 2015 (UTC) reply
Xaosflux Please check this. -- Magioladitis ( talk) 13:01, 16 May 2015 (UTC) reply
J-Mo can you provide me a link to the bots edits related to this task and comments about them? -- Magioladitis ( talk) 23:16, 27 May 2015 (UTC) reply
Trial complete. - J-Mo Talk to Me Email Me 21:32, 7 June 2015 (UTC) reply
Approved. -- Magioladitis ( talk) 22:11, 11 June 2015 (UTC) reply
Operator: Jmorgan (WMF) ( talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 21:11, Thursday, March 5, 2015 ( UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): Python
Source code available: repo on GitHub
Function overview: Matches users who have created a profile page at the
Wikipedia Co-op with mentors who can teach them particular editing skills. When a match is made, the bot posts a message on the profile talkpage—creating that page as a
Flow board, (request amended; see
discussion) if that talkpage does not already exist. The bot needs to be granted the
flow-create-board
user right to accomplish this.
This bot request is twofold:
Links to relevant discussions (where appropriate):
Edit period(s): as requested: the bot checks for new mentorship requests every ~5 minutes, and attempts to match each new request with a mentor immediately
Estimated number of pages affected: 10-20 per month
Exclusion compliant (Yes/No): Yes
Already has a bot flag (Yes/No): Yes
Function details:
HostBot is hosted on Labs. Every five minutes, it will query the Wikipedia API for new pages in Co-op-specific categories. These pages will either be new Co-op member profiles (example: Wikipedia:Co-op/AMemberUserName) or existing member profiles where a user has recently added a new Co-op specific category (indicating a change in learning interests). It will also query the API for a list of Co-op mentors with profile pages (Wikipedia:Co-op/AMentorUserName) in the corresponding mentor category who have not opted out of receiving new matches. In both cases, Hostbot/Co-op checks that the category members are in fact subpages of Wikipedia:Co-op.
For each newly-categorized Co-op member, the bot chooses a random mentor from the list of corresponding mentors. If none are available for the given interest, it chooses a random mentor from the fallback category "General editing skills". Once the match is found, HostBot leaves a post on the talk page corresponding to the Co-op member's profile page (example: Wikipedia_talk:Co-op/AMemberUserName). If this page does not already exist, the bot uses the Flow API's new-topic
submodule to post its welcome message as a new topic, thus creating the talk page as a Flow board; otherwise, the bot edits the talk page normally. The message mentions the mentor and posts on the Flow-enabled talk page of a page that the member created, and so generates an Echo notification for both of them. The member and the mentor are then free to follow up with each other, and the bot's involvement is finished.
Constraints.
flow-create-board
right. A bureaucrat will need to add HostBot to
the flow-bot group which has this right. More details here:
https://phabricator.wikimedia.org/T76785Demonstration. This workflow is running on test.wikipedia.org already, by MatchBot. Here's an example learner profile page and talk page. You can sample it yourself if you want: click the "find a mentor" button on the co-op testwiki portal to create a sample profile and wait a few minutes to receive your matches. Note that approval for the FormWizard gadget used to create profiles on testwiki is not part of this request; matching works just as well with manually-created profile pages.
flow-create-board
access. What is the rollback plan for actions made in error? —
xaosflux
Talk
05:33, 8 March 2015 (UTC)
replyflow-create-board
action (please correct me if this functionality is present).
Xaosflux, I_JethroBT Alright, trial period is over. I've turned off the matching script for now. What's next? Jmorgan (WMF) ( talk) 18:38, 14 April 2015 (UTC) reply
Xaosflux Please check this. -- Magioladitis ( talk) 13:01, 16 May 2015 (UTC) reply
J-Mo can you provide me a link to the bots edits related to this task and comments about them? -- Magioladitis ( talk) 23:16, 27 May 2015 (UTC) reply
Trial complete. - J-Mo Talk to Me Email Me 21:32, 7 June 2015 (UTC) reply
Approved. -- Magioladitis ( talk) 22:11, 11 June 2015 (UTC) reply