Page MenuHomePhabricator

Create a service that sends an email when a file matches
Closed, ResolvedPublic2 Estimated Story Points

Description

A service should be created that allows emailing a provided email address when a file is determined to be a match by PhotoDNA. This service should meet the following requirements:

  • The email is sent containing the filename, and if relevant, the specific version of the file that was determined to be a match.
  • If the email fails to send or for any other error, this should be logged so that the email can be re-attempted using a maintenance script created in T351406: Create a maintenance script to re-send emails for files determined to be a match through PhotoDNA
  • The email should handle a SHA-1 that has multiple filenames and/or revisions under a given filename without overloading the email with too much text.
Acceptance criteria
  • A service that meets the requirements above should be created
  • This service should be fully tested

Related Objects

StatusSubtypeAssignedTask
Resolved Dreamy_Jazz
OpenNone
OpenNone
DuplicateNone
Resolvedkostajh
ResolvedNone
ResolvedTchanders
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz
ResolvedBUG REPORT Dreamy_Jazz
Resolved Dreamy_Jazz
ResolvedBUG REPORT Dreamy_Jazz
DeclinedPRODUCTION ERRORNone
ResolvedTchanders
Resolved Dreamy_Jazz
ResolvedBUG REPORT Dreamy_Jazz
Resolved Dreamy_Jazz
ResolvedNone
Resolved Dreamy_Jazz
Resolvedkostajh
Resolvedkostajh
ResolvedSTran
Resolvedkostajh
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz
Resolved Dreamy_Jazz

Event Timeline

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

[mediawiki/extensions/MediaModeration@master] [Very WIP] Add MediaModerationEmailer service

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

Change 985172 merged by jenkins-bot:

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

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

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

[mediawiki/extensions/MediaModeration@master] Follow-up changes for MediaModerationEmailer service

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

Change 992683 merged by jenkins-bot:

[mediawiki/extensions/MediaModeration@master] Follow-up changes for MediaModerationEmailer service

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

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

[mediawiki/extensions/MediaModeration@wmf/1.42.0-wmf.15] Follow-up changes for MediaModerationEmailer service

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

Change 993502 abandoned by Dreamy Jazz:

[mediawiki/extensions/MediaModeration@wmf/1.42.0-wmf.15] Follow-up changes for MediaModerationEmailer service

Reason:

Not going to be done in the upcoming backport window and isn't necessarily to be backported.

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

I have verified that the new code has been implemented and is functioning and displaying as expected...
Below you will see 2 screenshots that show the contents of the email for an image file...
Thank you @Dreamy_Jazz


A screenshot in Plain Text format:

image.png (719×1 px, 126 KB)


A screenshot in Source format:

image.png (980×1 px, 160 KB)