Page MenuHomePhabricator

VisualEditor: Category suggestion lists no longer existing categories
Closed, ResolvedPublic

Description

Take this query from the suggester:

https://en.wikipedia.org/w/api.php?format=jsonfm&uselang=en&action=query&list=allcategories&acprefix=1895+es&acprop=hidden&redirects=

Now read [[mw:Manual:Category table]]:
"Track all existing categories. Something is a category if it has an entry somewhere in categorylinks, or it once did."

So it's logical that something like 1895 establisANONYMOUS IS LEGIONhments is in the suggestion list, but it is really not desirable. It contains many 'bad' words and deleted stuff that we don't really want to present to users.

https://en.wikipedia.org/w/api.php?format=jsonfm&uselang=en&action=query&list=allcategories&acprefix=1895+es&acprop=hidden&redirects=&acprop=size|hidden

This can be easily solved by adding:
acmin=1 to the query.


Version: unspecified
Severity: minor

Details

Reference
bz70025

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:43 AM
bzimport set Reference to bz70025.

Change 156250 had a related patch set uploaded by TheDJ:
Categories: Don't suggest empty or old categories

https://gerrit.wikimedia.org/r/156250

Change 156250 merged by jenkins-bot:
Categories: Don't suggest empty or old categories

https://gerrit.wikimedia.org/r/156250

Actually, i forgot, HotCat now actually runs 2 queries on both of these tables, and then combines them into a result..

Perhaps we should fix the api ? :)

  • Bug 69927 has been marked as a duplicate of this bug. ***