Page MenuHomePhabricator

DiffWithinRangeChecker throws TypeError when checking quantity against range with unit “year”
Closed, ResolvedPublic

Description

If you define a “difference within range” constraint with quantities using the “year” unit on a quantity-type property, attempting to check the property will throw a TypeError because the DiffWithinRangeChecker gets confused and tries to check the constraint like on a time-type property.

Event Timeline

Change 407449 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseQualityConstraints@master] Only compute difference in years on time values

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

Change 407449 merged by jenkins-bot:
[mediawiki/extensions/WikibaseQualityConstraints@master] Only compute difference in years on time values

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