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.

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. :-(

Abit added a comment.Feb 15 2019, 9:44 PM

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.

Jdforrester-WMF added a comment.EditedFeb 15 2019, 9:59 PM

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

Cparle closed this task as Resolved.Feb 26 2019, 5:33 PM
Cparle claimed this task.

This will be implemented using an abuse filter instead