Page MenuHomePhabricator

WikiLambda metrics: track types usage for inputs/outputs of functions
Closed, ResolvedPublic

Description

Description

Record the usage of types in conjunction with functions, over time, and the return type of the involved function. This should include "inventory" of how many types exist, and how frequently each type is used as input or output functions. This could also include how often each type is used in function creation or editing activities. The instruments already exists to record these activities (per T340160, T340779).

Update: we've decided to track the existence of types, and their association with functions, using the new DB table which resulted from T363439. For a finer granularity of type-tracking, that table can be queried in conjunction with the Wikifunctions UI metrics table, which records when each function is created and edited.

This is motivated in part by our need to answer questions like the following: How frequently are new types used by the community and what are the most common use cases?

Notes:

  • WikiLambda getter getInputsOfFunctionZid might be useful.

Desired behavior/Acceptance criteria

  • The type info is recorded accurately and reliably, and shows up in the relevant tables in the data lake.

Completion checklist

Related Objects

Event Timeline

Jdforrester-WMF moved this task from To Triage to Backlog on the Abstract Wikipedia team board.
DMartin-WMF renamed this task from WikiLambda metrics: collect type info for function create/edit activities in the UI to WikiLambda metrics: track types usage for inputs/outputs of functions.Jun 12 2024, 5:20 PM
DMartin-WMF updated the task description. (Show Details)

The new DB table has been completed, including QA, and the Wikifunctions UI metrics table has been in use for some time already, so the needed info is now available. Closing.