Page MenuHomePhabricator

Make the email subject unique for MediaModeration emails
Closed, ResolvedPublic1 Estimated Story Points

Description

The MediaModeration extension sends an email when a SHA-1 for a file matches PhotoDNA. However, the subject for the email is pre-defined and does not include anything that would make each subject unique. This means that the inbox of the email address that receives the emails such that new reports are considered replies.

Discussing with those with access to the email inbox, they would prefer that the email subject be unique so that each report is considered a new email by the email inbox.

Acceptance criteria
  • Make the subject unique for each report

Event Timeline

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

[mediawiki/extensions/MediaModeration@master] [WIP] Make the email subject unique for positive match emails

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

Dreamy_Jazz set the point value for this task to 1.Jan 24 2024, 12:54 PM

Change 992639 merged by jenkins-bot:

[mediawiki/extensions/MediaModeration@master] Make the email subject unique for positive match emails

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

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

[mediawiki/extensions/MediaModeration@wmf/1.42.0-wmf.15] Make the email subject unique for positive match emails

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

Change 993500 merged by jenkins-bot:

[mediawiki/extensions/MediaModeration@wmf/1.42.0-wmf.15] Make the email subject unique for positive match emails

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

Mentioned in SAL (#wikimedia-operations) [2024-01-29T14:47:36Z] <dreamyjazz@deploy2002> Started scap: Backport for [[gerrit:993500|Make the email subject unique for positive match emails (T355752)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-29T14:51:50Z] <dreamyjazz@deploy2002> sync-world aborted: Backport for [[gerrit:993500|Make the email subject unique for positive match emails (T355752)]] (duration: 04m 13s)

Mentioned in SAL (#wikimedia-operations) [2024-01-29T14:52:41Z] <dreamyjazz@deploy2002> Started scap: Backport for [[gerrit:993500|Make the email subject unique for positive match emails (T355752)]]

Mentioned in SAL (#wikimedia-operations) [2024-01-29T15:04:17Z] <dreamyjazz@deploy2002> dreamyjazz: Backport for [[gerrit:993500|Make the email subject unique for positive match emails (T355752)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-01-29T15:13:59Z] <dreamyjazz@deploy2002> Finished scap: Backport for [[gerrit:993500|Make the email subject unique for positive match emails (T355752)]] (duration: 21m 21s)

I have verified that the new code has been implemented and is functioning and displaying as expected...
Below you will see a screenshot that shows the Subject line with the date/time stamp for the SHA-1.
Thank you @Dreamy_Jazz

image.png (265×1 px, 34 KB)