Page MenuHomePhabricator

Save rejected statements to ISA database
Closed, ResolvedPublicFeature

Description

Feature summary:
We need to create a new API route for rejecting a suggested statement so this can be stored in the ISA database. This new route should then be called as soon as a user clicks on the reject button.

e.g. /api/reject-suggestion

Use POST for the new route, with a JSON payload which includes all the details needed for the new entry in the suggestions table:

e.g.

{
  "file": "Example.jpg",
  "campaign_id": 1,
  "depict_item": "Q123",
  "google_vision": true,
  "google_vision_confidence": 0.6789
}

A rejection should be saved with update_status = 0. Make sure you also set update_status to 1 when you "accept" a suggestion.

NOTE: Once thorough testing is complete, we will implement T315668: Submit reviews back to MachineVision service. This patch only needs to cover saving the rejection to the ISA database.

Event Timeline

NavinoEvans triaged this task as High priority.
NavinoEvans created this task.
NavinoEvans added a subscriber: Sebastian_Berlin-WMSE.
NavinoEvans renamed this task from Save rejected statements in ISA database to Save rejected statements to ISA database.Aug 24 2022, 10:25 PM

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

[labs/tools/Isa@master] Save rejected statements to ISA database

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

Change 826927 merged by jenkins-bot:

[labs/tools/Isa@master] Save rejected statements to ISA database

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

NavinoEvans moved this task from Review to Merged on the ISA board.