allow list=usercontribs to be a generator in certain circumstances
Open, NormalPublic

Description

Author: herd

Description:
Useful, for example, with:

&action=query&generator=usercontribs&gucuser=Splarka&prop=revisions&rvtoken=rollback


Version: 1.16.x
Severity: enhancement

Details

Reference
bz19314
bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz19314.
bzimport added a subscriber: Unknown Object (MLST).

Is there a "set" way of making it a generator?

Seemingly seems to finish returning a page set...? And using that for storing things?

Yes, you need to fill a PageSet object with the revisions generated by usercontribs. However, there are no existing generators that generate revisions rather than pages because ApiPageSet::processDbRow() only supports titles at this point. However, ApiPageSet does support loading from revids through populateFromRevisionIDs(), so adding an equivalent of processDbRow() for revisions or detecting the difference between the two in processDbRow() shouldn't be too difficult.

Tgr added a subscriber: Tgr.Jan 10 2015, 11:11 PM

However, there are no existing generators that generate revisions rather than pages

There is deletedrevisions/alldeletedrevisions now, so I suppose this is now easier?

usercontribs does not expose flagged state (for the FlagRev extension), so using it as a generator would be required for custom patrolling interfaces on wikis with FlagRev.

Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Feb 20 2015, 7:49 PM