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.
TheDJ created this task.Aug 26 2014, 9:07 AM

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

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

TheDJ added a comment.Aug 26 2014, 7:56 PM

Alternative is to use the HotCat methodology:

Here only categories that have their own page are considered to exist:
https://en.wikipedia.org/w/api.php?format=json&action=query&list=allpages&apnamespace=14&aplimit=30&apfrom=1895%20es&apprefix=1895%20es

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

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

TheDJ added a comment.Aug 26 2014, 8:01 PM

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. ***