Special:Statistic content pages incremental and full (re)calculation should do the same. initSiteStats.php calculates the number of content pages differently. Both should increment for every item that is not empty and not a redirect.
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T96040 Wikibase special pages (tracking) | |||
Open | None | T76145 Special:Statistic content pages incremental and full (re)calculation should do the same |
Event Timeline
Comment Actions
The problem here is that the maintenance script recomputes the number differently than the incremental update process.
Comment Actions
ItemContent has:
public function isCountable( $hasLinks = null ) { return !$this->isRedirect() && !$this->getItem()->isEmpty(); }
This could easily be changed to
public function isCountable( $hasLinks = null ) { return !$this->isRedirect() && !$this->isStub(); }
I seem to remember that we discussed this at some point, but I do not recall why we decided to count stubs.
Comment Actions
I wonder why initSiteStats.php would come to a different result if it's using Content::isCountable()
Comment Actions
At some point in the past we decided that we count even nearly empty items as articles. I don't see a reason to revise that atm.