Page MenuHomePhabricator

Implement reverted edits count endpoint
Open, Needs TriagePublic

Description

This task depends on successful completion of T231598 and T231600

Acceptance Criteria:

  • Define route History count routes
    • /page/{title}/history/counts/revertededits
  • Define route handler for each count type
  • Request:
    • Must support HTTP GET only
    • Request body must be empty
  • Response
    • Response must return JSON
    • Response JSON must have structures:
{
    "revertededits": 23
}
  • revertededits: total number of reverted edits
    • Reverted Edits are defined as Edits tagged with Rollback or Undo tags

Event Timeline

Per https://phabricator.wikimedia.org/T231351#5600269, I think this was implemented wrong, but it is probably accidentally correct most of the time. I think the only case would be when a reverted revision was also deleted, counting the reverting revision would give too high a count.

BPirkle subscribed.