Page MenuHomePhabricator

Add edit tags for each type of media for Hashtags tool
Open, Needs TriagePublic

Description

In the parent task, a couple of edit tags were added to facilitate tracking of additions and removals of media of any type in an edit.

The Hashtags tool has recently acquired a similar feature to support media-related campaigns like #WPWP. In this case, however, campaign organizers would like to distinguish between different types of media being added, so they can perform queries like "look up all edits with hashtag #WPWP that add an image." The Hashtags implementation essentially watches the recentchange EventStream and, at each change, fetches and compares the types of all media in an article before and after the change.

It would be great if the tool could be ported to use the new tags instead of this custom logic. For that to happen, we probably need at least two things:

  1. There should be different tags for each media type (e.g. mw-add-image, mw-add-video, mw-add-audio).
  2. Ideally, the tags should also be added to the recentchange stream for ease of consumption. I'm mentioning this for completeness but it should probably be its own separate task.

Would it make sense to add these new tags?