Page MenuHomePhabricator

Change # of edits slide to use Global Edits from DPE
Closed, ResolvedPublic

Description

Background

The Data Engineering team has (just in time) released a new API for getting total user edits, across all projects, grouped by month!
https://wikimedia.org/api/rest_v1/metrics/edits/v3/per_editor/14129/all_page_types/monthly/20250101/20251231

The goal is to use this API as an initial "experiment" in our Year-in-Review. This API is more precise than our current usercontribs API call which only gets the last 500 edits.

Task

  • On the "You edited Wikipedia X times" slide, make the following updates
    • Change copy to "You edited X times"
    • Use the new endpoint to pull the total edits for that user across projects, for the date range of January 1, 2025 to November 30, 2025
  • If someone has more than 1 edit on this count, show them the contributor slide

Event Timeline

@Dbrant does this total include

  • Reverted edits
  • Edits made not in the main namespace? (User, talk, etc)
  • Reverted edits
  • Edits made not in the main namespace? (User, talk, etc)

Yes

ABorbaWMF subscribed.

Working for me on 2.7.50557-r-2025-11-14, on OnePlus 8 on Android 13, and Pixel 6 on Android 16. Tested on all themes.

Change copy to "You edited X times"

@Dbrant This requirement did not happen - I'm still seeing "You edited Wikipedia 15 times", which is not technically true since these are cross-platform totals!

HNordeenWMF raised the priority of this task from Low to High.Nov 18 2025, 5:51 PM

Change copy to "You edited X times"

@Dbrant This requirement did not happen - I'm still seeing "You edited Wikipedia 15 times", which is not technically true since these are cross-platform totals!

Done in latest alpha:
https://github.com/wikimedia/apps-android-wikipedia/releases/tag/latest