Page MenuHomePhabricator

MassMessage toolkit
Open, In Progress, Needs TriagePublic

Description

Goal for a MassMessage toolkit, particularly around the upkeep of "invite lists" of usernames.

This is analogous to https://phabricator.wikimedia.org/T414842

User:Habst has already developed the bulk of this project, which will be linked here. Can also share here any potential improvements or additional features, or requests regarding the processing of particular invite lists.

Related Objects

Event Timeline

List of publicly-accessible usernames of people who attended or declined WMNYC events here: https://discord.com/channels/819432579013935125/1439005063069827203/1444784295196753930

Code used to generate that list here: https://gitlab.wikimedia.org/habs/wmnyc-usernames

The only things left, I think, are to filter that list to remove banned accounts and to remove people who have previously unsubscribed from WMNYC communications.

In case it helps, here's the Python code that the North Carolina Wikipedians use to manage our GlobalMessage mailing list. It uses the Wikimedia API and supports the following features:

  • Inputs:
    • A file consisting of the content of a GlobalMessage list -- the script looks for the {{target|...}} templates to identify user names. We want to add the option of specifying this as a URL. We manage this list manually by adding users from new events to the list.
    • A list of Wikimedia domains to check for every user: all of our signups come from enwiki, so we mainly use this to also check commons and wikidata in case someone is inactive on enwiki but active elsewhere.
    • "Active" and "inactive" thresholds: we consider users to be active if they last edited any of the selected Wikipedia sites in the last 6 years (effectively "since COVID-19 in 2020"), and "Inactive" if they last edited in 2016-2019 (i.e. ten years minus the "active" period).
  • Output: a spreadsheet with all the username/site combinations, last edit date, and the threshold result.
    • Currently you need to then manually determine the most recent edit date across the sites checked -- I plan to add an option to group results so you don't have to do that manually when I have a bit more time.
    • We currently move inactive users to https://meta.wikimedia.org/wiki/Global_message_delivery/Targets/North_Carolina_Wikipedians/Inactive, and delete users who last edited over 10 years ago. Our plan is to annually check the Inactive list, move any re-activated lists back into our main list, and to delete any when we get to 10 years without any edits.
    • Lines without {{target|...}} are included in the spreadsheet so you know where you are in the page.

The big hole in this scheme is that we don't currently check for banned accounts or users who have put up "don't message me" banners on their talk pages -- we currently rely on MassMessage to figure that out. So I'll be watching to see if you come up with that sort of functionality. Please feel free to take code or from our project if it's useful to you -- we use GPL3.0 instead of AGPL3.0, but our code is in different languages so you'd need to translate it anyway.

We created a Toolforge tool to get a list of users who were linked on meetup pages or marked as publicly attending Event namespace pages, here: https://usernames.toolforge.org/scrape

The scraping itself runs on Toolforge, and then you can export the results in a few different formats. It filters out banned, redirected, deceased, and previously-unsubscribed accounts. It's only been tested with WMNYC structure, but it could be used by other location wikiprojects. Source code linked from Toolforge here: https://gitlab.wikimedia.org/toolforge-repos/usernames

Pharos reopened this task as In Progress.
Pharos moved this task from Backlog to Done on the WikiNYC Tech Committee board.
Pharos reopened this task as In Progress.