Author: herd
Description:
Useful, for example, with:
&action=query&generator=usercontribs&gucuser=Splarka&prop=revisions&rvtoken=rollback
Version: 1.16.x
Severity: enhancement
Author: herd
Description:
Useful, for example, with:
&action=query&generator=usercontribs&gucuser=Splarka&prop=revisions&rvtoken=rollback
Version: 1.16.x
Severity: enhancement
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | Feature | None | T21314 allow list=usercontribs to be a generator in certain circumstances | ||
Open | None | T16027 Implement user generators into the API |
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.
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.