Lucas_Werkmeister_WMDE added a comment.

  In production, there’s a JSON file with unit conversions 
<https://gerrit.wikimedia.org/r/plugins/gitiles/operations/mediawiki-config/+/09438ae88ecdddf630396d824fce9cdfac0c72e4/wmf-config/unitConversionConfig.json>.
 (On other installs it may be configured differently.) When checking an 
“allowed units” constraint, for each allowed unit, WikibaseQualityConstraints 
will effectively search for the allowed unit and the actual unit in that file, 
replace each of them with the corresponding standard unit if present (e. g. 
Q531 → Q11573, from the first block), and then check if the result is the same 
item ID. (This is hidden behind some layers of indirection – 
WikibaseQualityConstraints itself never sees the JSON file.)

TASK DETAIL
  https://phabricator.wikimedia.org/T244054

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Wikirik123, Lucas_Werkmeister_WMDE, Ivan_A_Krestinin, abian, Aklapper, 
darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
_jensen, rosalieper, Agabi10, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to