https://bugzilla.wikimedia.org/show_bug.cgi?id=47739
Web browser: ---
Bug ID: 47739
Summary: initStats.php help message is misleading about noviews
and update options
Product: MediaWiki
Version: 1.20.2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Maintenance scripts
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
The initStats.php maintenance script has a confusing help message.
1. It gives this description of the "noviews" option:
--noviews: Don't update the page view counter
The phrase "Don't update" is ambiguous, sounding like the page view counter
will be left alone. In fact, it sets the page view counter to zero, according
to showStats.php. Perhaps the help message should really be, "Do not calculate
Total Views: set its value in the cache to zero."
2. The description of the "update" option is:
--update: Update the existing statistics (preserves the ss_total_views
field)
How is this different from the default behavior when initStats.php is invoked
WITHOUT the --update option? To my eye (as an end-user, not reading the
SiteStatsInit source code), it also seems to update the existing statistics and
preserve the ss_total_views field. Is there a better way to explain what
$counter->update() vs. the default $counter->refresh() does?
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l