Page MenuHomePhabricator

Compose query for intermediate revision count
Closed, DeclinedPublic

Description

Per user story T234940: Curator gets number of intermediate revisions between two revisions, we want to add a count of intermediate revisions between two revisions. This is primarily for use with the revision comparison endpoint, to know how many edits were involved in the differences being reviewed.

Create an SQL query to retrieve this count. Update this task with the query. Creation of the new endpoint will be performed under a separate task.

Additional details are in T234940: Curator gets number of intermediate revisions between two revisions.

Requirements:

  • task updated with query

Event Timeline

If we don't go with my proposals in T234940#5580724, we don't need any special queries. There's already Title::countRevisionsBetween method in MW core which provides exactly what's needed.