Page MenuHomePhabricator

Add a column for the blocks in WikiStats
Open, Needs TriagePublicFeature

Description

So far, WikiStats indicate a series of useful details.

Including the number of blocks performed on the project over the last 90 days could be of value as well. It can be used to understand the work amount of work vandalism puts on volunteers doing anti-vandalism work, among other things.

Request: add a column for the blocks in Wikistats

Event Timeline

JJMC89 changed the subtype of this task from "Task" to "Feature Request".

Do you already know how to get this number from an API?

Do you already know how to get this number from an API?

Something like:

{
	"action": "query",
	"format": "json",
	"list": "logevents",
	"leaction": "block/block",
	"lestart": "2020-12-20T16:58:50.000Z",
	"leend": "2020-09-20T16:58:50.000Z",
	"lelimit": "max"
}

and calculating the count manually Wikistats-side.

Dzahn changed the task status from Open to Stalled.Mar 30 2021, 10:18 PM

I started working on this but ran into T278897 as a blocker it seems.

Change 676147 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@master] Add ApiQueryLogFrequency to see frequency of individual log_type's

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