Page MenuHomePhabricator

Ensure all DesktopWebUIActionsTracking events are correctly logged for menus
Closed, ResolvedPublic

Description

Background

Around Oct 2021, changes were made to Vector's menu HTML to better support icons. The introduction of a wrapper span element introduced a bug to our event logging, where clicks on menu item text would not log an event.

Clicks to the areas surrounded by the red dotted line would not log an event

Screen Shot 2022-03-21 at 3.19.36 PM.png (353×539 px, 30 KB)

This has impacted our data for clicks on menu items, most notably to the user links menu items, and the sticky header user links menu items.

QA steps

  1. Trigger a click event on one of of the user menu items in the beta cluster by clicking on the text of the label. Inspect the network tab to check a request to events is made.

Screen Shot 2022-03-29 at 10.10.06 AM.png (640×2 px, 245 KB)

  1. Trigger a click event in the beta cluster by clicking outside the text of the label.
  1. Trigger a click event in the beta cluster by clicking on the icon inside the menu item

QA Results - Beta

ACStatusDetails
1T304366#7823773
2T304366#7823773
3T304366#7823773

QA Results - Prod

ACStatusDetails
1T304366#7823776
2T304366#7823776
3T304366#7823776

Event Timeline

Change 771704 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/extensions/WikimediaEvents@master] Ensure events are correctly logged for text wrapped in spans

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

bwang assigned this task to Jdlrobson.
bwang added a subscriber: Jdlrobson.

Change 771704 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] Ensure events are correctly logged for text wrapped in spans

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

Change 773338 had a related patch set uploaded (by Krinkle; author: Bernard Wang):

[mediawiki/extensions/WikimediaEvents@master] mobileWebUIActions: Fix action logging event twice

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

Change 773338 merged by jenkins-bot:

[mediawiki/extensions/WikimediaEvents@master] mobileWebUIActions: Fix action logging event twice

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

Test Result - Beta

Status: ✅ PASS
Environment: beta
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: Trigger a click event on one of of the user menu items in the beta cluster by clicking on the text of the label. Inspect the network tab to check a request to events is made.

Screen Shot 2022-03-31 at 6.30.51 PM.png (1×1 px, 249 KB)

✅ AC2: Trigger a click event in the beta cluster by clicking outside the text of the label.

Screen Shot 2022-03-31 at 6.32.16 PM.png (1×1 px, 222 KB)

✅ AC3: Trigger a click event in the beta cluster by clicking on the icon inside the menu item

Screen Shot 2022-03-31 at 6.33.01 PM.png (1×751 px, 228 KB)

Edtadros subscribed.

Test Result - Prod

Status: ✅ PASS
Environment: enwiki
OS: macOS Monterey
Browser: Chrome
Device: MBP
Emulated Device:NA

Test Artifact(s):

QA Steps

✅ AC1: Trigger a click event on one of of the user menu items in the beta cluster by clicking on the text of the label. Inspect the network tab to check a request to events is made.

Screen Shot 2022-03-31 at 6.26.35 PM.png (858×1 px, 184 KB)

✅ AC2: Trigger a click event in the beta cluster by clicking outside the text of the label.

Screen Shot 2022-03-31 at 6.27.53 PM.png (882×894 px, 172 KB)

✅ AC3: Trigger a click event in the beta cluster by clicking on the icon inside the menu item

Screen Shot 2022-03-31 at 6.28.29 PM.png (862×1 px, 194 KB)