Page MenuHomePhabricator

Eliminate overcategorization when moving images from the root category
Open, Stalled, LowestPublic

Description

When the bot is moving files from the country-root category of monuments to the main category of the appropriate list page, the algorithm seems to be able recognize that the file is in the category of the corresponding monument and remove the root category without adding the main category of the list page (which would be redundant and overcategorizing). E.g. in case of http://commons.wikimedia.org/w/index.php?title=File%3AVod%C3%A1rensk%C3%A1_v%C4%9B%C5%BE%2C_Praha_Vinohrady.JPG&diff=103188284&oldid=103140168 the bot was able to recognize that the "Category:Vinohradská vodárna" is a direct subcategory of "Category:Cultural monuments in Vinohrady (Prague)" and that's why removed the category "Category:Cultural monuments in the Czech Republic" but didn't add the category "Category:Cultural monuments in Vinohrady (Prague)"

However, in case of https://commons.wikimedia.org/w/index.php?title=File%3APraha_Kunratice_kostel_v_noci_1.JPG&diff=103699116&oldid=103604348 the bot was not able to recognize that the category "Category:Church of Saint James the Greater (Kunratice)" is a subcategory of "Category:Cultural monuments in Prague" through "Category:Cultural monuments in Kunratice (Prague)" and added the category "Category:Cultural monuments in Prague". Thus, in some cases the bot is able to avoid overcategorization, in some (similar but more complicated) cases it isn't able. Is seems be able to recognize that the category of the monument is a direct subcategory of the main category of the list page but no able to recognize that the category of the monument is a undirect subcategory of the main category of the list page.


Version: unspecified
Severity: normal

Details

Reference
bz55644

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:29 AM
bzimport set Reference to bz55644.
bzimport added a subscriber: Unknown Object (MLST).
Aklapper lowered the priority of this task from Low to Lowest.Dec 29 2014, 12:35 AM

They are possibly dupes. Possibly the other one is just talking about one level up whereas this one is talking about multiple. On the other hand if that is the case then isn't the other one resolved?