Page MenuHomePhabricator

Instrument data sources used in IPInfo
Closed, ResolvedPublic1 Estimated Story Points

Description

In order to be able to answer the question, "How many users on $LANG_WIKI saw data from ipoid while using IPInfo?", we can add a event_ip_data_source field to https://gitlab.wikimedia.org/repos/data-engineering/schemas-event-secondary/-/blob/master/jsonschema/analytics/mediawiki/ipinfo_interaction/current.yaml?ref_type=heads#L14. This field would be set only if ipoid data is actually returned in IPInfo.

Event Timeline

kostajh added subscribers: STran, mszabo.

I'd suggest that we do this in the next sprint as a low effort task.

mszabo changed the task status from Open to In Progress.Sep 24 2024, 11:05 PM
mszabo claimed this task.

Change #1075329 had a related patch set uploaded (by Máté Szabó; author: Máté Szabó):

[schemas/event/secondary@master] ipinfo_interaction: Add event_ip_data_source

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

Change #1075329 abandoned by Máté Szabó:

[schemas/event/secondary@master] ipinfo_interaction: Add event_ip_data_source

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

Change #1077035 had a related patch set uploaded (by Máté Szabó; author: Máté Szabó):

[schemas/event/secondary@master] ipinfo_interaction: Add event_ip_data_sources

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

Change #1078392 had a related patch set uploaded (by Máté Szabó; author: Máté Szabó):

[mediawiki/extensions/IPInfo@master] Instrument data sources used by IPInfo

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

Change #1077035 abandoned by Máté Szabó:

[schemas/event/secondary@master] ipinfo_interaction: Add event_ip_data_sources

Reason:

Superseded by https://gitlab.wikimedia.org/repos/data-engineering/schemas-event-secondary/-/merge_requests/6.

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

Change #1078392 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Instrument data sources used by IPInfo

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

dom_walden subscribed.

Opening IPInfo popups and infoboxes on testwiki, I see requests made to https://intake-analytics.wikimedia.org/v1/events.

Popup:

{
	"$schema": "/analytics/mediawiki/ipinfo_interaction/1.4.0",
	"dt": "2024-11-15T08:48:00.569Z",
	"event_action": "open_popup",
	"event_context": "page",
	"event_ipinfo_version": "full",
	"event_source": "action_history",
	"meta": {
		"domain": "test.wikipedia.org",
		"stream": "mediawiki.ipinfo_interaction"
	},
	"user_edit_bucket": "100-999 edits",
	"user_groups": "checkuser|*|user|autoconfirmed"
}

Infobox:

{
	"$schema": "/analytics/mediawiki/ipinfo_interaction/1.4.0",
	"dt": "2024-11-15T08:48:28.165Z",
	"event_action": "open_infobox",
	"event_context": "popup",
	"event_ip_data_sources": [
		"maxmind",
		"spur"
	],
	"event_source": "special_contributions",
	"meta": {
		"domain": "test.wikipedia.org",
		"stream": "mediawiki.ipinfo_interaction"
	},
	"user_edit_bucket": "100-999 edits",
	"user_groups": "checkuser|*|user|autoconfirmed"
}

Test environment: https://test.wikipedia.org IP Info 0.0.0 (c8a56c5) 07:22, 11 November 2024.