Page MenuHomePhabricator

API for reverts for SE v3
Open, HighPublic5 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.

Details

Related Gerrit Patches:
operations/mediawiki-config : masterWikimediaEditorTasks: Enable streaks and revert counts in production
mediawiki/extensions/WikimediaEditorTasks : masterApi provisions for revert count

Event Timeline

Charlotte created this task.Oct 8 2019, 4:22 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 8 2019, 4:22 PM
Charlotte triaged this task as High priority.Oct 8 2019, 4:31 PM
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
Dbrant updated the task description. (Show Details)Oct 18 2019, 5:56 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)