I cannot find the thread where the bug was reported, so I am leaving this post here. If you know nothing about APIs, you don’t need to worry about this.
I found a temporary solution to the RC patrol images bug. You know, that bug that means some images get put in RC patrol and marked as unpatrolled, even though they are supposed to be autopatrolled. I was in correspondence with @JayneG
and found a solution. @Gaurangprasad
gave me the okay to use it, so I am going to share what needs to be done.
wikiHow, like many other MediaWiki wikis, has an API accessible to most users. The temporary solution to clearing those recent changes is to hit the wikiHow API with a bunch of POST requests; particularly, POST requests to mark an edit as patrolled.
What you do, is you keep on patrolling edits using the traditional RC patrol (not the RC patrol tool) until you get a “bad title” page. Look inside the URL, copy the rcid
parameter from it, then proceed on to your code.
I am going to talk about a solution that works in the JavaScript F12 developer console, so please bear with me.
Take this code:
$.get(mw.config.get("wgScriptPath") + "/api.php", {
"action": "query",
"format": "json",
"meta": "tokens",
"type": "patrol"
}).done(function(result) {
if (result.error) {
console.error(result.error.info);
} else {
$.post(mw.config.get("wgScriptPath") + "/api.php", {
"action": "patrol",
"format": "json",
"rcid": RCID,
"token": result.query.tokens.patroltoken
}).done(function(result) {
if (result.error) {
console.error(result.error.info);
} else {
console.log(result);
}
});
}
});
Replace “RCID” with the RCID you just copied, then check the response on the second line.
From there, you can kind of work backwards. Continue to monitor Recent Changes, decrementing the rcid parameter, one by one, until all the images are gone from Recent Changes.
You can check that you patrolled an image by looking inside the result, and seeing if you see the name of the image as the “title” parameter in the JSON returned.
I have went ahead and cleared all the images from recent changes. Hopefully this bug does not happen again, but it is good to have these instructions until a permanent fix is found.
If you would like to know more about this API call including how to do it in other languages, I recommend you take a look here: API:Patrol - MediaWiki
. Oh, and please do one API call at a time, wikiHow rate limits the number of calls you can make per minute.