Provide a way to query if a given revision was patrolled or not
Open, LowPublic

Description

As a tool/gadget developer, I want to be able to check if revisions 12345 and 6789 of abcd.wikipedia.org is patrolled or not, so that I can get this information for multiple revisions and do something useful (stats, bots) to help other users.

However, at the moment the only way to do this seems to be using a query like
https://pt.wikipedia.org/w/api.php?action=query&list=recentchanges&rcprop=patrolled
which only works for the recent changes of the wiki.

For older revisions, the only hack I can imagine to check if a given revision was patrolled or not, is to look at each log entry:
https://pt.wikipedia.org/w/api.php?action=query&list=logevents&leprop=details&letype=patrol
which doesn't seems very practical.

He7d3r created this task.Mar 9 2015, 9:27 PM
He7d3r updated the task description. (Show Details)
He7d3r raised the priority of this task from to Needs Triage.
He7d3r added a subscriber: He7d3r.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 9 2015, 9:27 PM
He7d3r added a comment.Mar 9 2015, 9:27 PM

PS: sorry for the duplicate in case someone else created a task for T36646#386081 - I didn't find one when I searched.

Aklapper triaged this task as Low priority.Mar 10 2015, 11:46 AM
Anomie added a subscriber: Anomie.Mar 10 2015, 1:27 PM

It's not clear what you're requesting here.

If it's about seeing "patrolled" status of revisions that are no longer in recentchanges: The "patrolled" flag only exists in the recentchanges table, so changes to MediaWiki's database structure would be required first. The bug for that is probably T19237.

If it's about being able to query recentchanges by rev_id: There would first need to be an index on the rc_this_oldid field. I don't know if a bug for that actually exists yet.

If it's about seeing "patrolled" status of revisions that are no longer in recentchanges

Yeah, I think this is it: I want the status for any given revision, be it recent or not.
https://pt.wikipedia.org/w/api.php?action=query&somequery=cool

{
    "query": {
        "12345": {
            "patrolled": true
        },
        "6789": {
            "patrolled": false
        },
        ...
    }
}
Ricordisamoa added a subscriber: Ricordisamoa.
Restricted Application added a subscriber: Luke081515. · View Herald TranscriptOct 4 2016, 4:38 PM
Dalba added a subscriber: Dalba.Wed, Nov 28, 6:01 AM