Page MenuHomePhabricator

Search drop down for depicts tags should not include items for categories
Closed, ResolvedPublic

Description

The drop-down list of possible items to add as depict tags should not include categories.

Screen Shot 2019-02-15 at 1.27.42 PM.png (470×1 px, 72 KB)

Event Timeline

Abit triaged this task as High priority.Feb 15 2019, 9:29 PM
Abit created this task.

Those aren't categories, those are Wikidata items containing the concept of Commons categories. :-(

Those aren't categories, those are Wikidata items containing the concept of Commons categories. :-(

Right, sorry. Nevertheless, you should not be able to select them, and they should not appear in the drop down menu.

Excluding them is going to be expensive and slow (pipe the [[https://www.wikidata.org/w/api.php?action=wbsearchentities&search=Cat&language=en&props=|wbsearchentities]] into [[https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q4167836%7CQ146%7CQ14819232%7CQ32566%7CQ5159797%7CQ14849060%7CQ912640&props=claims|wbgetentities]] looking for P31 -> Q4167836 and filtering them out.

Note however that I don't get the category results when searching the real Wikidata – possibly there's a hack on the search config to not return those?

@Addshore - any thoughts on what @Jdforrester-WMF has noticed about wikidata? Is there a simple config thing we could do?

Ah. I think @Jdforrester-WMF is actually wrong here - they *do* appear on wikidata, you just need to type more because there are lots of other things beginning with 'cat' on wikidata

Screenshot_2019-02-25 Douglas Adams.png (519×867 px, 69 KB)

Cparle claimed this task.

This will be implemented using an abuse filter instead