Page MenuHomePhabricator

Add support for 'external identifier' data type (top-level and qualifiers)
Open, HighPublic

Description

Add support for the data type 'external identifier' for statements and qualifiers on commons

A external identifier data type is essentially a string with constraints - on wikidata it's entered as a string, but it's validated against the property's constraints (it seems - https://www.wikidata.org/wiki/Property:P269 under constraints)

Users need to be able to add an external id for any property that takes external identifiers as a value, in the File page and in UploadWizard

Acceptance criteria:

  • can select a property with data type 'external identifier' and enter a value for it, on File page and UploadWizard
    • on File page
    • in UploadWizard
  • incorrect values return an error

Event Timeline

Cparle created this task.Sep 4 2019, 2:22 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 4 2019, 2:22 PM
Ramsey-WMF triaged this task as High priority.Sep 10 2019, 4:25 PM

Change 535975 had a related patch set uploaded (by Eric Gardner; owner: Eric Gardner):
[mediawiki/extensions/WikibaseMediaInfo@master] Add support for properties with URL datatypes

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

Change 535975 abandoned by Eric Gardner:
Add support for properties with URL datatypes

Reason:
Better to handle this systematically than doing each data type piecemeal; abandoned in favor of this patch: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikibaseMediaInfo/ /537208

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