Last modified: 2008-01-28 13:58:24 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 T14816, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 12816 - API function to return random page(s) in selected namespace(s)
API function to return random page(s) in selected namespace(s)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.12.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-28 10:21 UTC by OverlordQ
Modified: 2008-01-28 13:58 UTC (History)
1 user (show)

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


Attachments
ApiQueryRandom (3.76 KB, application/octet-stream)
2008-01-28 10:21 UTC, OverlordQ
Details
Patch to add it to the API (1.10 KB, patch)
2008-01-28 10:22 UTC, OverlordQ
Details

Description OverlordQ 2008-01-28 10:21:26 UTC
Created attachment 4592 [details]
ApiQueryRandom

Basically add the functionality of Special:Random to the API with the addition of a parameter to return more then one result.

I've (tried) to create a working implementation but I'm sure my lack in knowledge of WP internals severely screwed it up. I'll
Comment 1 OverlordQ 2008-01-28 10:22:43 UTC
Created attachment 4593 [details]
Patch to add it to the API
Comment 2 Roan Kattouw 2008-01-28 13:58:24 UTC
Added in r30217.

(In reply to comment #0)
> I've (tried) to create a working implementation but I'm sure my lack in
> knowledge of WP internals severely screwed it up.
Your patch contained some duplicate code and only listed redirects (page_is_redirect != 0 rather than = 0), but I've seen far worse.



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


Navigation
Links