Last modified: 2014-08-19 16:00:30 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 T71743, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69743 - for all namespaces show page count without redirects
for all namespaces show page count without redirects
Status: NEW
Product: Analytics
Classification: Unclassified
Wikistats (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-19 15:43 UTC by Amir E. Aharoni
Modified: 2014-08-19 16:00 UTC (History)
5 users (show)

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


Attachments

Description Amir E. Aharoni 2014-08-19 15:43:51 UTC
In the "Database records per namespace" section of project statistics all the pages counts include redirects. This may be useful for some research, but not useful for others, where only non-redirects pages are useful.

Whereas it's possible to find the non-redirect page count elsewhere on the page, I couldn't find the count of non-redirect pages in the Template space.
Comment 1 Erik Zachte 2014-08-19 16:00:30 UTC
I wasn't even aware that redirects also occur in other namespaces than 0, but of course why wouldn't they? 

So yes this would be new metric, but not a trivial change (the scripts are rather hard to maintain) One or more intermediate files would need to be updated. 

If you only need to do this in one languages it's probably easier to mine these data with a custom script, using the stub dump file with current revisions only. See e.g. https://dumps.wikimedia.org/hewiki/20140729/hewiki-20140729-stub-meta-current.xml.gz there is an atribute 'redirect' for every page title where this applies.

e.g. from some wiki:
<title>Main page</title>
    <ns>0</ns>
    <id>1426</id>
    <redirect title="Main Page" />
    <revision>
     etc

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


Navigation
Links