CX should use the latest schema version (as of now 1.10) as defined in the cx schema repository ([[ URL https://gitlab.wikimedia.org/repos/data-engineering/schemas-event-secondary/-/blob/master/jsonschema/analytics/mediawiki/content_translation_event/latest.yaml | latest.yaml ]]).
Currently, the version 1.8.0 is used.
How to test:
To test one a browser, one can visit CX in any wiki, and run the following code in the DevTools console:
mw.loader.using( 'mediawiki.api' ).then( function () {
new mw.Api().saveOption( 'eventlogging-display-console', '1' );
} );then refresh. After refresh, all the instrumentation events will also be logged in the DevTools console as JSON objects. The $schema property of these objects shows the used schema version.
Derived Requirement
Ensure that Content Translation (CX) instrumentation emits events using the latest schema version (1.10) as defined in the [latest.yaml](https://gitlab.wikimedia.org/repos/data-engineering/schemas-event-secondary/-/blob/master/jsonschema/analytics/mediawiki/content_translation_event/latest.yaml). The currently used version 1.8.0 must be updated, and all emitted events must reflect the correct $schema field in DevTools console logging.
Test Steps
Test Case 1: Ensure CX Emits Events Using Schema Version 1.11
- Visit Special:ContentTranslation on any CX-enabled wiki (e.g., https://es.wikipedia.org/wiki/Special:ContentTranslation).
- Open DevTools Console.
- Run the following code to enable event logging in the console:
`js mw.loader.using('mediawiki.api').then(function () { new mw.Api().saveOption('eventlogging-display-console', '1'); }); ` - Refresh the page.
- Interact with the CX editor to trigger event instrumentation (e.g., select languages, article, and start translating).
- Look for logged events in the DevTools console.
- ✅❓❌⬜ AC1: Confirm that each event logged includes a $schema field that references version 1.11.
QA Results - Test Wiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T396711#10948533 |

