Page MenuHomePhabricator

Update analytics/product_metrics/web/translation to use latest common fragment (1.4.2)
Closed, ResolvedPublic1 Estimated Story Points

Description

To support experimentation, the schema (https://gitlab.wikimedia.org/repos/data-engineering/schemas-event-secondary/-/tree/master/jsonschema/analytics/product_metrics/web/translation) needs to be updated:

-  - $ref: /fragment/analytics/product_metrics/common/1.1.0
+  - $ref: /fragment/analytics/product_metrics/common/1.4.2
   - $ref: /fragment/analytics/product_metrics/web/1.1.0
   - $ref: /fragment/analytics/product_metrics/translation/1.0.0

Recommendation: Bump schema version to 1.4.2 to be aligned with the common fragment.

Note: We would still need to support custom streams (T396041: Add option to define stream in Experiment.js) so that events using this schema can be sent to mediawiki.product_metrics.translation_mint_for_readers from the experiment.

Event Timeline

mpopov triaged this task as High priority.
mpopov lowered the priority of this task from High to Medium.
mpopov set the point value for this task to 1.
mpopov edited projects, added Product-Analytics (Kanban); removed Product-Analytics.
mpopov moved this task from Next 2 weeks to Doing on the Product-Analytics (Kanban) board.

Test failed https://gitlab.wikimedia.org/repos/data-engineering/schemas-event-secondary/-/jobs/536479

1) Schema Compatibility in Repository ./jsonschema/
       analytics/product_metrics/web/translation
         Major Version 1
           1.4.2 must be compatible with 1.0.0:

      AssertionError [ERR_ASSERTION]: Error at path: .properties.element_id.mexLength
      + expected - actual

       {
         "description": "The ID of the UI element that was clicked."
      -  "maxLength": 64
      +  "mexLength": 64
         "type": "string"
       }