Page MenuHomePhabricator

Views in Edits tab are reading zero
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Set language to EN
  • Go to Edits Tab
  • Review number of views

What happens?:
Views to edits read as 0, which is likely a bug

What should have happened instead?:
Display correct stat

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Android app Beta 2024-10-01 and Android app Production 2024-10-02

Other information (browser name/version, screenshots, etc.):
I've uploaded the screenshot to Drive to protect Personal information

Event Timeline

This was fixed by updating and simplifying the logic we use for calculating the "pageviews" shown in the Edits tab, as well as the "quality" score that gets shown. In this way, we can remove our dependency on the WikimediaEditorTasks extension (T376954).

Old behavior for pageviews:

  • Take the last 10 edits done to Wikidata descriptions, get the corresponding Wikipedia pages for those Q numbers, and get the pageviews for those articles.

New behavior for pageviews:

  • Take the last 10 edits on your home wiki, and get the pageviews for those pages.

Old behavior for quality score:

  • Count the number of reverts of the user's edits on Wikidata and/or Commons (only).

New behavior for quality score:

  • Take the user's last 50 edits on their home wiki, and count the number of reverts of those edits (tagged with mw-reverted).