Page MenuHomePhabricator

Add minor edit count to REST API history count endpoint
Closed, ResolvedPublic2 Estimated Story Points

Description

Per user story T234941: Curator gets minor edit count, we want to add a count of minor edits as one of the available count types on the existing /page/{title}/history/counts endpoint.

This is dependent on successful completion of T235572: Compose query for minor edit count, which will supply the necessary query.

T234941: Curator gets minor edit count contains the necessary specifications and details.

Requirements:

  • endpoint updated
  • Add integration test covering behaviour
  • Update docs: Add minor to the available types for Get page history counts. (Done)

Event Timeline

The existing counts for this endpoint do not have unit tests. Should we add a unit test for the new count (and possibly the existing ones)? Or will we cover that with integration tests?

Yep that makes sense to me. If we can add unit tests that would be good but the default should be integration tests.

Change 545590 had a related patch set uploaded (by BPirkle; owner: BPirkle):
[mediawiki/core@master] Add minor edit count to available REST API history counts

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

Change 545590 merged by jenkins-bot:
[mediawiki/core@master] Add minor edit count to available REST API history counts

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