Page MenuHomePhabricator

Site stats not updating when links added to pages
Closed, ResolvedPublic

Description

We've had two reports of this now, T199041 and T200726.

Naturally adding links doesn't increase the article count, but running initSiteStats.php does.

Some fallout of the MCR changes?

Event Timeline

Reedy triaged this task as High priority.Jul 31 2018, 5:05 PM
Reedy added a project: Regression.

DerivedDataPageUpdater saves the old state in pageState but then never uses it. Probably $pageState['oldCountable'] should override $options['oldcountable'] in doUpdates() when the latter is null.

@Tgr is probably right. I can look into this later today if nobody else does.

Change 449704 had a related patch set uploaded (by Gergő Tisza; owner: Gergő Tisza):
[mediawiki/core@master] Fix article counting logic in DerivedPageDataUpdater

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

Change 449704 merged by jenkins-bot:
[mediawiki/core@master] Fix article counting logic in DerivedPageDataUpdater

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

Fix is merged. Does this need a backport? Or can this wait to go out with the train next week?

Also, do we need to run initSiteStats.php on all wikis? (Is that even feasible on large ones?)

Also, do we need to run initSiteStats.php on all wikis? (Is that even feasible on large ones?)

I think we just wait for https://github.com/wikimedia/puppet/blob/860482004dc69dc61d5d26e4985d70dbe2954228/modules/mediawiki/manifests/maintenance/initsitestats.pp to fix the problems

Change 450225 had a related patch set uploaded (by Reedy; owner: Gergő Tisza):
[mediawiki/core@wmf/1.32.0-wmf.15] Fix article counting logic in DerivedPageDataUpdater

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

Change 450225 merged by jenkins-bot:
[mediawiki/core@wmf/1.32.0-wmf.15] Fix article counting logic in DerivedPageDataUpdater

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

Reedy assigned this task to Tgr.