Page MenuHomePhabricator

Update MinT for Readers instrumentation to use schema version 1.4.2
Closed, ResolvedPublic1 Estimated Story Points

Description

The translation schema has been updated (T396900) has been updated to include the latest common fragment, which includes the experiment fragment.

This task to update the instrumentation code to point to the latest schema version - 1.4.2

https://gitlab.wikimedia.org/repos/data-engineering/schemas-event-secondary/-/blob/master/jsonschema/analytics/product_metrics/web/translation/1.4.2.yaml

Event Timeline

Nikerabbit subscribed.

WE 3.1.5 engineering tasks on essential board.

@KCVelaga_WMF , we are currently using the following:

const streamName = 'mediawiki.product_metrics.translation_mint_for_readers';
const schemaId = '/analytics/product_metrics/web/translation/1.0.0';

Would updating to 1.4.2 involve any actual schema changes or should we just change the schemaId as follows?

const schemaId = '/analytics/product_metrics/web/translation/1.4.2

no schema changes are required, just updating the ID is fine. 1.4.2 includes the experiment related fields, which will be used when the experiment is live.

Change #1171577 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/ContentTranslation@master] CX: Update MinT for Readers instrumentation to use schema version 1.4.2

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

Wangombe changed the task status from Open to In Progress.Jul 22 2025, 1:21 PM
Wangombe claimed this task.
Wangombe moved this task from Ready for dev to In Progress on the LPL Essential (2025 Jul-Oct) board.
abi_ set the point value for this task to 1.Jul 24 2025, 1:09 AM

Change #1171577 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Update MinT for Readers instrumentation to use schema version 1.4.2

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

Wangombe moved this task from Need QA to Done on the LPL Essential (2025 Jul-Oct) board.

As tested on https://en.wikipedia.org/wiki/Special:AutomaticTranslation?debug=true with Client-side event logging enabled.

mw.loader.using('mediawiki.api')
    .then(
        () => new mw.Api().saveOption('eventlogging-display-console', '1')
    );

image.png (1,912×1,129 px, 295 KB)