We have this:
The datavalue datatype is currently hardcoded to wikibase-entityid when adding new properties in UploadWizard.
We need that to be the actual datatype.
See: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/UploadWizard/+/513631/2/resources/metadata/uw.MetadataContent.js#50
We want this:
The search results show the datatype (e.g. wikibase-item), but we need to map that to the datavalue datatype (wikibase-entityid).
This is already done in MediaInfo, in PHP. Useless for UploadWizard, but it's a good place to go look for how it can be done.