Page MenuHomePhabricator

Instrument edit notices (desktop + mobile)
Closed, ResolvedPublic

Description

This task involves the work of implementing the instrumentation necessary to report on the metrics necessary to the evaluate the impact of introducing mobile edit notices. Note: the actual analysis will happen in T313279.

Requirements

  1. Instrumentation is added that enables us to report on metrics like:
    • How does the rate at which people complete the edits they start on mobile vary between the time before mobile edit notices were introduced and the time after mobile edit notices were introduced?
    • How does the rate at which edits are reverted on mobile vary between the time before mobile edit notices were introduced and the time after mobile edit notices were introduced?
    • How does the rate at which people abandon the edit sessions they initiate on mobile vary between the time before mobile edit notices were introduced and the time after mobile edit notices were introduced?
  2. We should be able to group the metrics listed in "1." by the experience level of the people making edits as well as the editing interface/mode (source / visual) they were using

QA

  • Editing QA to verify client-side logging being emitted as expected
  • @MNeisler to verify event appearing server-side as expected

Event Timeline

ppelberg updated the task description. (Show Details)
ppelberg added a project: Goal.

Change 952262 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/MobileFrontend@master] Track when edit notices are shown

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

Change 952263 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] Track when edit notices are shown

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

Those patches will log when the edit notices are shown on desktop (VE / NWE) and mobile. Logged in VisualEditorFeatureUse as feature: notices, action: show.

ppelberg renamed this task from Instrument mobile edit notices to Instrument edit notices (desktop + mobile).Aug 28 2023, 5:51 AM

Change 952263 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Track when edit notices are shown

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

Change 952262 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Track when edit notices are shown

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

The instrumentation deployed for this (feature: notices, action: show in VEFU) looks good to me and will be sufficient to calculate the metrics identified in the requirements of the task and analysis.

Just a quick note/reminder that to calculate the revert rate we'll need to join VEFU/EditAttemptStep data to mediawiki_history using the published edits' revision_id, which is only retained for 90 days in EditAttemptStep. As a result, analyses on that metric will only be able to look at the last 90 days.

Documenting what @MNeisler talked about offline on 13 Sep...

The instrumentation deployed for this (feature: notices, action: show in VEFU) looks good to me and will be sufficient to calculate the metrics identified in the requirements of the task and analysis.

Excellent.

Just a quick note/reminder that to calculate the revert rate we'll need to join VEFU/EditAttemptStep data to mediawiki_history using the published edits' revision_id, which is only retained for 90 days in EditAttemptStep. As a result, analyses on that metric will only be able to look at the last 90 days.

Great spot and understood.

Client-side logging is being emitted as expected on Desktop for logged in users with VisualEditorFeatureUse as feature: notices, action: show. I will test the mobile part once this task is resolved T312587.

Client-side logging is being emitted as expected on Desktop for logged in users with VisualEditorFeatureUse as feature: notices, action: show.

Excellent.

I will test the mobile part once this task is resolved T312587.

Sounds great; moving to "Blocked / Needs more work" to remind us of this.

@DLynch: I am not seeing any Client-side logging on Mobile in production for logged in users with VisualEditorFeatureUse as feature: notices, action: show.

Screenshot 2023-10-11 at 4.21.29 PM.png (1×2 px, 766 KB)

@Ryasmeen You're testing on enwiki, so could you verify that you've got the EditNoticesOnMobile gadget disabled?

image.png (106×1 px, 28 KB)

If it's enabled, it entirely replaces the new built-in feature. Note below that the styling for me is different from yours on both the new feature and the gadget...

The new MobileFrontend noticesThe EditNoticesOnMobile gadget
image.png (816×648 px, 137 KB)
image.png (1×1 px, 244 KB)
Ryasmeen edited projects, added Verified; removed Editing QA.

@Ryasmeen You're testing on enwiki, so could you verify that you've got the EditNoticesOnMobile gadget disabled?

image.png (106×1 px, 28 KB)

If it's enabled, it entirely replaces the new built-in feature. Note below that the styling for me is different from yours on both the new feature and the gadget...

The new MobileFrontend noticesThe EditNoticesOnMobile gadget
image.png (816×648 px, 137 KB)
image.png (1×1 px, 244 KB)

Thanks @DLynch! I did have EditNoticesOnMobile gadget enabled. I am now seeing the event being triggered correctly after disabling it.

I'm assigning this task over to Megan to verify the newly-instrumented events are being logged as expected server-side.

@ppelberg I've checked and confirmed that events are being logged as expected in VisualEditorFeatureUse. See summary of checks and some initial data counts below:

The data below reflects all editing sessions where an edit notice was shown (feature: notices, action: show) from 11 October through today:

  • Events logged on both desktop and mobile web platforms following 11 October deployment:
platformn_sessions
desktop3285046
phone370893
  • Events logged on all namespaces (95% of sessions on the main page namespace (ns:0))
  • Event logged for both logged-in and logged-out users. Edit notices have mostly been shown to unregistered users (92% of editing sessions).
user_statusn_sessions
registered303625
unregistered3352364
  • Events logged for both visual and source modes
editor_interfacen_sessions
visualeditor3493606
wikitext814220
wikitext-201762908
  • Confirmed that associated EditAttemptStep events are logged as expected so we can calculate edit completion and abandonment rate.

Note: I've also updated the VisualEditorFeatureUse dictionary with these new events now that it has been deployed.

Looks great; thank you, @MNeisler. Per what we talked about offline today, we'll look at edit completion and abandonment rates in T313279.