Page MenuHomePhabricator

Decide on a mechanism to communicate with Wikimedia Analytics API from a MW extension
Closed, ResolvedPublic2 Estimated Story PointsSpike

Description

As part of FY 2026-27 DE1.3.2 Impact + Dashboard, we will need to download data from the Wikimedia Analytics API from an extension, similar to what PageViewInfo does. However, our need for data will be broader than just pageview info. Within this task, we should experiment with various options to do that and decide on the one we will use going forward.

Options to consider (list is not guaranteed to be complete):

  1. Direct CURL from the ImpactModule extension: We can communicate with the API directly, self-implementing the interface and "PHP objects to JSON" conversion. This is what PageViewInfo does currently.
  2. Centralise the logic somewhere(TM): We can designate a central extension that would communicate with Wikimedia Analytics API and that would then be used both by PageViewInfo and by the future ImpactModule extension.
Acceptance Criteria
  • Pros and cons were considered of the options in the description
  • A decision was made on what option is best

Event Timeline

Urbanecm_WMF moved this task from Inbox to Estimated tasks backlog on the Growth-Team board.
Urbanecm_WMF changed the subtype of this task from "Task" to "Spike".Jul 28 2026, 1:10 PM
Urbanecm_WMF claimed this task.

This is essentially done with the current code.