Page MenuHomePhabricator

Run script to recalculate Wikivoyage statistics
Closed, ResolvedPublic

Description

As suggested by Andre in bug 64333, I'm opening a new bug here to request the recalculation of the stats for all the language version because there are several misalignment because of few bugs (page importation, page movement, etc...)

Not only the page counts are affected, but also the image count.


Version: wmf-deployment
Severity: enhancement
URL: https://it.wikivoyage.org

Details

Reference
bz64370

Event Timeline

bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz64370.

Curiosity. Why to adjust the wrong count is an enhancement and not a bug?

Does anybody with shell access plan to run this script soon?

TTO added a comment.Jun 29 2014, 4:34 AM

OK, Reedy, this one's for you. Needs to be run once for all Wikivoyage editions.

while read p; do mwscript initSiteStats.php --wiki=${p} --noviews --update; done < *path to wikivoyage.dblist*

Not sure if you need the --use-master parameter, I'll leave you to decide that.

We have a foreachwikiindblist script for this :)

Now that bug 65214 has been solved, could the voy stats be recalculated?

Created attachment 15931
initSiteStats.log

Attached:

Ran the script with the parameters TTO suggested (didn't use --use-master), and attached the log output.

Thanks a lot! Finally the stats are update! Just a curiosity; the initSiteStats runs periodically or just on demand?

(In reply to Andyrom75 from comment #9)

Thanks a lot! Finally the stats are update! Just a curiosity; the
initSiteStats runs periodically or just on demand?

That's bug 57788?

zhuyifei1999, bug 57788 is related to the schedule. My question in fact goes in the direction of: if the run of initSiteStats is already scheduled, the bug 57788 can be closed, otherwise, must be kept and its importance increased.

It doesn't have any scheduled runs AFAIK. MediaWiki should ideally keep everything in sync.

Kunal, unfortunately the sync doesn't happen, in fact since the last syncronization, some language version (en:voy, fr:voy, it:voy, ...) already has some misalignement, due to bugs that affect the counters.

I've seen that This, that and the other has tried to patch the bug 40009. If the patch succeed we can re-run the initSiteStats.php to eliminate the misalignments.