Page MenuHomePhabricator

[M] Create a service to manage rows in the mediamoderation_scan table
Closed, ResolvedPublic

Description

A service should be created that allows inserting new rows and updating existing rows in the mediamoderation_scan table. This service should have a descriptive name and could be called MediaModerationDatabaseManager.

This service will be used by T350863: Create maintenance script to import all existing images to mediamoderation_scan table and T350323: Write an empty row to scan table on file upload for insertion of new rows, and the processing maintenance script to update the rows with the status of the scans on images.

Acceptance criteria
  • A service is created that allows inserting and updating rows in the mediamoderation_scan table
  • This service be fully tested to ensure reliability

Related Objects

StatusSubtypeAssignedTask
OpenNone
DuplicateNone
Resolvedkostajh
ResolvedNone
ResolvedTchanders
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
OpenNone
ResolvedBUG REPORTDreamy_Jazz
ResolvedDreamy_Jazz
Resolvedkostajh
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz

Event Timeline

Dreamy_Jazz renamed this task from Create a service to manage rows in the mediamoderation_scan table to [M] Create a service to manage rows in the mediamoderation_scan table.Nov 9 2023, 2:56 PM

Change 973363 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/MediaModeration@master] Add MediaModerationDatabaseManager and Lookup services

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

Change 973363 merged by jenkins-bot:

[mediawiki/extensions/MediaModeration@master] Add MediaModerationDatabaseManager service

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

Similar to T351112: [S] Create an initial service to lookup scan rows from the database, there is no way to QA this directly and this will be covered in future tickets. Therefore moving to done.

Dreamy_Jazz updated the task description. (Show Details)