Page MenuHomePhabricator

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

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

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:37 PM
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.

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.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.