As an Experienced Contributor, I want to receive a notification if there is an image suggestion for an unillustrated article that I've edited or watched, so I can use it to illustrate those articles.
Acceptance Criteria
[] Image suggestions for the queue are generated using the MediaSearch index and incorporating suggestions via the Image Suggestions Algorithm as per T286562
[] Notifications are only sent for images with "high" and "medium" confidence from the Image Suggestions algorithm; and for images above **TBD confidence level ** from the MediaSearch index (see T283865)
[] Notifications are only sent for unillustrated articles, as determined via the Research team's method (likely using weighted tags via the search index)
[] Notifications are sent weekly Monday at 8am UTC/GMT-8 time zone (for everyone, not based on individual users’ time zones)
[] Notifications are sent to the following users:
First set of users: Users with at least 500 edits who have added an image to an article in the past 30 days (if possible, see T292312)
## If user has received <=2 image notifications in a given week,
### Then check for articles on the user’s watchlist that the user edited in the last 30 days (if possible, see T292312)
### If the user has already received a notification for the article ID, skip to the next article
### Otherwise, match one suggestion and send the notification
### If image matches remain, then check for other articles on users watchlist
### If the user has already received a notification for the article ID, skip to the next article
### Otherwise, match one suggestion and send the notification
If more image matches remain, we’ll notify the second set of users: Users with at least 500 edits who have not added an image to an article in the past 30 days (if possible, see T292312)
## If user has received <=2 image notifications in a given week,
### Then check for articles on the user’s watchlist that the user edited in the last 30 days (if possible, see T292312)
### If the user has already received a notification for the article ID, skip to the next article
### Otherwise, match one suggestion and send the notification
### If more image matches remain, then check for other articles on users watchlist
### If the user has already received a notification for the article ID, skip to the next article
### Otherwise, match one suggestion and send the notification.
[] Notifications are generated weekly until image matches are exhausted or applicable users are exhausted. The order of notifications in the list is sent randomly.
[] Article-image matches are removed from the queue of notifications to be sent once the image has been placed in the matching article
[] Users should not receive a notification for the same article-image match more than once, but the same match can be sent to a different user (as long as it's not already been placed in the article).
[] Users should not receive more than 3 notifications per week.
[] Notifications are not sent to users who have opted out of image suggestions notifications (see T292146).
[] **TBD: How often do we need to run a script to add new matches based on new uploads?**
**Note** This ticket does not include building the UI of the notification itself, which will be handled in T292310.