Brief summary/reminder of how WikiLove works: When the extension is installed & enabled, logged-in users see a β€οΈ button on User pages that they can click to start leaving a WikiLove message on the User's Talk page. Those messages (revisions) are tagged with wikilove.
We need a way of counting how many WikiLove messages a subject of an experiment gave or received during the experiment, as that contributes to Average contributor engagement count.
The cleanest way to do would be similar to T437053: Enable analytics instruments to subscribe to thanks (giving and receiving), where thanking emits a domain event and then when we instrument an experiment it can subscribe to that domain event and send thanks_given (if thanker is enrolled) and thanks_received events (if thankee is enrolled). We would update Ext:WikiLove to emit domain events and then similarly have experiment instrumentation subscribe and send wikilove_given / wikilove_received events for giver/recipient if they're enrolled in the experiment.
@Catrope confirms:
this will be very straightforward. All WikiLove submissions go through a dedicated API endpoint (api.php?action=wikilove, in ApiWikiLove.php) and that code is aware of whether the edit succeeded and has the revid of the new edit, so it should be able to emit events
AC
- Ext:WikiLove emits a domain event that includes WikiLove giver and recipient