Page MenuHomePhabricator

[JS] Metrics Platform client library doesn't capture page.namespace_id
Closed, ResolvedPublic1 Estimated Story Points

Description

Background

Per @jwang's data QA for T353029: QA desktopwebuiactionstracking schema port to the new metrics platform in https://phabricator.wikimedia.org/T353029#9622128:

pageNamespacepage.namespace_id is NULL in new schema
image.png (332×800 px, 40 KB)
image.png (170×800 px, 24 KB)

AC

  • When correctly configured, the JS client library captures page.namespace_id

Notes

  1. This is happening because the integration in EventLogging is returning the namespace ID as the page.namespace property: https://github.com/wikimedia/mediawiki-extensions-EventLogging/blob/b03e1685586074514fd1e3a1b3f8d408414cc8e4/modules/ext.eventLogging/MediaWikiMetricsClientIntegration.js#L127

Event Timeline

phuedx triaged this task as Unbreak Now! priority.Mar 21 2024, 9:56 AM

Change 1013267 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/extensions/EventLogging@master] metricsPlatform: page.namespace -> .namespace_id

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

Change #1013267 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] metricsPlatform: page.namespace -> .namespace_id

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

phuedx set the point value for this task to 1.Wed, Mar 27, 4:07 PM