Page MenuHomePhabricator

[Bug] wikimediaeditortaskscounts extension does not give contributions number correctly
Closed, InvalidPublic

Description

Steps to Reproduce

  1. Open the Wikipedia Android app and go to "Edits"
  2. Click on "Add" in Article descriptions and add a description to an article and submit it.

Expected Results

https://www.wikidata.org/w/api.php?format=json&formatversion=2&errorformat=html&errorsuselocal=1&action=query&meta=wikimediaeditortaskscounts%7Cuserinfo&uiprop=groups%7Cblockinfo%7Ceditcount%7Clatestcontrib
In the app_description_edits, the en number should be increased.

"app_description_edits": {
          "en": 94,
          "ja": 2,
          "yue": 1,
          "zh": 135,
          "zh-hant": 111,
          "zh-tw": 13
        }

Actual Results

In the app_description_edits, the en number remains the same number.

Additional notes

The Android app (maybe the iOS app too) will now submit the article description to the article itself in en Wikipedia only instead of Wikidata. The API should count the number by checking the edit comment with #suggestededit-add or #suggestededit-translate

Event Timeline

@cooltey, can you clarify which endpoint(s) this problem occurs with?

Hi @JMcLeod_WMF

This API should return the correct number of article description edits in en wiki. For now, it returns the edit counts in Wikidata, but now we are not letting users submit the article description to Wikidata.
https://www.wikidata.org/w/api.php?format=json&formatversion=2&errorformat=html&errorsuselocal=1&action=query&meta=wikimediaeditortaskscounts

For information about "article description" in the English Wikipedia, please see here: https://en.wikipedia.org/wiki/Wikipedia:Short_description

For English wiki article description edit counts, this API should count the {{Short description}} edits in en wiki.

This refers to wikidata and not one of the APIs we maintain in content transform team. Moving this to tracking for now and adding wikidata.

Hi @Jgiannelos, just FYI, this extension was originally made by @Mholloway who was the engineer in the content transfer team.
https://gerrit.wikimedia.org/r/admin/repos/mediawiki/extensions/WikimediaEditorTasks

Just to clarify: @Mholloway was on the predecessor team to Content-Transform-Team at the time, and it's not clearly in the new team's mandate (or experience base). The feature regressed because of T184000: Magic word on English WP to override display of Wikidata short description, so in some sense fixing this should be considered part of that task. Although we're still listed as the maintainer of this extension, part of resourcing this task involves determining who actually /should/ be maintaining this.

(Please add corresponding code repository project tags to task, as teams may change over time. Thanks for allowing to find tasks!)