Last modified: 2011-06-24 17:10:47 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 T30963, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28963 - Add langbacklinks query module to the api
Add langbacklinks query module to the api
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.20.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-13 20:13 UTC by db [inactive,noenotif]
Modified: 2011-06-24 17:10 UTC (History)
4 users (show)

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


Attachments

Description db [inactive,noenotif] 2011-05-13 20:13:01 UTC
It can be helpful, to find pages which links to a specific language or language and title.

(like iwbacklinks, but with the langlinks table)

prefix: lbl
* lbllang
* lbltitle
* lblcontinue
* lbllimit
* lblprop with lllang|lltitle (default) and url

Thanks.
Comment 1 Sam Reed (reedy) 2011-05-13 21:27:33 UTC
--
-- Track interlanguage links
--
CREATE TABLE /*_*/langlinks (
  -- page_id of the referring page
  ll_from int unsigned NOT NULL default 0,

  -- Language code of the target
  ll_lang varbinary(20) NOT NULL default '',

  -- Title of the target, including namespace
  ll_title varchar(255) binary NOT NULL default ''
) /*$wgDBTableOptions*/;

CREATE UNIQUE INDEX /*i*/ll_from ON /*_*/langlinks (ll_from, ll_lang);
CREATE INDEX /*i*/ll_lang ON /*_*/langlinks (ll_lang, ll_title);



It seems we're probably missing an index or 2 to be able to do do all these possible combinations nicely...

Though, looking at the IWBacklinks module, if you're wanting to filter on title, you've got to provide a prefix (in this case language)


Probably not going to be that bad, by putting some common restrictions
Comment 2 Sam Reed (reedy) 2011-05-13 22:02:37 UTC
Don't think this needs to block.

I'll look at it maybe tomorrow and then will know
Comment 3 Sam Reed (reedy) 2011-05-14 12:16:12 UTC
r88047 and it's followups

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


Navigation
Links