Last modified: 2014-04-29 15:02:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26297, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24297 - Adding a hook to the statistics updater
Adding a hook to the statistics updater
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 27576
  Show dependency treegraph
 
Reported: 2010-07-07 10:23 UTC by Krinkle
Modified: 2014-04-29 15:02 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2010-07-07 10:23:46 UTC
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)
Comment 1 Krinkle 2011-02-13 00:36:08 UTC
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.
Comment 2 Quim Gil 2014-04-29 14:45:56 UTC
Marking as Lowest, since nobody seems to be working or planning to work on this currently.
Comment 3 Quim Gil 2014-04-29 15:02:10 UTC
<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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links