Page MenuHomePhabricator

WikiLambda: Track (already existing) function-editing attempts
Closed, ResolvedPublic

Description

Description

Create Metrics Platform instruments that log events for:

  • User starts editing an existing function definition
  • User publishes the updated function definition
  • User cancels function definition editing

Desired behavior/Acceptance criteria


Completion checklist

Related Objects

StatusSubtypeAssignedTask
OpenBUG REPORTNone
ResolvedJdforrester-WMF
ResolvedBTullis
ResolvedJdforrester-WMF
ResolvedDVrandecic
Resolvedcmassaro
ResolvedClement_Goubert
ResolvedJdforrester-WMF
Resolvedcmassaro
Resolvedori
Resolvedsbassett
Resolvedakosiaris
ResolvedJdforrester-WMF
ResolvedRequest CCoxwell-WMF
ResolvedRequestgengh
ResolvedRequestArnoldokoth
Resolvedcmassaro
Resolved Quiddity
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedBUG REPORTgengh
ResolvedBUG REPORTgengh
Resolvedgengh
ResolvedBUG REPORTJdforrester-WMF
ResolvedBUG REPORTJdforrester-WMF
ResolvedBUG REPORTDVrandecic
ResolvedBUG REPORTcmassaro
ResolvedBUG REPORTJdforrester-WMF
ResolvedBUG REPORTAAlhazwani-WMF
DuplicateBUG REPORTNone
ResolvedBUG REPORTJdforrester-WMF
ResolvedBUG REPORTDVrandecic
Resolvedgengh
ResolvedBUG REPORTcmassaro
ResolvedBUG REPORTgengh
Resolvedgengh
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
Resolved CCoxwell-WMF
Resolved CCoxwell-WMF
ResolvedAAlhazwani-WMF
ResolvedLadsgroup
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
Resolvedcmassaro
ResolvedJdforrester-WMF
ResolvedDVrandecic
Resolvedgengh
ResolvedBUG REPORTJdforrester-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
Resolved Quiddity
Resolved Quiddity
Resolved Quiddity
ResolvedDVrandecic
ResolvedDVrandecic
Resolved Quiddity

Event Timeline

Change 934429 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/extensions/WikiLambda@master] Add metrics instrument for loading function-editing page

https://gerrit.wikimedia.org/r/934429

Change 934429 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Add metrics instrument for loading function-editing page

https://gerrit.wikimedia.org/r/934429

Change 937204 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/extensions/WikiLambda@master] Metrics custom data: pass undefined as null & update 2 names

https://gerrit.wikimedia.org/r/937204

Change 937204 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Metrics custom data: pass undefined as null & update 2 names

https://gerrit.wikimedia.org/r/937204

Change 938928 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/extensions/WikiLambda@master] WikiLambda metrics: Allow false custom data values to get through

https://gerrit.wikimedia.org/r/938928

Change 938928 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] WikiLambda metrics: Allow false custom data values to get through

https://gerrit.wikimedia.org/r/938928

Loading the function definition page to edit an existing function will be indicated by all MP events like this:

  • Event name: 'wf.ui.editFunction.load'
  • Custom data 'isnewzobject' = false

Publishing an updated function will be indicated by all MP events like this:

  • Event name: 'wf.ui.editFunction.publish'
  • Custom data 'isnewzobject' = false

Canceling function editing will be indicated by all MP events like this:

  • Event name: 'wf.ui.editFunction.cancel'
  • Custom data 'isnewzobject' = false

Confirmed on https://stream-beta.wmflabs.org/v2/ui/#/?streams=wikifunctions.ui:

Loading the function definition page to edit an existing function will be indicated by all MP events like this:

  • Event name: 'wf.ui.editFunction.load'
  • Custom data 'isnewzobject' = false
"$schema": "/analytics/mediawiki/client/metrics_event/1.2.0",
"dt": "2023-07-25T00:24:26.679Z",
"name": "wf.ui.editFunction.load",
"custom_data": {
"isnewzobject": {
"data_type": "boolean",
"value": "false"

Publishing an updated function will be indicated by all MP events like this:

  • Event name: 'wf.ui.editFunction.publish'
  • Custom data 'isnewzobject' = false
"$schema":
"/analytics/mediawiki/client/metrics_event/1.2.0",
"dt": "2023-07-25T00:27:25.388Z",
"name": "wf.ui.editFunction.publish",
"custom_data": {
"isnewzobject": {
"data_type": "boolean",
"value": "false"

Canceling function editing will be indicated by all MP events like this:

  • Event name: 'wf.ui.editFunction.cancel'
  • Custom data 'isnewzobject' = false
"$schema": "/analytics/mediawiki/client/metrics_event/1.2.0",
"dt": "2023-07-25T00:30:26.337Z",
"name": "wf.ui.editFunction.cancel",
"custom_data": {
"isnewzobject": {
"data_type": "boolean",
"value": "false"