Page MenuHomePhabricator

Add wikidata_qid property to metrics_event schema
Closed, ResolvedPublic

Description

Background

The current MP schema has the wikidata_id property set as an integer type which does not pass validation since most wikidata IDs are prefixed with a Q (see T327083#8635819 and https://www.wikidata.org/wiki/Wikidata:Identifiers)

Description

Add a new property to the schema called wikidata_qid which has a type of string to capture the full wikidata id.

Acceptance criteria

  • MP monoschema has a new property wikidata_qid added
  • Update documentation to include this property

Event Timeline

Change 891398 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[schemas/event/secondary@master] Update metrics_event schema

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

Change 891398 merged by jenkins-bot:

[schemas/event/secondary@master] Update metrics_event schema to 1.2.0

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

phuedx subscribed.

@cjming: I moved this back to In Progress as we still need to update the JS and PHP MPCs to handle this property.

… I'll submit a follow-on task and move this task along.