Page MenuHomePhabricator

Image result received with missing data
Closed, ResolvedPublic

Description

On a fresh install with new images, I received a batch of results with one result missing some data:

{
    "ns": 6,
    "title": "File:Foggy mountain with tree.jpg",
    "missing": true,
    "known": true,
    "imagerepository": "local",
    "imageinfo": [
        {
            "thumburl": "http://default.web.mw.localhost:8080/mediawiki/images/docker/default/4/40/Foggy_mountain_with_tree.jpg",
            "thumbwidth": 555,
            "thumbheight": 720,
            "url": "http://default.web.mw.localhost:8080/mediawiki/images/docker/default/4/40/Foggy_mountain_with_tree.jpg",
            "descriptionurl": "http://default.web.mw.localhost:8080/mediawiki/index.php?title=File:Foggy_mountain_with_tree.jpg"
        }
    ]
},

The imagelabel and pageid properties are missing. This image was uploaded with all the others and the filepage exists, so I'm not sure what's different.

As discussed in Slack, I'm going to improve the logic in the JS a bit to make sure any results without all the necessary are removed before any UI is built for them.

Details

Related Gerrit Patches:
mediawiki/extensions/MachineVision : masterFilter out images with missing data

Event Timeline

AnneT created this task.Nov 6 2019, 4:28 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 6 2019, 4:28 PM
AnneT claimed this task.Nov 6 2019, 5:10 PM

Change 549122 had a related patch set uploaded (by Anne Tomasevich; owner: Anne Tomasevich):
[mediawiki/extensions/MachineVision@master] Filter out images with missing data

https://gerrit.wikimedia.org/r/549122

Change 549122 merged by jenkins-bot:
[mediawiki/extensions/MachineVision@master] Filter out images with missing data

https://gerrit.wikimedia.org/r/549122

AnneT moved this task from Backlog to Done on the MachineVision board.Nov 6 2019, 10:11 PM
Mholloway closed this task as Resolved.Nov 21 2019, 3:36 PM