Page MenuHomePhabricator

Aggregate VisualEditor TemplateData availability metrics
Closed, ResolvedPublic2 Estimated Story Points

Description

We started collecting data in T259705: Log template metadata whenever a template dialog is opened and T258920: Collect on-going numbers related to VE template dialog and TemplateWizard use, which never gets aggregated. Now we want to aggregate it to measure how many templates loaded by the VE template dialog and the TemplateWizard have template data available.

Research questions:

  • We want to see if the ratio of template data supported templates increases or decreases over time to see if there might be a correlation when support increases and the dialogs are improved.
  • We want to see if template data was present or absent when the template was loaded into the VE dialog or TemplateWizard to see if there might be a correlation when the dialogs are aborted (or finished).

Outline of aggregation:

  • Take all of one day's VisualEditorTemplateDialogUse events
  • Take all of that day's TemplateDataApi call events
  • Join the two topics on template name
  • Produce aggregations of how many edits (opens), saves (successful close), the proportion of have_template_data in each group.

Open questions:

  • Check whether TemplateDataApi can be joined with TemplateWizard events.

Event Timeline

I guess one thing we wanted to measure was how many templates loaded by the VE template dialog and the TemplateWizard have template data available. But the other question would be then, what we want to find out with this.

Clarification from the daily meeting:

  • we want to see if the ratio of template data supported templates increases or decreases over time to see if there might be a correlation when support increases and the dialogs are improved
  • we want to see if template data was present or absent when the template was loaded into the VE dialog or TemplateWizard to see if there might be a correlation when the dialogs are aborted ( or finished )
awight set the point value for this task to 3.Feb 2 2021, 12:06 PM

Outline of aggregation:

  • Take all of one day's VisualEditorTemplateDialogUse events
  • Take all of that day's TemplateDataApi call events
  • Join the two topics on template name
  • Produce aggregations of how many edits (opens), saves (successful close), the proportion of have_template_data in each group.

We should check whether TemplateDataApi can be joined with TemplateWizard events as well.

lilients_WMDE renamed this task from [TBD] What are we doing with TemplateDataApi and VisualEditorTemplateDialogUse data? to Aggregate VisualEditor TemplateData availability metrics.Feb 2 2021, 2:05 PM
lilients_WMDE claimed this task.

Change 703753 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[analytics/reportupdater-queries@master] Add aggregations for template data usage in VisualEditor's template dialog

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

Change 703838 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[analytics/reportupdater-queries@master] Add aggregations for template data usage in TemplateWizard

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

Change 703838 merged by Mforns:

[analytics/reportupdater-queries@master] Add aggregations for template data usage in TemplateWizard

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

Change 703753 merged by Mforns:

[analytics/reportupdater-queries@master] Add aggregations for template data usage in VE's template dialog

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

WMDE-Fisch updated the task description. (Show Details)
WMDE-Fisch moved this task from Demo to Done on the WMDE-TechWish-Sprint-2021-07-07 board.

Done for VisualEditor and TemplateWizard. Data is coming in and was back filled.

There might be a problem with the TemplateData availability metrics for TemplateWizard and VisualEditor, they aren't counting the number of sessions yet. (Changes were discussed.)

Also remove remove-template and cancel-dialog actions from the edit counts, we only want to count the total opens.

Delete the cached outputs from Graphite and reportupdater outputs, to trigger a backfill.

Andrew-WMDE changed the point value for this task from 3 to 2.
Andrew-WMDE moved this task from Sprint Backlog to Doing on the WMDE-TechWish-Sprint-2021-08-18 board.

Change 713647 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[analytics/reportupdater-queries@master] Add the total number of times a template had template data in TemplateWizard

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

Change 713650 had a related patch set uploaded (by Andrew-WMDE; author: Andrew-WMDE):

[analytics/reportupdater-queries@master] Add the total number of times a template had template data in VE's template dialog

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

@ECohen_WMDE We need a small clarification about the ratio of templates with and without TemplateData. I think what we want to ask is "When template-using editor X (wikitext 2010 / VE template dialog) is opened, what percentage of the time is TemplateData available?" The current criterion is worded in a way that is slightly ambiguous and could give us a much different answer.

Here's an example of the difference: let's say there are 100 dialog sessions, 99 with template A and 1 with template B. There is TemplateData for A and not for B.

  1. "What proportion of templates have templatedata?" is answered by 1 / (1 + 1) = 0.5
  2. "What proportion of sessions had templatedata available?" is answered by |A| / (|A| + |B|) = 99 / (99 + 1) = 0.99

I believe the second question is the meaningful one. We're already set up to calculate both numbers so there's no big cost either way, but I'd like to avoid storing the hard-to-interpret metric if others agree.

There's another small quirk, since the VE dialog can manipulate many templates at a time, we need to decide how to handle a case like 2 out of 3 templates displayed have TemplateData. Should we tally this as 2/3 of a "has TemplateData" session?

@awight @Andrew-WMDE @Lena_WMDE
For question #1 I agree that the second option is more meaningful and what we should go with:

"What proportion of sessions had templatedata available?" is answered by |A| / (|A| + |B|) = 99 / (99 + 1) = 0.99

The individual sessions are what we care about because we are tracking the times a user tries to make an edit and if TD supported them in doing that. If it's the same template it doesn't really matter since they want to do something different to it than last time and we just want to see if they can complete that action successfully.

For question #2:

There's another small quirk, since the VE dialog can manipulate many templates at a time, we need to decide how to handle a case like 2 out of 3 templates displayed have TemplateData. Should we tally this as 2/3 of a "has TemplateData" session?

I would actually not include any of the data from sessions with multi-part template content. There are too many different things going on here which could cause affect if a user is confused, beyond if there is TD or not. I think including these in the numbers will just make the overall results less meaningful.

If we already have the data about multi-part templates then it could be useful to track them separately, but with three options: doesn't have any TD, has partial TD, all templates have TD. We could also then have a bit of a side-by-side comparison to see if the multi-part aspect is causing a drop off in success rates and possibly see if the help messages we add improve the situation. I can see how this might add a lot of extra work to the ticket though?

Great, your suggestions sound right to me. How about we start by simply counting multi-template sessions to see how common the use case is. We could easily count these at open and save, which gives us * the percentage of sessions which involve multi-part transclusions, and * the success rate of multi-template sessions.

Side note: I don't think TemplateWizard has any multi-part support, only VE does. But can anyone here give me a second opinion?

How about we start by simply counting multi-template sessions to see how common the use case is. We could easily count these at open and save, which gives us * the percentage of sessions which involve multi-part transclusions, and * the success rate of multi-template sessions.

Sounds good! This seems like a simpler first step that would still give us useful information about that situation.

Side note: I don't think TemplateWizard has any multi-part support, only VE does. But can anyone here give me a second opinion?

Correct, it's only in VE.

Change 714065 had a related patch set uploaded (by Awight; author: Awight):

[analytics/reportupdater-queries@master] [WIP] Track multi-part transclusion stats for VE template dialog

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

awight added a subscriber: Andrew-WMDE.

Change 713650 merged by Awight:

[analytics/reportupdater-queries@master] Aggregate the number of times template data was available in VE's template dialog

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

Change 714065 merged by Awight:

[analytics/reportupdater-queries@master] Track multi-part transclusion stats for VE template dialog

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

Change 713647 merged by Awight:

[analytics/reportupdater-queries@master] Aggregate the number of times template data was available in TemplateWizard

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

Change 715459 had a related patch set uploaded (by Awight; author: Awight):

[analytics/reportupdater-queries@master] Check whether any event of the day includes TemplateData

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

Change 715459 merged by Awight:

[analytics/reportupdater-queries@master] Check whether any event of the day includes TemplateData

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

Change 715465 had a related patch set uploaded (by Awight; author: Awight):

[analytics/reportupdater-queries@master] Nudge start date to trigger a tiny backfill

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

Change 715465 merged by Awight:

[analytics/reportupdater-queries@master] Nudge start date to trigger a tiny backfill

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

Change 715485 had a related patch set uploaded (by Awight; author: Awight):

[analytics/reportupdater-queries@master] Missed from commit

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

Change 715485 merged by Awight:

[analytics/reportupdater-queries@master] Missed from commit

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

thiemowmde claimed this task.

Change 719220 had a related patch set uploaded (by Awight; author: Awight):

[analytics/reportupdater-queries@master] Backfill some aggregations

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

Change 719220 merged by Awight:

[analytics/reportupdater-queries@master] Backfill some aggregations

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