Last modified: 2010-05-15 16:03:35 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 T15418, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13418 - eiredirect option doesn't seem to work
eiredirect option doesn't seem to work
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.13.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-18 18:25 UTC by Russell Blau
Modified: 2010-05-15 16:03 UTC (History)
1 user (show)

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


Attachments

Description Russell Blau 2008-03-18 18:25:16 UTC
See example in the URL field.

The documentation is not 100% clear on what eiredirects= is supposed to do, but I believe it is supposed to return a list of pages that transclude a redirect to the eititle page (in this case, there are several redirects that provide aliases for [[Template:Category redirect]], including for example, [[Template:Categoryredirect]]).  If these pages were being returned by the query, they would be in the results of the above link, between [[Category:Lavalers]] and [[Category:Media in New Mexico]], based on the page id for Template:Categoryredirect.  As you can see, the query does not return these pages.

Another possible interpretation is that the query is supposed to return pages that are redirects to a title that transcludes [[Template:Category redirect]] (although I have no idea what the use case for this would be).  Examining the results of the query (including pages before and after the one I've pasted in the URL field), however, indicates that no such pages are being returned, and there do not appear to be any <redirlinks> elements anywhere in the query response.
Comment 1 Roan Kattouw 2008-03-18 19:14:48 UTC
This is because of a flaw in embeddedin: it checks for pages that *embed* eititle and are redirects. However, embeddings through redirects are also listed in the normal embeddedin list (i.e. if [[A]] redirects to [[B]] and [[C]] includes {{A}}, both eititle=B en eititle=C will list A), so eiredirect is completely useless: it's behavior is very much counterintuitive and the intuitive behavior would return duplicate data (and would result in inefficient DB queries, says my gut feeling). For this reason I'll remove eiredirect from embeddedin.
Comment 2 Roan Kattouw 2008-03-18 19:31:29 UTC
(In reply to comment #1)
> For this reason I'll remove eiredirect from
> embeddedin.

Did that in r32125. 


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


Navigation
Links