Per T285813, we want to be able to answer the following questions:
- how many visits does Special:MentorDashboard have?
- how many different mentors visit Special:MentorDashboard?
In this task, this instrumentation should be implemented.
Per T285813, we want to be able to answer the following questions:
In this task, this instrumentation should be implemented.
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Urbanecm_WMF | T239234 [EPIC] Newcomer homepage: Mentorship dashboard | |||
Resolved | Urbanecm_WMF | T278920 Mentor dashboard: V1 desktop | |||
Resolved | Urbanecm_WMF | T289369 Instrument mentor dashboard for views |
Change 714099 had a related patch set uploaded (by Urbanecm; author: Urbanecm):
[schemas/event/secondary@master] Add analytics/mediawiki/mentor_dashboard/visit
Change 715108 had a related patch set uploaded (by Urbanecm; author: Urbanecm):
[mediawiki/extensions/GrowthExperiments@master] Instrument Special:MentorDashboard
Change 714099 merged by jenkins-bot:
[schemas/event/secondary@master] Add analytics/mediawiki/mentor_dashboard/visit
Change 715108 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Instrument Special:MentorDashboard
Change 715529 had a related patch set uploaded (by Urbanecm; author: Urbanecm):
[operations/mediawiki-config@master] Add mediawiki.mentor_dashboard.visit
Change 715530 had a related patch set uploaded (by Urbanecm; author: Urbanecm):
[mediawiki/extensions/GrowthExperiments@master] Mentor dashboard instrumentation: Fix stream name
Change 715530 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Mentor dashboard instrumentation: Fix stream name
Change 715529 merged by jenkins-bot:
[operations/mediawiki-config@master] Add mediawiki.mentor_dashboard.visit schema
Change 715579 had a related patch set uploaded (by Urbanecm; author: Urbanecm):
[operations/mediawiki-config@master] Fix schema definition for mediawiki.mentor_dashboard.visit
Mentioned in SAL (#wikimedia-operations) [2021-08-30T18:49:22Z] <tgr@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Config: Revert: [[gerrit:715529|Add mediawiki.mentor_dashboard.visit schema (T289369)]] (duration: 00m 26s)
Change 715579 merged by jenkins-bot:
[operations/mediawiki-config@master] Fix schema definition for mediawiki.mentor_dashboard.visit
Mentioned in SAL (#wikimedia-operations) [2021-08-30T19:06:22Z] <tgr@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:715579|Fix schema definition for mediawiki.mentor_dashboard.visit (T289369)]] (duration: 00m 56s)
Change 715588 had a related patch set uploaded (by Urbanecm; author: Urbanecm):
[operations/mediawiki-config@master] Fix mediawiki.mentor_dashboard.visit's definition #2
Change 715588 merged by jenkins-bot:
[operations/mediawiki-config@master] Fix mediawiki.mentor_dashboard.visit's definition #2
So, I tested this in beta (via https://stream-beta.wmflabs.org/v2/ui/#/ and entering mediawiki.mentor_dashboard.visit there), and it appears to work! I'll likely backport the extension part later to test it at testwiki too (plus verify data lake received the data), and then I'll close it.
Change 715610 had a related patch set uploaded (by Urbanecm; author: Urbanecm):
[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.20] Instrument Special:MentorDashboard
Change 715610 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@wmf/1.37.0-wmf.20] Instrument Special:MentorDashboard
Mentioned in SAL (#wikimedia-operations) [2021-08-30T23:08:05Z] <urbanecm@deploy1002> Synchronized php-1.37.0-wmf.20/extensions/GrowthExperiments/includes/Specials/SpecialHomepage.php: 9e2264a0c9a48548da4795b2a5b9d7275d254ac7: Instrument Special:MentorDashboard (T289369) (duration: 00m 57s)
Mentioned in SAL (#wikimedia-operations) [2021-08-30T23:11:04Z] <urbanecm@deploy1002> Synchronized php-1.37.0-wmf.20/extensions/GrowthExperiments/includes/Specials/SpecialMentorDashboard.php: 9e2264a0c9a48548da4795b2a5b9d7275d254ac7: Instrument Special:MentorDashboard (T289369) (duration: 00m 55s)
I backported the instrumentation to production to be able to double check it at testwiki. Then I opened the dashboard at testwiki, and this is what was sent:
{ "meta": { "domain": "test.wikipedia.org", "stream": "mediawiki.mentor_dashboard.visit", "id": "b2ea8441-0bc5-4bc0-b5d0-e0e9566462d6", "dt": "2021-08-30T23:16:33.303Z", "request_id": "df77f986-c863-4684-9184-061a75598aae", "topic": "codfw.mediawiki.mentor_dashboard.visit", "partition": 0, "offset": 18 }, "http": { "request_headers": { "user-agent": "<redacted>" } }, "$schema": "/analytics/mediawiki/mentor_dashboard/visit/1.0.0", "user_id": 43912, "is_mobile": false, "dt": "2021-08-30T23:16:33Z" }
After a while, the event got ingested into Hadoop as well. Looks it all works as expected :).