Last modified: 2008-06-29 22:46:50 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 T16675, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14675 - action=query should report redirects explicitly
action=query should report redirects explicitly
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-28 14:50 UTC by Andrew Dunbar
Modified: 2008-06-29 22:46 UTC (History)
4 users (show)

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


Attachments

Description Andrew Dunbar 2008-06-28 14:50:12 UTC
Unless I'm missing something there is no feature for action=query to report which articles were redirects.

There is a "redirects" option which actually resolves any articles which are redirects but this unnecessarily heavyweight.

You can also use "prop=revisions" to look at the wikitext of the article but this is also heavyweight and potentially error prone since the syntax of a # REDIRECT is surprisingly variable.

The redirect data is available at sql query time for no extra cost.
Comment 1 Leslie Hoare 2008-06-28 15:36:02 UTC
Does "prop=info" do what you're asking?
Comment 2 Bryan Tong Minh 2008-06-28 19:09:43 UTC
This is possible, see <http://meta.wikimedia.org/w/api.php?action=query&prop=info&titles=RFP>

<page pageid="50390" ns="0" title="RFP" touched="2008-06-28T14:43:55Z" lastrevid="935917" counter="0" length="42" redirect="" />
Comment 3 Andrew Dunbar 2008-06-28 22:15:50 UTC
Yes prop=info does what I want. I would suggest the documentation be added. So far there is only:

* prop=info (in) *
  Get basic page information such as namespace, title, last touched date, ...

It's hard for us dummies to know that "..." includes redirect info without trial and error.
Comment 4 Roan Kattouw 2008-06-29 22:46:10 UTC
(In reply to comment #3)
> Yes prop=info does what I want. I would suggest the documentation be added. So
> far there is only:
> 
> * prop=info (in) *
>   Get basic page information such as namespace, title, last touched date, ...
> 
> It's hard for us dummies to know that "..." includes redirect info without
> trial and error.
> 

I added it to [[mw:API:Query - Properties#info_.2F_in]]
Comment 5 Roan Kattouw 2008-06-29 22:46:50 UTC
(In reply to comment #4)
> I added it to [[mw:API:Query - Properties#info_.2F_in]]
> 

Argh, should be http://www.mediawiki.org/wiki/API:Query_-_Properties#info_.2F_in

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


Navigation
Links