Page MenuHomePhabricator

Expand the database lookup service to get rows from the mediamoderation_scan table
Closed, ResolvedPublic2 Estimated Story Points

Description

The MediaModerationDatabaseLookup service added in T351112: [S] Create an initial service to lookup scan rows from the database should be expanded so that it can provide a given number of mediamoderation_scan rows that match certain criteria related to the scan status and when the last scan timestamp.

Acceptance criteria
  • The MediaModerationDatabaseLookup service should provide the necessary methods to get files listed in the mediamoderation_scan that need a scan, or have been last scanned before a specific date.
  • These new methods should be properly tested.

Related Objects

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

Event Timeline

Dreamy_Jazz set the point value for this task to 2.Nov 20 2023, 4:42 PM

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

[mediawiki/extensions/MediaModeration@master] [Very WIP] Update MediaModerationDatabaseLookup

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

Change 979433 merged by jenkins-bot:

[mediawiki/extensions/MediaModeration@master] Update MediaModerationDatabaseLookup

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

I am unsure if this ticket can be effectively QA'd because this service is currently unused and therefore there is no way reasonably test this. I've moved this to QA for that decision to be made by QA Engineers. If this ticket doesn't get QA, it should be indirectly QA'd by QA on T351399: Create a maintenance script to automatically scan files listed in mediamoderation_scan (where this service will be used).

I concur with Dreamy_Jazz's comment regarding QA and therefore am pushing this ticket to Done.