Page MenuHomePhabricator

Top views should strip "Special:MyLanguage" prefix for mediawiki.org pages and merge the number of pageviews with the non-prefixed result
Open, Needs TriagePublic

Description

Steps and actual outcome:
Looking at the Topviews for the project mediawiki.org (a multi-language page) and unchecking "Show only mainspace pages", pages like

  • Help:Contents
  • Special:MyLanguage/Help:Contents

are listed as separate items.

Expected outcome:
For mediawiki.org, Special:MyLanguage should be stripped and both should be a single entry, for clearer statistics.

Other comments:
Using http://tools.wmflabs.org/pageviews (not topviews) for mediawiki.org, I cannot enter Special:MyLanguage/Help:Contents into the "Pages" field, only Help:Contents.

Event Timeline

Restricted Application added a subscriber: MusikAnimal. · View Herald TranscriptJan 18 2018, 11:34 AM
Aklapper updated the task description. (Show Details)Jan 18 2018, 11:42 AM
MusikAnimal added a comment.EditedJan 18 2018, 7:10 PM

I think this is partly an issue around the API and how it treats redirects. Special:MyLanguage/Page title and Page title are actually recorded as two separate pages, e.g. compare Special:MyLanguage/Help:Logging in and Help:Logging in. Because of this we can't strip out the Special:MyLanguage from Topviews, or else the numbers will be off. We can't programmatically include the target page in the stats, either, because that would have to be done for all pages to ensure the top 1,000 (which is all we're given) is correct.

In short, this needs to be handled in the API (T121912).

That being said, we should be able to enter in Special:MyLanguage/Page title into the main Pageviews tool. It's using the Prefixsearch API, which doesn't seem to like any subpages of a Special page. I'll try to work on a fix, but as a workaround you can go to your Settings the Pageviews Analysis interface, and change the "Search method" to "No autocompletion".