Page MenuHomePhabricator

Only include Google Vision suggestions with status "unreviewed"
Closed, ResolvedPublicBUG REPORT

Description

This is to remove suggestions that have been marked as rejected by the Google Vision api (i.e. nothing to do with rejected suggestions within ISA)

Line 28 of machine-vision.js we need to change:

.filter(function(suggestion) {return suggestion.state !== 'accepted';})

To:

.filter(function(suggestion) {return suggestion.state === 'unreviewed';})
NOTE: This will also filter out the "withheld" and "not-displayed" statuses that also need to be removed.

Event Timeline

NavinoEvans renamed this task from Don't include Google Vision with status "rejected" to Don't include Google Vision suggestions with status "rejected".Aug 17 2022, 8:24 AM
NavinoEvans triaged this task as High priority.
NavinoEvans created this task.
Eugene233 reopened this task as Open.
Eugene233 claimed this task.

Change 824483 had a related patch set uploaded (by Eugene233; author: Eugene233):

[labs/tools/Isa@master] Don't include Google Vision suggestions with status "rejected"

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

My apologies @Eugene233, I just realised we need to expand this a little bit. We actually have "withheld" and "not-displayed" statuses that we should remove as well.

So we're actually only keeping the "unreviewed" status for now.

So lets make the filter function into

.filter(function(suggestion) {return suggestion.state === 'unreviewed';})
NavinoEvans renamed this task from Don't include Google Vision suggestions with status "rejected" to Only include Google Vision suggestions with status "unreviewed".Aug 22 2022, 11:25 AM

Change 824483 merged by jenkins-bot:

[labs/tools/Isa@master] Don't include Google Vision suggestions with status "rejected"

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