Page MenuHomePhabricator

Implement reverted edits count endpoint
Open, Needs TriagePublic


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

This was done as part of T231590

eprodromou updated the task description. (Show Details)Oct 11 2019, 7:52 PM
eprodromou updated the task description. (Show Details)

Per, 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 removed BPirkle as the assignee of this task.Jun 18 2020, 6:43 PM
BPirkle added a subscriber: BPirkle.