Page MenuHomePhabricator

Adding a hook to the statistics updater
Closed, DeclinedPublic

Description

Hi,

Had an idea for an extention for one of my private wikis that would manipulate the statistics.
ie. not incrementing the counter in certain situations (not for logged in users, or not when a certain url-parameter is set).

But that is when I found out no hook (that I could find) is present in the statistics updater, thuss making it impossible without hard-coding to do anything with it.

The relevant code is in Article.php : line 3242 and on, which calls the SiteStatsUpdate() class defined in SiteStats.php : line 181 and on.

(line numbers based on mediawiki 1.16.0beta3.tar.gz)


Version: unspecified
Severity: enhancement

Details

Reference
bz24297

Related Objects

StatusSubtypeAssignedTask
DeclinedNone
DeclinedNone

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:02 PM
bzimport set Reference to bz24297.
bzimport added a subscriber: Unknown Object (MLST).

I'm referring to the page view counter here, by the way.

Basically a hook to hook into the behaviour of the statistics updater is requested.

Marking as Lowest, since nobody seems to be working or planning to work on this currently.

<Krinkle> qgil: said private wiki no longer exists. I no longer care about this bug.
<Krinkle> use case hasn't come up since as most people either dont have advanced needs or they dont use the built in hitcouter (e.g. they might use google analytics instead)

Venturing a wontfix, then.