Page MenuHomePhabricator

API for reverts for SE v3
Closed, ResolvedPublic5 Estimated Story Points

Description

Number of SE-tagged reverts ever.

It has been suggested that the way to do this is to record each successful edit in a new table (revision id, wiki name, etc), and then if a revert is detected, check whether it matches one of the revisions in the edits table, and if so, count it as a proper revert.

The total revert count should then be sent in the API response, along with the total edit count.

Event Timeline

Charlotte updated the task description. (Show Details)
Charlotte renamed this task from Endpoint for reverts for SE v3 to API for reverts for SE v3.Oct 8 2019, 4:52 PM
Charlotte set the point value for this task to 5.Oct 22 2019, 4:06 PM

Sorry I posted a comment by accident. Should post that comment on the edit streak API ticket.

Tagging this with Schema-change per https://wikitech.wikimedia.org/wiki/Schema_changes since the proposed change for this one does involve a true schema change: adding a column to wikimedia_editor_tasks_counts.

Change 546312 had a related patch set uploaded (by Mholloway; owner: Sharvaniharan):
[mediawiki/extensions/WikimediaEditorTasks@master] Api provisions for revert count

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

Change 546312 merged by jenkins-bot:
[mediawiki/extensions/WikimediaEditorTasks@master] Api provisions for revert count

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

Mentioned in SAL (#wikimedia-operations) [2019-11-04T15:43:55Z] <mholloway-shell@deploy1001> Synchronized wmf-config/InitialiseSettings-labs.php: Enable revert counts on beta (T234955) (duration: 00m 53s)

Mentioned in SAL (#wikimedia-operations) [2019-11-05T15:37:38Z] <jynus> deploying schema change on x1 T234955

Change 548832 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[operations/mediawiki-config@master] WikimediaEditorTasks: Enable streaks and revert counts in production

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

Change 548832 merged by Mholloway:
[operations/mediawiki-config@master] WikimediaEditorTasks: Enable streaks and revert counts in production

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

Mentioned in SAL (#wikimedia-operations) [2019-11-06T14:41:18Z] <mholloway-shell@deploy1001> Synchronized wmf-config/InitialiseSettings.php: WikimediaEditorTasks: Enable streaks and revert counts (T234955, T234956) (duration: 01m 00s)