Last modified: 2008-11-14 21:59:44 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 T9804, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7804 - Namespace filter in Special:Linksearch
Namespace filter in Special:Linksearch
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
LinkSearch (Other open bugs)
unspecified
All All
: Normal enhancement with 9 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
: 8740 10058 11334 16341 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-04 10:19 UTC by BLueFiSH.as from de.wp
Modified: 2008-11-14 21:59 UTC (History)
5 users (show)

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


Attachments
Adds a namespace selector to Special:Linksearch (2.40 KB, patch)
2006-11-04 17:03 UTC, Jelte (WebBoy)
Details

Description BLueFiSH.as from de.wp 2006-11-04 10:19:58 UTC
It would be nice if the output of Spezial:Linksearch can be filtered for the
different namespaces.

e.g. show only the article name space of
http://de.wikipedia.org/wiki/Spezial:Linksearch/%2A.dyndns.org
Comment 1 Jelte (WebBoy) 2006-11-04 17:03:39 UTC
Created attachment 2635 [details]
Adds a namespace selector to Special:Linksearch
Comment 2 Brion Vibber 2006-11-04 22:53:55 UTC
Hopefully this isn't an index problem; on very often-linked sites, picking a rarely appearing namespace 
could require shuffling through the entire link set in the database.
Comment 3 Raimond Spekking 2007-03-05 16:44:21 UTC
Namespace filter added with r20144 


(In reply to comment #1)
> Created an attachment (id=2635) [edit]
> Adds a namespace selector to Special:Linksearch

Have seen your patch too late. But it works similiar

(In reply to comment #2)
> Hopefully this isn't an index problem; on very often-linked sites, picking a
rarely appearing namespace 
> could require shuffling through the entire link set in the database.

If you are unhappy with this implementation, please revert. Another not so
expensive (hopefully) solution is a simple filter main namespace and non main
namespace.
Comment 4 BLueFiSH.as from de.wp 2007-03-05 17:53:27 UTC
thanks for adding the filter, but is has a bug. If you choose talk pages as
filter it shows only talk pages but if you click on "next 50" or "show 500" then
the parameter "namespace=x" is missing in the link.
Comment 5 Raimond Spekking 2007-03-06 07:48:16 UTC
(In reply to comment #4)
> thanks for adding the filter, but is has a bug. If you choose talk pages as
> filter it shows only talk pages but if you click on "next 50" or "show 500" then
> the parameter "namespace=x" is missing in the link.

Fixed with r20159
Comment 6 Raimond Spekking 2007-03-08 16:27:44 UTC
*** Bug 8740 has been marked as a duplicate of this bug. ***
Comment 7 BLueFiSH.as from de.wp 2007-03-21 22:30:26 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > thanks for adding the filter, but is has a bug. If you choose talk pages as
> > filter it shows only talk pages but if you click on "next 50" or "show 500" then
> > the parameter "namespace=x" is missing in the link.
> 
> Fixed with r20159

it isn't fixed. i can reproduce this behaviour. please fix. thx
Comment 8 Raimond Spekking 2007-03-21 22:32:14 UTC
It is fixed, but the Wikimedia servers are still on release r20145 (see
[[Special:Version]]. A bigger schema change is pending. Be patient please :-)
Comment 9 Domas Mituzas 2007-03-21 23:32:46 UTC
for the record, reverted, non-trivial optimization to make it happen. 
Comment 10 BLueFiSH.as from de.wp 2007-03-21 23:48:38 UTC
(In reply to comment #9)
> for the record, reverted, non-trivial optimization to make it happen. 

but in general it worked very fine. (i was already wondering why it since some
minutes don't work at all..)
Comment 11 Raimond Spekking 2007-05-08 21:20:08 UTC
Fixed with r21543, but due to MiserMode not available for WMF Wikis :-(
Comment 12 BLueFiSH.as from de.wp 2007-05-08 21:41:29 UTC
so we have a namespace filter in Special:Contributions, in Special:Recentchanges
and in Special:Watchlist (and more?) but it is not possible in
Special:Linksearch? hardly understandable.
Comment 13 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-05-08 21:52:19 UTC
Presumably the appropriate table isn't currently indexed by namespace.
Comment 14 Raimond Spekking 2007-05-29 12:23:40 UTC
*** Bug 10058 has been marked as a duplicate of this bug. ***
Comment 15 Rémi Kaupp 2007-07-14 08:27:14 UTC
Shouldn't this bug be reopened ? This feature doesn't seem to be activated on WMF wikis so far.
Comment 16 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-15 02:05:31 UTC
See comment #11.  The feature exists but has not been activated because it's inefficient due to the structure of the table: the table contains an article ID only, with no namespace stored.

I admit I don't see the inefficiency in the join:

mysql> EXPLAIN SELECT * FROM externallinks WHERE el_index LIKE 'http://com.disney%';
+----+-------------+---------------+-------+---------------+----------+---------+------+------+-------------+
| id | select_type | table         | type  | possible_keys | key      | key_len | ref  | rows | Extra       |
+----+-------------+---------------+-------+---------------+----------+---------+------+------+-------------+
|  1 | SIMPLE      | externallinks | range | el_index      | el_index | 62      | NULL |    4 | Using where | 
+----+-------------+---------------+-------+---------------+----------+---------+------+------+-------------+
1 row in set (0.00 sec)

mysql> EXPLAIN SELECT * FROM externallinks JOIN page  ON (el_from = page_id)  WHERE page_namespace = 0 AND el_index LIKE 'http://com.disney%';
+----+-------------+---------------+--------+--------------------+----------+---------+------------------------------+------+-------------+
| id | select_type | table         | type   | possible_keys      | key      | key_len | ref                          | rows | Extra       |
+----+-------------+---------------+--------+--------------------+----------+---------+------------------------------+------+-------------+
|  1 | SIMPLE      | externallinks | range  | el_from,el_index   | el_index | 62      | NULL                         |    4 | Using where | 
|  1 | SIMPLE      | page          | eq_ref | PRIMARY,name_title | PRIMARY  | 4       | wikidb.externallinks.el_from |    1 | Using where | 
+----+-------------+---------------+--------+--------------------+----------+---------+------------------------------+------+-------------+
2 rows in set (0.00 sec)

But that's another bug.  Feel free to open a new bug requesting that this feature be improved to be efficient enough for inclusion on Wikipedia.
Comment 17 Rémi Kaupp 2007-07-15 08:26:56 UTC
Thank you, this is now bug 10593.
Comment 18 Raimond Spekking 2007-09-14 13:10:51 UTC
*** Bug 11334 has been marked as a duplicate of this bug. ***
Comment 19 Raimond Spekking 2008-11-14 21:59:44 UTC
*** Bug 16341 has been marked as a duplicate of this bug. ***

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


Navigation
Links