Last modified: 2011-12-06 01:28:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21314, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19314 - allow list=usercontribs to be a generator in certain circumstances
allow list=usercontribs to be a generator in certain circumstances
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.16.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 14027
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-20 22:15 UTC by Splarka
Modified: 2011-12-06 01:28 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Splarka 2009-06-20 22:15:44 UTC
Useful, for example, with:

&action=query&generator=usercontribs&gucuser=Splarka&prop=revisions&rvtoken=rollback
Comment 1 Sam Reed (reedy) 2010-01-24 00:15:33 UTC
Is there a "set" way of making it a generator?

Seemingly seems to finish returning a page set...? And using that for storing things?
Comment 2 Roan Kattouw 2010-01-24 10:15:01 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links