Page MenuHomePhabricator

API responses are missing coordinates of images
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:
Request https://commons.wikimedia.org/w/api.php?action=query&pageids=54600329&prop=coordinates

Actual Results:

{
    "batchcomplete": "",
    "query": {
        "pages": {
            "54600329": {
                "pageid": 54600329,
                "ns": 6,
                "title": "File:Chocho\u0142\u00f3w , Poland - panoramio (2).jpg"
            }
        }
    }
}

Expected Results:
"coordinates" field in page object

Additional information:

{
    "batchcomplete": "",
    "query": {
        "pages": {
            "54600329": {
                "pageid": 54600329,
                "ns": 6,
                "title": "File:Chocho\u0142\u00f3w , Poland - panoramio (2).jpg",
                "index": -1
            },
            "54600387": {
                "pageid": 54600387,
                "ns": 6,
                "title": "File:Chocho\u0142\u00f3w , Poland - panoramio (7).jpg",
                "index": 0,
                "coordinates": [
                    {
                        "lat": 49.370504,
                        "lon": 19.816909,
                        "primary": "",
                        "globe": "earth"
                    }
                ]
            }
        }
    }
}

Event Timeline

EBernhardson subscribed.

search document building[1] is still finding the coordinates, so geodata is appropriately parsing the coordinates and injecting them into the parser output. I also verified in the prod db that geo_tags does not contain any rows for matching gt_page_id. This puts the error somewhere in the table updates. I'm not sure whats going on, but seems should be looked into.

[1] https://commons.wikimedia.org/w/api.php?action=query&prop=cirrusbuilddoc&titles=File:Chocho%C5%82%C3%B3w_,_Poland_-_panoramio_(2).jpg

DB111 claimed this task.
DB111 subscribed.

Sometimes like in this case a null edit (pressing "Edit" + "Publish changes") fixes this.