Page MenuHomePhabricator

Add special_watchlist to possible event_source values on ipinfo_interaction EventLogging schema
Closed, ResolvedPublic2 Estimated Story Points

Description

Following T307262: IP Info: Enable on watchlist, an event may now come from Special:Watchlist.

We need to:

Question: should we also add a default case, say unknown, and add this to the schema, to prevent invalid event data being sent if this type of situation happens again? - No, we'd rather not fail silently

Event Timeline

Change 789568 had a related patch set uploaded (by Steven Sun; author: Steven Sun):

[schemas/event/secondary@master] IPInfo: Add event source special_watchlist and update description

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

Change 789573 had a related patch set uploaded (by Steven Sun; author: Steven Sun):

[mediawiki/extensions/IPInfo@master] Add event source special_watchlist

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

Change 789576 had a related patch set uploaded (by AGueyte; author: AGueyte):

[schemas/event/secondary@master] Add special_watchlist ipinfo_interaction schema

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

Change 789578 had a related patch set uploaded (by AGueyte; author: AGueyte):

[mediawiki/extensions/IPInfo@master] Add event source special_watchlist to specialPage case

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

Change 789576 abandoned by AGueyte:

[schemas/event/secondary@master] Add special_watchlist ipinfo_interaction schema

Reason:

Duplicate with a volunteer patch

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

Change 789578 abandoned by AGueyte:

[mediawiki/extensions/IPInfo@master] Add event source special_watchlist to specialPage case

Reason:

duplicate with a volunteer patch

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

Change 789568 merged by jenkins-bot:

[schemas/event/secondary@master] Add event source special_watchlist to ipinfo_interaction schema

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

Change 789573 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Add event source special_watchlist

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

Tchanders added subscribers: StevenSun, AGueyte.

Reassigning to @StevenSun - thanks @AGueyte for reviewing this.

dom_walden subscribed.

Here is the JSON we send to the eventlogging server when opening the popup on Special:Watchlist:

{
  "$schema": "/analytics/mediawiki/ipinfo_interaction/1.3.0",
  "event_action": "open_popup",
  "event_context": "page",
  "event_source": "special_watchlist",
  "user_edit_bucket": "1000+ edits",
  "user_groups": "ipblock-exempt|sysop|*|user|autoconfirmed",
  "event_ipinfo_version": "full",
  "meta": {
    "stream": "mediawiki.ipinfo_interaction",
    "domain": "en.wikipedia.beta.wmflabs.org"
  },
  "dt": "2022-05-06T06:40:30.075Z"
}

In case of regressions, I also tested the popup on revision history, recent changes, log and expanding/collapsing the infobox on Special:Contributions. The correct event was sent in the browser and appeared in https://stream-beta.wmflabs.org/v2/ui/#/?streams=mediawiki.ipinfo_interaction.

Test environment: https://en.wikipedia.beta.wmflabs.org IP Info 0.0.0 (17f9ef2) 09:50, 5 May 2022.