Page MenuHomePhabricator

Instrumentation of pages where UserInfoCard is used
Closed, ResolvedPublic

Description

To be able to track where users are using the UserInfoCard, from which pages, we need to enrich current instrumentation stream with context describing what kind the UIC is being opened on.

Page types to recognize: (in case of conflicts, the topmost matching rule should be used)

  • log – when viewing Special:Log or when the trigger button is inside .mw-logevent-loglines
  • checkuser – when viewing any of the following special pages: CheckUser, Investigate, SuggestedInvestigations
  • blocklist – when viewing Special:BlockList
  • rc – when viewing Special:RecentChanges
  • special – when viewing a special page
  • history – when viewing action=history or action=info for any wiki page
  • diff – when viewing old version of a page and trigger button is inside mw-revision-info or when viewing difference between two versions and trigger button is inside .diff-title
  • page – when viewing page content and trigger button is inside #mw-content-text
  • other – when none of the above holds

Acceptance criteria

  • open event has a JSON-encoded context, with kind of the page stored under a page key.

Event Timeline

Change #1294954 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[mediawiki/extensions/CheckUser@master] UserInfoCard: Add page context to open event instrumentation

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

Change #1294954 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] UserInfoCard: Add page context to open event instrumentation

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

@mszwarc is QA done? Just thinking that Dom probably won't get around to this

If it's okay, I will test those in the end of the week.

Yeah sure, just wanted to check if these could be moved to Done :D

Verified on test2 wiki for Special:Log, Special:BlockList, Special:RecentChanges, History, Diff. The data is seen in our pipelines in superset.