User:Ostrzyciel/GSoC 2020

This is the page for documenting my internship at Wikimedia during Google Summer of Code 2020.

Project description
A valuable addition to the RecentChanges filtering interface would be a filter that would show edits that were "reverted" or "undone". The task is about adding such a filter. We will want to identify the edit that is being reverted and tag it with a "reverted" tag.

We'll need to detect when a revision is being rolled back / undone, and then apply a tag to the revision that it is rolling back. This involves defining a tag and implementing a hook which can apply that tag in certain conditions.

Bi-weekly reports

 * Week 2, May 20th
 * Week 4, June 3rd

Work log

 * ✅ Establish the definition of a "reverted" edit. Initial technical research.
 * Implement the reverted tag.
 * Create the EditResult class
 * Implement marking reverts based on undo and rollback actions
 * Refactor hooks used in PageUpdater to use the new data
 * Write tests
 * Implement the actual edit tag and mark reverted edits
 * Implement SHA1-based revert detection
 * Save additional information about the revert in the edit tag
 * Write a maintenance script for back-filling the reverted tag