The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was  Approved.

Operator: MaxSem (WMF) (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search) and the Wikimedia Community Tech team

Time filed: 06:19, Monday, May 14, 2018 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python/Pywikibot

Source code available: https://github.com/MaxSem/CommonsNotifier (might be moved elsewhere later)

Function overview: notifying article authors about problems with Commons images used.

Links to relevant discussions (where appropriate): Wishlist survey #10, enwiki discussion

Edit period(s): continuous. Will start with running every 15 minutes, then adjust if needed.

Estimated number of pages affected: several thousand per month

Namespace(s): Talk:

Exclusion compliant (Yes/No): yes, standard Pywikibot code

Adminbot (Yes/No): no

Function details:

Whenever a Commons image used on this wiki in mainspace is nominated for deletion:

Discussion[edit]

I'm assuming the reason the initial notifications will be random is down to technical difficulties in getting the most-watched pages? I'm not entirely sure that a random scatter is the best backup approach however... Richard0612 10:19, 14 May 2018 (UTC)[reply]
@Richard0612: Correct, getting the list of the top 10 most followed pages proved to be technically prohibitive. (It's possible, but caused a significant performance drag on the bot and we think we can find a better alternative.) We're starting small and will iterate based on feedback if the bot is too quiet. We're documenting all ideas of ways to notify if a file is used on more than 10 pages at phab:T190313. — Trevor Bolliger, WMF Product Manager (t) 21:35, 14 May 2018 (UTC)[reply]
@TBolliger (WMF): I would opt for the 10 most active pages (by number of edits in some sensible timeframe - say the past month) rather than a random 10, but I'll follow/contribute to the discussion on Phabricator. Richard0612 21:44, 14 May 2018 (UTC)[reply]
Hi @MaxSem (WMF):, wanted to walk through your process so for example:
  1. If I nominated commons:File:Stylised_atom_with_three_Bohr_model_orbits_and_stylised_nucleus.svg for some sort of deletion at commons
  2. The bot will pull this list of 1235 articles
  3. The bot will randomly pick 10 of those, and leave a message at the associated talk page
Correct? — xaosflux Talk 14:29, 14 May 2018 (UTC)[reply]
Yes. MaxSem (WMF) (talk) 21:18, 14 May 2018 (UTC)[reply]
Redirects are skipped (as in no page gets edited) because it's suspicious why an article with actual content and images would have its talk page redirected. MaxSem (WMF) (talk) 21:18, 14 May 2018 (UTC)[reply]
Yes. MaxSem (WMF) (talk) 21:18, 14 May 2018 (UTC)[reply]
Figuring out which template is responsible is tricky, so right now there's no such functionality. MaxSem (WMF) (talk) 21:18, 14 May 2018 (UTC)[reply]
@MaxSem (WMF): how is this "tricky"? — xaosflux Talk 21:32, 14 May 2018 (UTC)[reply]
@Xaosflux: I believe Max means tricky to determine from the page level, not the template level. I provided a similar response to Richard above, but in short we're starting with a quiet bot and will build functionality if the 'pick 10 pages at random' is ineffective. We're documenting all ideas of ways to notify if a file is used on more than 10 pages at phab:T190313. Posting on template talk pages is on the list. — Trevor Bolliger, WMF Product Manager (t) 21:35, 14 May 2018 (UTC)[reply]
Approved for trial (1000 edits or 14 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. approving for an initial trial. During trial use the bot parameter while we judge the impact it could have an RCP. As possible, please include the tag bot trial. — xaosflux Talk 01:49, 15 May 2018 (UTC)[reply]
Will do, thank you! The ticket for making the bot trial compliant is phab:T194778. — Trevor Bolliger, WMF Product Manager (t) 16:24, 15 May 2018 (UTC)[reply]
Note, an initial small sample run is available here. — xaosflux Talk 01:50, 23 May 2018 (UTC)[reply]
((OperatorAssistanceNeeded)) Please provide a report/update on your trial. — xaosflux Talk 19:18, 12 June 2018 (UTC)[reply]
Hey Xaosflux, the bot was off for a significant part of the time since the approval. There were some problems, eventually resolved. The bot is stopped now. Max Semenik (talk) 21:03, 12 June 2018 (UTC)[reply]
Actually in going through the edits, I'm not very happy about these: Talk:Mexican_peso - was this part of the "got crazy" detection? — xaosflux Talk 02:17, 13 June 2018 (UTC)[reply]
@Xaosflux: Yes, that (permalink) was part of the "got crazy" but it's been resolved now. We're now batching the talk page notifications into lists (like such) to avoid this in the future. Also of note: the bot is set to run every 15 minutes. This can be adjusted if needed, but we feel it's timely for Speedy Deletion nominations. — Trevor Bolliger, WMF Product Manager (t) 14:45, 13 June 2018 (UTC)[reply]
Not quite so, TBolliger (WMF) and Xaosflux - the files here are all different so this is a lack of batching which we fixed in phab:T195629, as can be seen e.g. here. The part that users have noticed was repeated posting about the same image which we also fixed from two different aspects (now the bot leaves machine-readable comments about each file and avoids keeping the database connection open for too long to prevent timeouts). Max Semenik (talk) 05:29, 15 June 2018 (UTC)[reply]
Approved for extended trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.xaosflux Talk 02:13, 13 June 2018 (UTC)[reply]
Trial complete. @Xaosflux: trial complete. Max Semenik (talk) 08:15, 16 June 2018 (UTC)[reply]
@MaxSem: they look good. As far as future editor feedback, will User talk:Community Tech bot be monitored or do editors need to go to meta? — xaosflux Talk 13:53, 16 June 2018 (UTC)[reply]
@MaxSem (WMF): about ready to close this out, just want to confirm how communication is going to take place. There is a local talk page with a banner to go to meta, but it also appears to be getting used here. I'm good pretty much either way, just want to make sure it is clear for editors and that where any messages go is monitored. Thanks, — xaosflux Talk 01:40, 18 June 2018 (UTC)[reply]
@Xaosflux: We are happy to receive feedback either the user talk page here on English Wikipedia, the user talk page on Meta, or the project's talk page on Meta. User talk:Community Tech bot here on ENWP is most preferred. — Trevor Bolliger, WMF Product Manager (t) 16:21, 18 June 2018 (UTC)[reply]
 Approved.xaosflux Talk 16:36, 18 June 2018 (UTC)[reply]
The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.