Page MenuHomePhabricator

Deprecate and remove mw.eventLog.submitClick()
Closed, ResolvedPublic1 Estimated Story Points

Description

Description

mw.eventLog.submitClick is currently only being used by one instrument and the aim is to remove that code by February 2026, according to the comment included in the mentioned code. That's the perfect opportunity to deprecate and remove the mentioned function as part of T408059: [GOAL] Tidy up EventLogging, as we are planning to do with mw.eventLog.newInstrument

Acceptance

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
phuedx renamed this task from Deprecated and remove mw.eventLog.submitClick() to Deprecate and remove mw.eventLog.submitClick().Jan 22 2026, 9:13 AM
phuedx added a project: Technical-Debt.
Milimetric subscribed.

watching, please add us if you need review / brainbouncing

Change #1247924 had a related patch set uploaded (by Seanleong-wmde; author: Seanleong-wmde):

[mediawiki/extensions/Wikibase@master] Migration of 'From Wikidata' tracker from eventLog to using TestKitchen

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

Change #1247924 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Migration of 'From Wikidata' tracker from eventLog to using TestKitchen

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

Update: T417510 is scheduled to go on prod by 19 March for all wikis and will start collecting metrics on 20 March using TestKitchen. Thanks @Sfaci for the help along the way!

Update: T417510 is scheduled to go on prod by 19 March for all wikis and will start collecting metrics on 20 March using TestKitchen. Thanks @Sfaci for the help along the way!

I am seeing that the refactored instrument, https://test-kitchen.wikimedia.org/instrument/databox-click-tracker, is now working and their events are being stored in database already. It seems that everything is working fine, so we could consider the instrument as successfully migrated and mw.eventLog.submitClick would be ready to be deprecated and removed

Related the above I have also confirmed that there are no validation errors in EventGate so far

Sfaci added a subscriber: seanleong-WMDE.

Change #1259922 had a related patch set uploaded (by Santiago Faci; author: Santiago Faci):

[mediawiki/extensions/EventLogging@master] ext.eventLogging.core: Removed `mw.eventLog.submitClick`

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

Sfaci set the point value for this task to 1.

@phuedx @cjming

The patch above does the minimum necessary to "remove" that function from EventLogging but I'm considering leaving untouched metrics-platform, where the function code resides

Do we want to update metrics-platform accordingly? I mean by removing also the corresponding function from there. We are no longer using those client libraries so I'm assuming that we will end up archiving/removing them at some point so it wouldn't make sense to update, deploy and so on according to this and other upcoming changes we are going to work on

We have already a task to T415260: Remove PHP Metrics Platform SDK so I'm guessing we will do something similar with the Metrics Platform JS SDK (or maybe we just have to archive that repo as we did for the MetricsPlatform extension)

What do you think?

@Sfaci: I like the idea of tidying up repos/data-engineering/metrics-platform separately.

Change #1259922 merged by jenkins-bot:

[mediawiki/extensions/EventLogging@master] ext.eventLogging.core: Removed `mw.eventLog.submitClick`

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