Page MenuHomePhabricator

[S] Create an initial service to lookup scan rows from the database
Closed, ResolvedPublic

Description

A service should be created that allows selecting and finding rows in the mediamoderation_scan table. This service should have a descriptive name and could be called MediaModerationDatabaseLookup.

This service will be used by T350864: [M] Create a service to manage rows in the mediamoderation_scan table to determine whether a SHA-1 already exists in the table. To prioritise the writing of rows to the DB, this task will be limited to creating a service that checks if a file (found by it's SHA-1) exists in the mediamoderation_scan table. This service will be expanded in future tasks once the exact requirements for it are known.

Acceptance criteria
  • A service is created that allows checking if a SHA-1 exists in the mediamoderation_scan
  • This service should be fully tested to ensure reliability.

Related Objects

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

Event Timeline

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

[mediawiki/extensions/MediaModeration@master] Create MediaModerationDatabaseLookup service

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

Change 973854 merged by jenkins-bot:

[mediawiki/extensions/MediaModeration@master] Create MediaModerationDatabaseLookup service

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

I don't think this can be QA'd and will be covered by the QA of other tickets, so moving this to done.

Dreamy_Jazz updated the task description. (Show Details)