Page MenuHomePhabricator

When running MediaModeration script, I want to see output in the console
Closed, ResolvedPublic

Description

As detailed in T287510, we want to add console output when running mwscript extensions/MediaModeration/maintenance/ModerateExistingFiles.php with a verbose flag.

The expected output would be a message that the script is starting, dots for each batch run, and then an ending message which already exists.

If it seems simple and doable, timestamps for failures or matches might also be useful to add with a verbose flag.

See https://gerrit.wikimedia.org/r/c/mediawiki/extensions/MediaModeration/+/769074/ for an example of how to add output.

Event Timeline

@ERayfield will be updating this today with how she had approached the code.

had started to pull apart and refactor to make a little nicer to work with - wanted to create a sort of library so we could just plug and play as new technologies come along to give us other areas to which need to be monitored. basic primary ->begin->typesOfChecks->[as needed] output -> loop->output->end, where typesOfChecks would be the 'library' of various options

Change 784754 had a related patch set uploaded (by EllenR; author: EllenR):

[mediawiki/extensions/MediaModeration@master] When running MediaModeration script, see output in console

https://gerrit.wikimedia.org/r/784754

Change 784754 merged by jenkins-bot:

[mediawiki/extensions/MediaModeration@master] When running MediaModeration script, see output in console

https://gerrit.wikimedia.org/r/784754