Page MenuHomePhabricator

Query isn't fetching a full 10 images
Closed, ResolvedPublic

Description

When I run the unreviewed image query, with or without a user ID passed in, I get back an unpredictable number of results, usually 2-6. This is happening on this patch, where only 1 query should ever be running at a time.

The total # of items I have locally is ~30. In addition to that, I have a bunch of deleted images, where I deleted the filepage for an image I uploaded.

Steps to Reproduce:

  • Check out the patch linked above locally
  • Upload a few images (you really need more than 10 to test this thoroughly...)
  • Delete some of their filepages
  • Load the special page and observe the total number of images found by the query, and the number of results you're getting per API call

Actual Results:

You'll see fewer than 10 images per API call

Expected Results:

Each API call returns 10 images, until you run out of images on the final call

Event Timeline

The patch mentioned in this task has been merged so you can see this on master now.

Change 545592 had a related patch set uploaded (by MSantos; owner: MSantos):
[mediawiki/extensions/MachineVision@master] WIP: add hook onFileDeleteComplete to clean data

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

Change 545592 merged by jenkins-bot:
[mediawiki/extensions/MachineVision@master] add hook onFileDeleteComplete to clean data

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