Last modified: 2014-10-26 10:45:27 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 T72025, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70025 - VisualEditor: Category suggestion lists no longer existing categories
VisualEditor: Category suggestion lists no longer existing categories
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Normal minor
: VE-deploy-2014-08-28
Assigned To: Derk-Jan Hartman
:
: 69927 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-26 09:07 UTC by Derk-Jan Hartman
Modified: 2014-10-26 10:45 UTC (History)
7 users (show)

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


Attachments

Description Derk-Jan Hartman 2014-08-26 09:07:34 UTC
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.
Comment 1 Gerrit Notification Bot 2014-08-26 09:25:58 UTC
Change 156250 had a related patch set uploaded by TheDJ:
Categories: Don't suggest empty or old categories

https://gerrit.wikimedia.org/r/156250
Comment 2 Derk-Jan Hartman 2014-08-26 19:56:41 UTC
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
Comment 3 Gerrit Notification Bot 2014-08-26 20:00:44 UTC
Change 156250 merged by jenkins-bot:
Categories: Don't suggest empty or old categories

https://gerrit.wikimedia.org/r/156250
Comment 4 Derk-Jan Hartman 2014-08-26 20:01:18 UTC
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 ? :)
Comment 5 WhatamIdoing 2014-08-26 23:06:18 UTC
*** Bug 69927 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