Page MenuHomePhabricator

Participation results per country in a WLX campaign display wrongly
Open, HighPublicBUG REPORT

Description

Here is an example of such a campaign

https://tools.wmflabs.org/isa/campaigns/39

In the result area, there are
410 contributions of "unknown" country
Then
328 contributions from "Ghana" and so on

But... it is not logical that so many records are tagged unknown country when the biggest majority of images are related to a country. I believe it indicates "unknown" when the person does not choose to work on a specific country. But the country associated by the image is known.
So the information displayed here is not the proper information. That should not be "the "unknown country" selected by the player, but it should be the "country the image is from".
Ultimately, there should normally be VERY VERY VERY few "unknown country". Only those images that are REALLY tagged with "no country" at all.
If a player has not selected a country, but the image he improved is from Ghana, then it should be added to the "Ghana" country, not to the unknown country.

Event Timeline

@NavinoEvans It seems to be a problem in using the image's category to determine the country name. Taking https://commons.wikimedia.org/wiki/File:Fueente_de_9184499.jpg as an eample, it recognizes "Images from Wiki Loves Monuments 2017 in an unknown country", but not "Images from Wiki Loves Monuments 2017 in Spain"

NavinoEvans moved this task from Backlog to Incoming Bugs on the ISA board.

@NavinoEvans The name of the country we are saving to the database is taken from the category only if the image category have something like Wiki Loves Campaign or Wiki Loves Country. If we want to replace the unkown country part, then we should parse all the categories of the image to get the country.
Example : https://commons.wikimedia.org/wiki/File:Konparu-sakae-east.jpg

Category : Sakae Mori no Chikagai | Cafe Konparu (Nagoya) | April 2019 in Nagoya | Pages with local coordinates and missing SDC coordinates | Media with locations | CC-BY-SA-4.0 | Self-published work | Japan photographs taken on 2019-04-05 | Pages with maps

would result in selecting country as Japan after parsing categories.
Any thoughts on this would be helpful ?