Page MenuHomePhabricator

Log events for copy and paste action around references in VE
Open, Needs TriagePublic

Description

Whenever one of the following actions is completed we want to log it using mw.eventLog.submitInteraction like it's done for example in:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/992226

Implementation details

  • It might make sense to have a helper function like defined in the above example that guards to make sure we can submit events in general
  • The concert schema we're using still might need to be defined but putting the calls to the event logging at the right spot with the right data is most of the work
  • In every case we need an action name for each event. Defining these is part of this task and each could be documented in the parent ticket
  • We want to log the current edit session with each event as custom data, make sure we have that
  • How often users paste from the clipboard and create a new reference by doing so.
    • feature: activity.clipboard, action: paste-ref-internal-new (this implies a cut-and-paste)
    • feature: activity.clipboard, action: paste-ref-external (from another document or HTML)
  • How often users paste and create a reference re-use with that
    • feature: activity.clipboard, action: paste-ref-internal-reuse (may have already been a reuse--it would be possible to get visibility into this if we care.)

Event Timeline

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

[VisualEditor/VisualEditor@master] Track how refs are pasted

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

awight updated the task description. (Show Details)
awight moved this task from Doing to Tech Review on the WMDE-TechWish-Sprint-2024-04-12 board.
awight subscribed.
awight changed the task status from Open to Stalled.Apr 22 2024, 11:33 AM

Stalled waiting for WMF legal review.

WMDE-Fisch changed the task status from Stalled to Open.May 6 2024, 6:08 PM

Unblocked per https://phabricator.wikimedia.org/T357613#9759164 - would nice to prio this so we get data.

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

[VisualEditor/VisualEditor@master] Revert "Track how refs are pasted"

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

Change #1019713 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Track how refs are pasted

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

Change #1041684 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (6d3f534d7)

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

Change #1041684 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (6d3f534d7)

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