Page MenuHomePhabricator

Add EventLogging for realtime preview
Closed, ResolvedPublic2 Estimated Story Points

Description

In T290521 logging for live and non-live previews was added. This ticket is to do the same for the three realtime preview actions that we're interested in:

  • preview-realtime-on – The WikiEditor 'Preview' toolbar button was clicked to turn the preview panel on.
  • preview-realtime-off – The WikiEditor 'Preview' toolbar button was clicked to turn the preview panel off.
  • preview-realtime-inuse – Fired without user interaction when the WikiEditor preview feature is already on when the editing form is opened. Requires T294599 to be done first.

Event Timeline

ldelench_wmf set the point value for this task to 2.Feb 2 2022, 12:49 PM
ldelench_wmf added a project: Community-Tech.
ldelench_wmf moved this task from New & TBD Tickets to Up Next on the Community-Tech board.

Change 774776 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/WikiEditor@master] Add event logging for Realtime Preview enabling and disabling

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

Change 774776 merged by jenkins-bot:

[mediawiki/extensions/WikiEditor@master] Add event logging for Realtime Preview enabling and disabling

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

@MNeisler, can you confirm for us that the events for Real Time Preview are being sent to Superset?

@JMcLeod_WMF

I ran a quick query and confirmed that there have been a few events logged for the preview-realtime-inuse and preview-realtime-on in visualeditorfeatureuse. As of today, I do not currently see any events logged for the preview-realtime-off event.
See aggregated results for all event.feature = 'preview' events logged since 29 March 2022 below.

actionplatformeditor_interfacenum_events
preview-livedesktopwikitext7345
preview-realtime-inusedesktopwikitext2
preview-nonlivedesktopwikitext149895
preview-realtime-ondesktopwikitext2

Data via:

SELECT 
event.action,
event.platform,
event.editor_interface,
COUNT(*) AS num_events
FROM event.visualeditorfeatureuse 
WHERE 
year = 2022
AND ((month = 03 and day >= 29) OR (month = 04))
AND event.feature = 'preview'
GROUP BY 
event.action,
event.platform,
event.editor_interface

Note: To access in Superset, you'll need to pull the data from the presto_analytics_hive dataset by running a query in Superset's SQL editor. If you need any help with this, feel free to book one of Product Analytics consultation hours

@Samwilson Realtime preview events listed above are not showing at all at this time on Beta. If you could take a look. Thank you!

My understanding is that no events are logged from Beta wikis. The four events logged so far are from testwiki.

Here's the chart I've got bookmarked: https://superset.wikimedia.org/r/1526 (the new events are too few to actually show though).

Note: To access in Superset, you'll need to pull the data from the presto_analytics_hive dataset by running a query in Superset's SQL editor. If you need any help with this, feel free to book one of Product Analytics consultation hours

Thanks for the response and see you at consultation hours in the coming weeks! @MNeisler
Thanks for linking to the superset @Samwilson

I did not see the events on testwiki, however moved ticket to done per Sam's test.