Page MenuHomePhabricator

Add counts of images with labels needing review (overall and for the current user) to ApiQueryImageLabels
Closed, ResolvedPublic

Description

Update ApiQueryImageLabels to provide for querying and adding counts of:

  • the overal total number of images with unreviewed labels
  • the total number of images with unreviewed labels uploaded by the current user (for non-anons)

to a new field in the response.

Add a new API parameter to signal that these totals should be calculated and included.

Event Timeline

Mholloway created this task.Oct 2 2019, 3:29 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 2 2019, 3:29 PM
LGoto triaged this task as Medium priority.Oct 2 2019, 3:34 PM
LGoto moved this task from Needs triage to Upcoming on the Product-Infrastructure-Team-Backlog board.
Mholloway raised the priority of this task from Medium to High.

Bumping to high and picking this up because it's blocking frontend work.

Change 543503 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[mediawiki/extensions/MachineVision@master] Add unreviewed image count support to API modules

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

Change 543665 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[mediawiki/extensions/MachineVision@master] ApiUnreviewedImageCounts: Convert values to integers

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

Change 543503 merged by jenkins-bot:
[mediawiki/extensions/MachineVision@master] Add unreviewed image count support to API modules

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

Change 543665 merged by jenkins-bot:
[mediawiki/extensions/MachineVision@master] ApiUnreviewedImageCounts: Convert values to integers

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

Change 544065 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[mediawiki/extensions/MachineVision@master] Stop reporting overall unreviewed image totals

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

Change 544065 merged by jenkins-bot:
[mediawiki/extensions/MachineVision@master] Stop reporting overall unreviewed image totals

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